Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 新作分区加换一批与评分、时长、番号、口味排序键

longmeidao6c048e5ec242
diff --git a/frontend/src/react/jav/jav-releases.tsx b/frontend/src/react/jav/jav-releases.tsx
index d8349127a..86aafa4a9 100644
--- a/frontend/src/react/jav/jav-releases.tsx
+++ b/frontend/src/react/jav/jav-releases.tsx
@@ -18,13 +18,15 @@ import { TaskProgress } from '../components/task-progress';
import { EmptyState } from '../components/empty-state';
import { Pagination } from '../components/table-pagination';
import { FilterGlassRows, FilterPill, GlassPill } from '../components/filter-glass';
-import { Segments } from '../entity-filter/entity-filter-page';
+import { Segments, Shuffle, SortKeys } from '../entity-filter/entity-filter-page';
+import { Chip } from '@/components/base/badges/chip';
+import { recommendationScore, type DiscoveryDirection } from './discovery-sorts';
import { addWant, invalidateWants } from '../wants/wants';
import { useAction } from '../settings/use-action';
import { useEntityNames } from '../use-entity-names';
import { DiscoveryCard, resourcePrefill } from './discovery-card';
-import { fetchReleases, releaseFilters, releaseKey, RELEASE_PAGE_SIZE, type ReleaseFacetPerformer, type ReleaseFacetStudio,
- type ReleaseFilters } from './jav';
+import { fetchReleases, releaseFilters, releaseKey, RELEASE_PAGE_SIZE, RELEASE_SORTS, type ReleaseFacetPerformer, type ReleaseFacetStudio,
+ type ReleaseFilters, type ReleaseSort } from './jav';
import { writeJavQuery } from './jav-navigation';
type Facet = 'performer' | 'studio' | 'tag';
@@ -34,6 +36,12 @@ const performerRing = (person: ReleaseFacetPerformer) =>
id: person.id, hasImage: person.has_image, version: person.image_version, style: facePos(person.avatar_focus),
focus: person.avatar_focus, standIn: person.avatar_stand_in })}`;
+/** 按口味排时卡上那枚推荐档,与「发现」同一套分档。 */
+function TasteChip({ value }: { value?: number | null }) {
+ const recommendation = recommendationScore(value);
+ return <span data-jav-taste-score="" title={`口味 ${recommendation.score}`}><Chip color={recommendation.color}>{recommendation.label}</Chip></span>;
+}
+
function StudioMark({ studio }: { studio: ReleaseFacetStudio }) {
const [broken, setBroken] = useState(false);
return <span data-tier-mark="">
@@ -70,6 +78,18 @@ export function Releases({ readOnly, receipt, resource, query, navigate, clearTe
writeJavQuery({ performer: '', studio: '', tag: '', page: '' });
clearText();
};
+ /* 点选中的那一枚翻方向;换一枚时番号默认正序,其余倒序(同「发现」)。 */
+ const sortBy = (key: ReleaseSort) => {
+ const dir: DiscoveryDirection = key === filters.sort ? (filters.dir === 'asc' ? 'desc' : 'asc') : key === 'code' ? 'asc' : 'desc';
+ setFilters(current => ({ ...current, sort: key, dir, seed: '', page: 1 }));
+ writeJavQuery({ sort: key === 'release_date' ? '' : key, dir: dir === 'asc' ? 'asc' : '', seed: '', page: '' });
+ };
+ /* 换一批:同一批新作按新种子重排,翻页时顺序不变;排序键都不再按下。 */
+ const reshuffle = () => {
+ const seed = Math.random().toString(36).slice(2, 10);
+ setFilters(current => ({ ...current, sort: 'random', dir: 'desc', seed, page: 1 }));
+ writeJavQuery({ sort: 'random', dir: '', seed, page: '' });
+ };
useEffect(() => {
const rows = section.current?.querySelectorAll('[data-catalog-tier],[data-catalog-tags],[data-filter-row="bottom"]');
const scrollers = [...(rows || [])].map(row => wireHorizontalScroller(row, { drag: true }));
@@ -126,7 +146,12 @@ export function Releases({ readOnly, receipt, resource, query, navigate, clearTe
<span data-catalog-readout="">{waiting ? <span data-skeleton="count" aria-hidden className="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen" />
: filtered ? `${data?.total || 0} / ${data?.candidate_total || 0} 部` : `${data?.total || 0} 部`}</span>
{filtered ? <GlassPill onPress={clear}>清除筛选</GlassPill> : null}
- <span data-entity-sorts=""><Segments label="JAV 卡片版式" value={layout} options={JAV_LAYOUTS} onChange={storeJavLayout} /></span>
+ <span data-entity-sorts="">
+ <Shuffle onPress={reshuffle} busy={filters.sort === 'random' && releases.isFetching} />
+ <Segments label="JAV 卡片版式" value={layout} options={JAV_LAYOUTS} onChange={storeJavLayout} />
+ <SortKeys sorts={RELEASE_SORTS.map(([key, label, ariaLabel]) => ({ key, label, ariaLabel, pressed: key === filters.sort, dir: filters.dir }))}
+ onSort={key => sortBy(key as ReleaseSort)} />
+ </span>
</>} />
{waiting ? <div role="status" aria-label="正在读取新作" dangerouslySetInnerHTML={{ __html: javContentSkeleton('discover', layout) }} /> : null}
{releases.error ? <Note tone="error" title="新作未取得">{errorMessage(releases.error)}</Note> : null}
@@ -145,7 +170,7 @@ export function Releases({ readOnly, receipt, resource, query, navigate, clearTe
onWant={() => { void action.run(String(item.id), signal => addWant({ code: item.code }, signal), () => {
receipt('已加入想要'); void invalidateWants(); void releases.refetch();
}) }}
- onResource={() => resource(resourcePrefill(item))} />)}
+ onResource={() => resource(resourcePrefill(item))} badge={filters.sort === 'taste' ? <TasteChip value={item.taste_score} /> : undefined} />)}
</div>
<div className="flex justify-center"><Pagination page={filters.page} pages={pages} onPage={goPage} label="新作分页" /></div>
</section>;
diff --git a/frontend/src/react/jav/jav.ts b/frontend/src/react/jav/jav.ts
index 93e10bd39..1acd0a822 100644
--- a/frontend/src/react/jav/jav.ts
+++ b/frontend/src/react/jav/jav.ts
@@ -5,6 +5,7 @@ import type { FaceRef, CoverItem } from '@peach/card-art';
import { coverImage, javArtwork, remoteCoverUrl } from '@peach/card-art';
import { esc } from '@peach/legacy/core';
import type { DiscoveryDirection, DiscoverySort } from './discovery-sorts';
+import { JAV_RELEASE_SORT } from '../../sort-preferences';
export { JAV_TABS, javTab, javPath, javLibraryPath } from './jav-navigation';
export interface Discovery extends CoverItem {
@@ -37,8 +38,20 @@ export function fetchDiscoveries(scope: DiscoveryScope, signal: AbortSignal, opt
return apiGet<DiscoveryResult>(`/api/jav/discoveries?${params}`, signal);
}
-/** 新作分区的筛选:都写在地址栏里,刷新与返回原样恢复。 */
-export interface ReleaseFilters { page: number; performer: string; studio: string; tag: string; q: string }
+/** 新作分区的排序:发行时间打头(默认),其余同「发现」;`random` 是「换一批」,没有对应的排序键。 */
+export const RELEASE_SORTS = [
+ ['release_date', JAV_RELEASE_SORT[1], '按发行日期排序'],
+ ['source_score', '来源评分', '按来源评分排序'],
+ ['duration', '时长', '按时长排序'],
+ ['code', '番号', '按番号排序'],
+ ['taste', '口味', '按口味匹配排序'],
+] as const;
+export type ReleaseSort = typeof RELEASE_SORTS[number][0] | 'random';
+/** 新作分区的筛选与排序:都写在地址栏里,刷新与返回原样恢复。`seed` 只在换一批时有值。 */
+export interface ReleaseFilters {
+ page: number; performer: string; studio: string; tag: string; q: string;
+ sort: ReleaseSort; dir: DiscoveryDirection; seed: string;
+}
export interface ReleaseFacetPerformer extends FaceRef { name: string; count: number; source_actor_id?: string; source_avatar?: boolean }
export interface ReleaseFacetStudio { name: string; count: number; has_logo: boolean; logo_version?: string }
/** `/api/jav/releases`:一页新作,加只取自订阅新作的筛选项。 */
@@ -50,14 +63,19 @@ export interface ReleaseResult {
export const RELEASE_PAGE_SIZE = 24;
export function releaseFilters(search: string): ReleaseFilters {
const params = new URLSearchParams(search);
+ const sort = params.get('sort');
+ const seed = params.get('seed') || '';
return { page: Math.max(1, Math.floor(Number(params.get('page'))) || 1), performer: params.get('performer') || '',
- studio: params.get('studio') || '', tag: params.get('tag') || '', q: (params.get('q') || '').trim() };
+ studio: params.get('studio') || '', tag: params.get('tag') || '', q: (params.get('q') || '').trim(),
+ sort: sort === 'random' && seed ? 'random' : RELEASE_SORTS.find(([key]) => key === sort)?.[0] || 'release_date',
+ dir: params.get('dir') === 'asc' ? 'asc' : 'desc', seed };
}
export const releaseKey = (filters: ReleaseFilters) =>
- ['jav-releases', filters.page, filters.performer, filters.studio, filters.tag, filters.q] as const;
+ ['jav-releases', filters.page, filters.performer, filters.studio, filters.tag, filters.q, filters.sort, filters.dir, filters.seed] as const;
export function fetchReleases(filters: ReleaseFilters, signal: AbortSignal, jobId = '') {
- const params = new URLSearchParams({ page: String(filters.page), size: String(RELEASE_PAGE_SIZE) });
- for (const key of ['performer', 'studio', 'tag', 'q'] as const) if (filters[key]) params.set(key, filters[key]);
+ const params = new URLSearchParams({ page: String(filters.page), size: String(RELEASE_PAGE_SIZE),
+ sort: filters.sort, direction: filters.dir });
+ for (const key of ['performer', 'studio', 'tag', 'q', 'seed'] as const) if (filters[key]) params.set(key, filters[key]);
if (jobId) params.set('metadata_job_id', jobId);
return apiGet<ReleaseResult>(`/api/jav/releases?${params}`, signal);
}
diff --git a/frontend/test/react/jav-page.test.tsx b/frontend/test/react/jav-page.test.tsx
index a6925064e..499a34942 100644
--- a/frontend/test/react/jav-page.test.tsx
+++ b/frontend/test/react/jav-page.test.tsx
@@ -126,6 +126,31 @@ it('新作分区的女优、厂牌、标签只列接口给的订阅新作筛选
history.replaceState(null, '', before);
});
+it('新作分区默认按发行时间倒序,排序键再点翻方向,换一批按新种子重排且不按下排序键', async () => {
+ const before = location.pathname + location.search;
+ history.replaceState(null, '', '/jav?tab=releases');
+ const fetcher = vi.fn(async () => ({ ok: true, status: 200, json: async () => ({ items: [], total: 0, candidate_total: 0, page: 1, size: 24,
+ facets: { performers: [], studios: [], tags: [] } }) }));
+ vi.stubGlobal('fetch', fetcher);
+ const host = await mount(<QueryClientProvider client={queryClient}><JavPage tab="releases" readOnly navigate={vi.fn()} receipt={vi.fn()} /></QueryClientProvider>);
+ await settle();
+ const asked = () => new URL(String(fetcher.mock.calls.at(-1)?.[0]), location.origin).searchParams;
+ expect([...host.querySelectorAll('[data-entity-sort]')].map(node => node.textContent)).toEqual(['发行时间', '来源评分', '时长', '番号', '口味']);
+ expect([asked().get('sort'), asked().get('direction')]).toEqual(['release_date', 'desc']);
+ await click(host.querySelector('[data-entity-sort="source_score"]'));
+ await settle();
+ expect([asked().get('sort'), asked().get('direction')]).toEqual(['source_score', 'desc']);
+ await click(host.querySelector('[data-entity-sort="source_score"]'));
+ await settle();
+ expect([asked().get('sort'), asked().get('direction')]).toEqual(['source_score', 'asc']);
+ await click(host.querySelector('[data-entity-batch]'));
+ await settle();
+ expect(asked().get('sort')).toBe('random');
+ expect(asked().get('seed')).toBeTruthy();
+ expect(host.querySelector('[data-entity-sort][aria-pressed="true"]')).toBeNull();
+ history.replaceState(null, '', before);
+});
+
it('没有推荐时空态的查看口味在左,主入口在右', async () => {
vi.stubGlobal('fetch', vi.fn(async () => ({ ok: true, status: 200, json: async () => ({ items: [] }) })));
const host = await mount(<QueryClientProvider client={queryClient}><JavPage tab="discover" readOnly navigate={vi.fn()} receipt={vi.fn()} /></QueryClientProvider>);
diff --git a/web/dist/peach-app.jav-page-DnRBlckl.js b/web/dist/peach-app.jav-page-ODKY3pI8.js
similarity index 73%
rename from web/dist/peach-app.jav-page-DnRBlckl.js
rename to web/dist/peach-app.jav-page-ODKY3pI8.js
index 25f4362a0..c69307b71 100644
--- a/web/dist/peach-app.jav-page-DnRBlckl.js
+++ b/web/dist/peach-app.jav-page-ODKY3pI8.js
@@ -1,28 +1,28 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "41242498-6c22-4586-9b1f-727cd5a0c970", e._sentryDebugIdIdentifier = "sentry-dbid-41242498-6c22-4586-9b1f-727cd5a0c970");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0fdb342b-820f-4b3c-9a8f-7235a2f54321", e._sentryDebugIdIdentifier = "sentry-dbid-0fdb342b-820f-4b3c-9a8f-7235a2f54321");
} catch {}
})();
-import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, ArtSlot as t, Button as n, ButtonLink as r, Bx as i, Chip as a, CloudDownloadDialog as o, DISCOVERY_SORTS as s, DOWNLOADS_KEY as c, DOWNLOADS_URL as l, E3 as u, EmptyFocusButton as d, EmptyState as f, FilterGlassRows as p, FilterIconButton as m, FilterPill as h, GlassPill as g, Help as _, Input as v, JAV_LAYOUTS as ee, JAV_RECOMMENDATION_GRID as te, JavHeader as y, LibraryShortcuts as b, M6 as x, Note as S, PHASES as C, Pagination as w, SEGMENT as T, SEGMENTED_TRACK as E, SegmentedRadioGroup as D, Segments as ne, SortKeys as O, SourceAvatar as k, TaskProgress as re, WANTS_KEY as A, WantMagnets as j, Wt as M, __toESM as N, addWant as ie, apiGet as P, appSettingsStore as ae, avatarInner as oe, busyProps as F, cachedMagnetStates as se, cardClass as I, cardRatio as ce, coverUrl as L, discoveryArtwork as R, discoveryKey as le, discoveryScore as ue, entityDisplayName as z, entityFaceImg as B, entityPath as V, errorMessage as H, esc as U, facePos as de, fetchDiscoveries as fe, fetchReleases as W, fetchWants as pe, firstGrapheme as G, gridLayout as me, invalidateWants as K, javContentSkeleton as he, javLayout as ge, javTagSkeleton as _e, keepPreviousData as q, leadingGraphemes as ve, logoUrl as ye, pageWindow as be, qE as xe, recommendationScore as Se, relayoutCovers as Ce, releaseFilters as we, releaseKey as Te, removeWants as Ee, require_jsx_runtime as De, require_react as Oe, resetWants as ke, searchNote as Ae, spriteGlyph as je, storeJavLayout as Me, textLang as Ne, useAction as J, useEntityNames as Pe, useQuery as Y, wantName as X, wireHorizontalScroller as Fe, writeJavQuery as Z } from "./peach-app.js";
-import { ErrorLine as Ie } from "./peach-app.source-view-DalWfDkm.js";
+import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, ArtSlot as t, Button as n, ButtonLink as r, Bx as i, Chip as a, CloudDownloadDialog as o, DISCOVERY_SORTS as s, DOWNLOADS_KEY as c, DOWNLOADS_URL as l, E3 as u, EmptyFocusButton as d, EmptyState as f, FilterGlassRows as p, FilterIconButton as m, FilterPill as h, GlassPill as g, Help as _, Input as v, JAV_LAYOUTS as ee, JAV_RECOMMENDATION_GRID as te, JavHeader as y, LibraryShortcuts as b, M6 as x, Note as S, PHASES as C, Pagination as w, RELEASE_SORTS as T, SEGMENT as E, SEGMENTED_TRACK as D, SegmentedRadioGroup as O, Segments as ne, Shuffle as re, SortKeys as ie, SourceAvatar as k, TaskProgress as ae, WANTS_KEY as A, WantMagnets as j, Wt as M, __toESM as N, addWant as oe, apiGet as P, appSettingsStore as se, avatarInner as F, busyProps as I, cachedMagnetStates as L, cardClass as R, cardRatio as ce, coverUrl as z, discoveryArtwork as B, discoveryKey as le, discoveryScore as ue, entityDisplayName as V, entityFaceImg as H, entityPath as U, errorMessage as W, esc as G, facePos as de, fetchDiscoveries as fe, fetchReleases as K, fetchWants as q, firstGrapheme as pe, gridLayout as me, invalidateWants as J, javContentSkeleton as he, javLayout as ge, javTagSkeleton as _e, keepPreviousData as ve, leadingGraphemes as ye, logoUrl as be, pageWindow as xe, qE as Se, recommendationScore as Ce, relayoutCovers as we, releaseFilters as Te, releaseKey as Ee, removeWants as De, require_jsx_runtime as Oe, require_react as ke, resetWants as Ae, searchNote as je, spriteGlyph as Me, storeJavLayout as Ne, textLang as Pe, useAction as Y, useEntityNames as Fe, useQuery as Ie, wantName as X, wireHorizontalScroller as Le, writeJavQuery as Z } from "./peach-app.js";
+import { ErrorLine as Re } from "./peach-app.source-view-DalWfDkm.js";
import "./peach-app.source-list-ri5fRK2E.js";
// src/react/wants/want-list.tsx
-var Q = /* @__PURE__ */ N(Oe(), 1), $ = De(), Le = {
+var Q = /* @__PURE__ */ N(ke(), 1), $ = Oe(), ze = {
code: "手动添加",
feed: "订阅新作",
follow: "关注"
-}, Re = [
+}, Be = [
["all", "全部"],
["available", "有磁链"],
["missing", "没磁链"]
-], ze = (e) => [
+], Ve = (e) => [
e.release_date,
e.studio,
e.performers,
- Le[e.origin]
+ ze[e.origin]
].filter(Boolean).join(" · ");
-function Be({ want: e }) {
+function He({ want: e }) {
return /* @__PURE__ */ (0, $.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, $.jsx)("span", {
@@ -38,14 +38,14 @@ function Be({ want: e }) {
}) : null]
});
}
-function Ve({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDownload: s, downloads: c, provider: l, toast: u }) {
+function Ue({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDownload: s, downloads: c, provider: l, toast: u }) {
let [d, f] = (0, Q.useState)(""), p = e.link || d || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, $.jsxs)("li", {
"data-want-id": e.id,
- className: I({ className: "flex flex-col gap-4 max-sm:p-4" }),
+ className: R({ className: "flex flex-col gap-4 max-sm:p-4" }),
children: [/* @__PURE__ */ (0, $.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, $.jsx)(Be, { want: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, $.jsx)(He, { want: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, $.jsxs)("p", {
@@ -58,16 +58,16 @@ function Ve({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
children: e.title
}) : null]
}),
- ze(e) ? /* @__PURE__ */ (0, $.jsx)("p", {
+ Ve(e) ? /* @__PURE__ */ (0, $.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ze(e)
+ children: Ve(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, $.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: Ae(e)
+ children: je(e)
}) : null,
- e.scrape_error ? /* @__PURE__ */ (0, $.jsx)(Ie, {
+ e.scrape_error ? /* @__PURE__ */ (0, $.jsx)(Re, {
text: e.scrape_error,
prefix: "资料未取得:",
tone: "muted"
@@ -90,7 +90,7 @@ function Ve({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
size: "small",
leadingIcon: x,
disabled: t,
- ...F(i === `remove:${e.id}`),
+ ...I(i === `remove:${e.id}`),
onClick: o,
children: "移除"
}),
@@ -98,7 +98,7 @@ function Ve({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
variant: "secondary",
size: "small",
disabled: t,
- ...F(i === `reset:${e.id}`),
+ ...I(i === `reset:${e.id}`),
onClick: a,
children: "重新查找"
}) : null,
@@ -122,8 +122,8 @@ function Ve({ want: e, readOnly: t, busy: i, onReset: a, onRemove: o, onCloudDow
}) : null]
});
}
-function He({ phase: t, label: r, rows: i, row: a }) {
- let [o, s] = (0, Q.useState)(1), [c, l] = (0, Q.useState)("all"), u = se(i), d = (e) => e.has_magnets ?? u.get(e.code || "") ?? !1, p = i.filter(d), m = t !== "searching" || c === "all" ? i : i.filter((e) => d(e) === (c === "available")), h = be(m.length, 20, o);
+function We({ phase: t, label: r, rows: i, row: a }) {
+ let [o, s] = (0, Q.useState)(1), [c, l] = (0, Q.useState)("all"), u = L(i), d = (e) => e.has_magnets ?? u.get(e.code || "") ?? !1, p = i.filter(d), m = t !== "searching" || c === "all" ? i : i.filter((e) => d(e) === (c === "available")), h = xe(m.length, 20, o);
return /* @__PURE__ */ (0, $.jsxs)("section", {
"aria-label": r,
"data-want-phase": t,
@@ -137,19 +137,19 @@ function He({ phase: t, label: r, rows: i, row: a }) {
className: "text-body-2-regular tabular-nums text-text-secondary",
children: i.length.toLocaleString()
})]
- }), t === "searching" ? /* @__PURE__ */ (0, $.jsx)(D, {
+ }), t === "searching" ? /* @__PURE__ */ (0, $.jsx)(O, {
name: "want-magnet-filter",
"aria-label": "待找磁链筛选",
orientation: "horizontal",
value: c,
- className: E,
+ className: D,
onChange: (e) => {
l(e), s(1);
},
- children: Re.map(([t, n]) => /* @__PURE__ */ (0, $.jsxs)(e, {
+ children: Be.map(([t, n]) => /* @__PURE__ */ (0, $.jsxs)(e, {
value: t,
"aria-label": n,
- className: T,
+ className: E,
children: [n, /* @__PURE__ */ (0, $.jsx)("span", {
className: "text-caption-1-regular tabular-nums text-text-tertiary",
children: (t === "all" ? i.length : t === "available" ? p.length : i.length - p.length).toLocaleString()
@@ -159,7 +159,7 @@ function He({ phase: t, label: r, rows: i, row: a }) {
}),
m.length ? null : /* @__PURE__ */ (0, $.jsx)(f, {
size: "compact",
- icon: xe,
+ icon: Se,
title: "暂无符合条件的作品",
actions: /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
@@ -190,32 +190,32 @@ function He({ phase: t, label: r, rows: i, row: a }) {
]
});
}
-function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
- let [a, s] = (0, Q.useState)(""), [u, p] = (0, Q.useState)(null), m = J(), h = Y({
+function Ge({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
+ let [a, s] = (0, Q.useState)(""), [u, p] = (0, Q.useState)(null), m = Y(), h = Ie({
queryKey: A,
- queryFn: ({ signal: e }) => pe(e),
+ queryFn: ({ signal: e }) => q(e),
staleTime: 3e4,
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), g = () => {
let n = a.trim();
- n && !e && m.run("add", (e) => ie({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${X(e.want)}` : `${X(e.want)} 已经在想要里`), s(""), K();
+ n && !e && m.run("add", (e) => oe({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${X(e.want)}` : `${X(e.want)} 已经在想要里`), s(""), J();
});
}, ee = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), g());
}, te = (e) => {
- m.run(`remove:${e.id}`, (t) => Ee([e.id], t), () => {
- t(`已移除:${X(e)}`), K();
+ m.run(`remove:${e.id}`, (t) => De([e.id], t), () => {
+ t(`已移除:${X(e)}`), J();
});
}, y = (e) => {
- m.run(`reset:${e.id}`, (t) => ke([e.id], t), () => {
- t(`${X(e)} 回到待找`), K();
+ m.run(`reset:${e.id}`, (t) => Ae([e.id], t), () => {
+ t(`${X(e)} 回到待找`), J();
});
}, b = h.data, x = (b?.items || []).filter((e) => !r || [
e.code,
e.title,
e.performers
- ].join(" ").toLocaleLowerCase().includes(r.toLocaleLowerCase())), w = Y({
+ ].join(" ").toLocaleLowerCase().includes(r.toLocaleLowerCase())), w = Ie({
queryKey: c,
queryFn: ({ signal: e }) => P(`${l}?limit=100`, e),
enabled: x.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
@@ -225,7 +225,7 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, $.jsxs)("div", {
- className: I({
+ className: R({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -249,7 +249,7 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
}), /* @__PURE__ */ (0, $.jsx)(n, {
variant: "primary",
disabled: e || !a.trim(),
- ...F(m.busy === "add"),
+ ...I(m.busy === "add"),
onClick: g,
children: "添加"
})]
@@ -264,7 +264,7 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
h.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
title: "想要清单读取失败",
- children: H(h.error)
+ children: W(h.error)
}) : null,
h.isPending ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
@@ -278,7 +278,7 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
w.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
title: "下载配置未取得",
- children: H(w.error)
+ children: W(w.error)
}) : null,
w.data && !T.length ? /* @__PURE__ */ (0, $.jsxs)(S, {
tone: "neutral",
@@ -293,7 +293,7 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
}) : null,
b && !x.length ? /* @__PURE__ */ (0, $.jsx)(f, {
size: "compact",
- icon: xe,
+ icon: Se,
title: r ? "没有符合条件的作品" : "还没有想要的作品",
actions: r && i ? /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
@@ -307,11 +307,11 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
}) : null,
C.map(([n, r]) => {
let i = x.filter((e) => e.phase === n);
- return i.length ? /* @__PURE__ */ (0, $.jsx)(He, {
+ return i.length ? /* @__PURE__ */ (0, $.jsx)(We, {
phase: n,
label: r,
rows: i,
- row: (n) => /* @__PURE__ */ (0, $.jsx)(Ve, {
+ row: (n) => /* @__PURE__ */ (0, $.jsx)(Ue, {
want: n,
readOnly: e,
busy: m.busy,
@@ -342,23 +342,23 @@ function Ue({ readOnly: e, toast: t, query: r = "", clearQuery: i }) {
});
}
// src/react/jav/discovery-faces.tsx
-function We({ item: e }) {
- Pe();
+function Ke({ item: e }) {
+ Fe();
let t = e.performer_refs?.length ? e.performer_refs : [...new Set(e.performers.split(/[,,、;/]/).filter(Boolean))].map((e) => ({ name: e })), n = t.slice(0, 5).map((t, n) => {
let r = { "--media-avatar-index": n }, i = t.source_avatar && t.source_actor_id && !t.has_image ? { children: /* @__PURE__ */ (0, $.jsx)(k, {
code: e.code,
person: t
- }) } : { dangerouslySetInnerHTML: { __html: oe(t.name, t, null) } };
+ }) } : { dangerouslySetInnerHTML: { __html: F(t.name, t, null) } };
return t.id ? /* @__PURE__ */ (0, $.jsx)("a", {
"data-media-avatar": "",
style: r,
- href: V("performer", t.name, t.id),
- "aria-label": `打开女优页:${z("performer", t.name, t.id)}`,
+ href: U("performer", t.name, t.id),
+ "aria-label": `打开女优页:${V("performer", t.name, t.id)}`,
...i
}, t.name) : /* @__PURE__ */ (0, $.jsx)("span", {
"data-media-avatar": "",
style: r,
- title: z("performer", t.name),
+ title: V("performer", t.name),
...i
}, t.name);
});
@@ -369,13 +369,13 @@ function We({ item: e }) {
}) : n[0] || null;
}
// src/react/jav/discovery-card.tsx
-var Ge = (e) => ({
+var qe = (e) => ({
...e,
- cover: e.has_cover ? L(e, !0) : e.cover_url,
+ cover: e.has_cover ? z(e, !0) : e.cover_url,
origin: `${e.asset_id ? "asset" : "feed"}:${e.id}`
});
-function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c, onTag: l, wanting: u, onWant: d, onResource: f, badge: p }) {
- let m = e.performer_refs?.length ? e.performer_refs.map((e) => e.name).join("、") : e.performers, h = R(e, i, a), g = e.asset_id ? `/assets/${e.asset_id}` : `/works/${encodeURIComponent(e.code)}`;
+function Je({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c, onTag: l, wanting: u, onWant: d, onResource: f, badge: p }) {
+ let m = e.performer_refs?.length ? e.performer_refs.map((e) => e.name).join("、") : e.performers, h = B(e, i, a), g = e.asset_id ? `/assets/${e.asset_id}` : `/works/${encodeURIComponent(e.code)}`;
return /* @__PURE__ */ (0, $.jsxs)("article", {
"data-media-card": "",
"data-jav-card": "",
@@ -397,8 +397,8 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
kind: "cover",
html: h
},
- identity: R(e, "small", a),
- relayout: (e) => Ce(e, i)
+ identity: B(e, "small", a),
+ relayout: (e) => we(e, i)
}) : /* @__PURE__ */ (0, $.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
@@ -406,7 +406,7 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
}),
/* @__PURE__ */ (0, $.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, $.jsx)(We, { item: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, $.jsx)(Ke, { item: e }), /* @__PURE__ */ (0, $.jsxs)("div", {
"data-media-text": "",
children: [
/* @__PURE__ */ (0, $.jsxs)("h3", {
@@ -417,7 +417,7 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
/* @__PURE__ */ (0, $.jsx)("b", { children: e.code }),
" ",
e.title ? /* @__PURE__ */ (0, $.jsx)("span", {
- lang: Ne(e.title),
+ lang: Pe(e.title),
children: e.title
}) : "标题未取得"
]
@@ -427,7 +427,7 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
children: [
e.performer_refs?.[0]?.id ? /* @__PURE__ */ (0, $.jsxs)("a", {
"data-media-who": "",
- href: V("performer", e.performer_refs[0].name),
+ href: U("performer", e.performer_refs[0].name),
title: m,
children: [/* @__PURE__ */ (0, $.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -492,7 +492,7 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
/* @__PURE__ */ (0, $.jsx)(n, {
variant: "ghost",
disabled: o || e.wanted || !!e.asset_id,
- ...F(u),
+ ...I(u),
onClick: d,
children: e.asset_id ? "已入库" : e.wanted ? "已加入想要" : "想要"
}),
@@ -507,7 +507,7 @@ function Ke({ item: e, layout: i, javImage: a, readOnly: o, navigate: s, tag: c,
});
}
// src/react/jav/jav-releases.tsx
-var qe = (e) => `<span data-tier-initial>${U(G(z("performer", e.name, e.id)))}</span>${B({
+var Ye = (e) => `<span data-tier-initial>${G(pe(V("performer", e.name, e.id)))}</span>${H({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
@@ -515,24 +515,35 @@ var qe = (e) => `<span data-tier-initial>${U(G(z("performer", e.name, e.id)))}</
focus: e.avatar_focus,
standIn: e.avatar_stand_in
})}`;
-function Je({ studio: e }) {
+function Xe({ value: e }) {
+ let t = Ce(e);
+ return /* @__PURE__ */ (0, $.jsx)("span", {
+ "data-jav-taste-score": "",
+ title: `口味 ${t.score}`,
+ children: /* @__PURE__ */ (0, $.jsx)(a, {
+ color: t.color,
+ children: t.label
+ })
+ });
+}
+function Ze({ studio: e }) {
let [t, n] = (0, Q.useState)(!1);
return /* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-mark": "",
children: e.has_logo && !t ? /* @__PURE__ */ (0, $.jsx)("img", {
- src: ye(e.name, "icon", e.logo_version),
+ src: be(e.name, "icon", e.logo_version),
alt: "",
width: 28,
height: 28,
loading: "lazy",
decoding: "async",
onError: () => n(!0)
- }) : ve(e.name, 2)
+ }) : ye(e.name, 2)
});
}
-function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clearText: c }) {
- Pe();
- let [l, u] = (0, Q.useState)(() => we(location.search));
+function Qe({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clearText: c }) {
+ Fe();
+ let [l, u] = (0, Q.useState)(() => Te(location.search));
(0, Q.useEffect)(() => {
if (o === l.q) return;
let e = setTimeout(() => {
@@ -573,70 +584,98 @@ function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
tag: "",
page: ""
}), c();
+ }, y = (e) => {
+ let t = e === l.sort ? l.dir === "asc" ? "desc" : "asc" : e === "code" ? "asc" : "desc";
+ u((n) => ({
+ ...n,
+ sort: e,
+ dir: t,
+ seed: "",
+ page: 1
+ })), Z({
+ sort: e === "release_date" ? "" : e,
+ dir: t === "asc" ? "asc" : "",
+ seed: "",
+ page: ""
+ });
+ }, b = () => {
+ let e = Math.random().toString(36).slice(2, 10);
+ u((t) => ({
+ ...t,
+ sort: "random",
+ dir: "desc",
+ seed: e,
+ page: 1
+ })), Z({
+ sort: "random",
+ dir: "",
+ seed: e,
+ page: ""
+ });
};
(0, Q.useEffect)(() => {
- let e = [...m.current?.querySelectorAll("[data-catalog-tier],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Fe(e, { drag: !0 }));
+ let e = [...m.current?.querySelectorAll("[data-catalog-tier],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Le(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
- let y = ae();
- (0, Q.useSyncExternalStore)(y.subscribe, y.version, y.version);
- let b = ge(), x = ce(me({
+ let x = se();
+ (0, Q.useSyncExternalStore)(x.subscribe, x.version, x.version);
+ let C = ge(), E = ce(me({
active: !0,
home: !1,
portrait: !1
- })), C = (0, Q.useRef)(""), T = Y({
- queryKey: Te(l),
- queryFn: ({ signal: e }) => W(l, e, C.current),
- placeholderData: q,
+ })), D = (0, Q.useRef)(""), O = Ie({
+ queryKey: Ee(l),
+ queryFn: ({ signal: e }) => K(l, e, D.current),
+ placeholderData: ve,
retry: !1,
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.metadata_job?.status === "running" && Math.max(1e3, e.state.data.poll_after_ms || 3e3)
- }), E = T.data?.metadata_job, D = E?.status === "running", O = (0, Q.useRef)(!1);
+ }), k = O.data?.metadata_job, A = k?.status === "running", j = (0, Q.useRef)(!1);
(0, Q.useEffect)(() => {
- E?.job_id && (C.current = E.job_id);
- }, [E?.job_id]), (0, Q.useEffect)(() => {
- O.current && !D && T.refetch(), O.current = D;
- }, [D, T]);
- let k = J(), A = T.data, j = T.isPending, M = !!(l.performer || l.studio || l.tag || l.q), N = Math.max(1, Math.ceil((A?.total || 0) / 24));
+ k?.job_id && (D.current = k.job_id);
+ }, [k?.job_id]), (0, Q.useEffect)(() => {
+ j.current && !A && O.refetch(), j.current = A;
+ }, [A, O]);
+ let M = Y(), N = O.data, P = O.isPending, F = !!(l.performer || l.studio || l.tag || l.q), I = Math.max(1, Math.ceil((N?.total || 0) / 24));
return /* @__PURE__ */ (0, $.jsxs)("section", {
ref: m,
"aria-label": "订阅新作",
- "aria-busy": j || T.isFetching,
+ "aria-busy": P || O.isFetching,
className: "flex min-w-0 scroll-mt-24 flex-col gap-4",
children: [
- A && (A.facets.performers.length || A.facets.studios.length) ? /* @__PURE__ */ (0, $.jsxs)("div", {
+ N && (N.facets.performers.length || N.facets.studios.length) ? /* @__PURE__ */ (0, $.jsxs)("div", {
"data-catalog-tiers": "",
"data-release-tiers": "",
- children: [A.facets.performers.length ? /* @__PURE__ */ (0, $.jsx)("div", {
+ children: [N.facets.performers.length ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tier": "performers",
role: "group",
"aria-label": "按女优筛选",
- children: A.facets.performers.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
+ children: N.facets.performers.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"aria-pressed": l.performer === e.name,
- title: `${z("performer", e.name, e.id)} · ${e.count} 部`,
+ title: `${V("performer", e.name, e.id)} · ${e.count} 部`,
onClick: () => d("performer", e.name),
children: [/* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-ring": "",
- dangerouslySetInnerHTML: { __html: qe(e) }
+ dangerouslySetInnerHTML: { __html: Ye(e) }
}), /* @__PURE__ */ (0, $.jsx)("span", {
"data-tier-name": "",
- children: z("performer", e.name, e.id)
+ children: V("performer", e.name, e.id)
})]
}, e.name))
- }) : null, A.facets.studios.length ? /* @__PURE__ */ (0, $.jsx)("div", {
+ }) : null, N.facets.studios.length ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tier": "studios",
role: "group",
"aria-label": "按厂牌筛选",
- children: A.facets.studios.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
+ children: N.facets.studios.map((e) => /* @__PURE__ */ (0, $.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"aria-pressed": l.studio === e.name,
title: `${e.name} · ${e.count} 部`,
onClick: () => d("studio", e.name),
children: [
- /* @__PURE__ */ (0, $.jsx)(Je, { studio: e }),
+ /* @__PURE__ */ (0, $.jsx)(Ze, { studio: e }),
e.name,
/* @__PURE__ */ (0, $.jsx)("span", {
"data-count-badge": "",
@@ -654,15 +693,15 @@ function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
"data-jav-filter": "",
"data-catalog-frame": ""
},
- busy: j,
+ busy: P,
topClassName: "gap-1.5 overflow-visible",
bottomClassName: "min-h-12",
top: /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-scroll": "",
children: /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tags": "",
- dangerouslySetInnerHTML: j ? { __html: _e() } : void 0,
- children: j ? null : A?.facets.tags.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
+ dangerouslySetInnerHTML: P ? { __html: _e() } : void 0,
+ children: P ? null : N?.facets.tags.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
"data-catalog-tag": e.name,
"data-entity-press": "",
pressed: l.tag === e.name,
@@ -677,50 +716,66 @@ function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
bottom: /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
/* @__PURE__ */ (0, $.jsx)("span", {
"data-catalog-readout": "",
- children: j ? /* @__PURE__ */ (0, $.jsx)("span", {
+ children: P ? /* @__PURE__ */ (0, $.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
- }) : M ? `${A?.total || 0} / ${A?.candidate_total || 0} 部` : `${A?.total || 0} 部`
+ }) : F ? `${N?.total || 0} / ${N?.candidate_total || 0} 部` : `${N?.total || 0} 部`
}),
- M ? /* @__PURE__ */ (0, $.jsx)(g, {
+ F ? /* @__PURE__ */ (0, $.jsx)(g, {
onPress: v,
children: "清除筛选"
}) : null,
- /* @__PURE__ */ (0, $.jsx)("span", {
+ /* @__PURE__ */ (0, $.jsxs)("span", {
"data-entity-sorts": "",
- children: /* @__PURE__ */ (0, $.jsx)(ne, {
- label: "JAV 卡片版式",
- value: b,
- options: ee,
- onChange: Me
- })
+ children: [
+ /* @__PURE__ */ (0, $.jsx)(re, {
+ onPress: b,
+ busy: l.sort === "random" && O.isFetching
+ }),
+ /* @__PURE__ */ (0, $.jsx)(ne, {
+ label: "JAV 卡片版式",
+ value: C,
+ options: ee,
+ onChange: Ne
+ }),
+ /* @__PURE__ */ (0, $.jsx)(ie, {
+ sorts: T.map(([e, t, n]) => ({
+ key: e,
+ label: t,
+ ariaLabel: n,
+ pressed: e === l.sort,
+ dir: l.dir
+ })),
+ onSort: (e) => y(e)
+ })
+ ]
})
] })
}),
- j ? /* @__PURE__ */ (0, $.jsx)("div", {
+ P ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
"aria-label": "正在读取新作",
- dangerouslySetInnerHTML: { __html: he("discover", b) }
+ dangerouslySetInnerHTML: { __html: he("discover", C) }
}) : null,
- T.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ O.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
title: "新作未取得",
- children: H(T.error)
+ children: W(O.error)
}) : null,
- D && E ? /* @__PURE__ */ (0, $.jsx)("div", {
+ A && k ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, $.jsx)(re, {
- label: `正在读取作品资料 · ${E.completed} / ${E.total} 部`,
- value: E.completed,
- total: E.total
+ children: /* @__PURE__ */ (0, $.jsx)(ae, {
+ label: `正在读取作品资料 · ${k.completed} / ${k.total} 部`,
+ value: k.completed,
+ total: k.total
})
}) : null,
- !j && !T.error && !A?.items.length ? /* @__PURE__ */ (0, $.jsx)(f, {
+ !P && !O.error && !N?.items.length ? /* @__PURE__ */ (0, $.jsx)(f, {
icon: i,
- title: M ? "没有符合条件的新作" : "暂无未入库的新作",
- actions: M ? /* @__PURE__ */ (0, $.jsx)(n, {
+ title: F ? "没有符合条件的新作" : "暂无未入库的新作",
+ actions: F ? /* @__PURE__ */ (0, $.jsx)(n, {
size: "small",
onClick: v,
children: "清除筛选"
@@ -729,38 +784,39 @@ function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
href: "/subscriptions?tab=add",
children: "添加订阅"
}),
- children: M ? "清除筛选后查看全部新作。" : "订阅女优或厂牌后,还没入库的新作会出现在这里。"
+ children: F ? "清除筛选后查看全部新作。" : "订阅女优或厂牌后,还没入库的新作会出现在这里。"
}) : null,
- k.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ M.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
- children: k.error
+ children: M.error
}) : null,
/* @__PURE__ */ (0, $.jsx)("div", {
"data-media-grid": "",
className: te,
- style: { "--card-ratio": x },
- children: (A?.items || []).map((n) => /* @__PURE__ */ (0, $.jsx)(Ke, {
+ style: { "--card-ratio": E },
+ children: (N?.items || []).map((n) => /* @__PURE__ */ (0, $.jsx)(Je, {
item: n,
- layout: b,
- javImage: y.value.javImage,
+ layout: C,
+ javImage: x.value.javImage,
readOnly: e,
navigate: s,
tag: l.tag,
onTag: (e) => d("tag", e || l.tag),
- wanting: k.busy === String(n.id),
+ wanting: M.busy === String(n.id),
onWant: () => {
- k.run(String(n.id), (e) => ie({ code: n.code }, e), () => {
- t("已加入想要"), K(), T.refetch();
+ M.run(String(n.id), (e) => oe({ code: n.code }, e), () => {
+ t("已加入想要"), J(), O.refetch();
});
},
- onResource: () => a(Ge(n))
+ onResource: () => a(qe(n)),
+ badge: l.sort === "taste" ? /* @__PURE__ */ (0, $.jsx)(Xe, { value: n.taste_score }) : void 0
}, n.id))
}),
/* @__PURE__ */ (0, $.jsx)("div", {
className: "flex justify-center",
children: /* @__PURE__ */ (0, $.jsx)(w, {
page: l.page,
- pages: N,
+ pages: I,
onPage: _,
label: "新作分页"
})
@@ -769,12 +825,12 @@ function Ye({ readOnly: e, receipt: t, resource: a, query: o, navigate: s, clear
});
}
// src/react/jav/jav-page.tsx
-var Xe = je("search"), Ze = je("x"), Qe = je("refresh-cw"), $e = {
+var $e = Me("search"), et = Me("x"), tt = Me("refresh-cw"), nt = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function et({ tab: e, readOnly: t, navigate: n, receipt: r }) {
+function rt({ tab: e, readOnly: t, navigate: n, receipt: r }) {
let [i, a] = (0, Q.useState)(null), [s, c] = (0, Q.useState)(() => new URLSearchParams(location.search).get("q") || ""), l = (e) => {
c(e), Z({ q: e });
};
@@ -787,35 +843,35 @@ function et({ tab: e, readOnly: t, navigate: n, receipt: r }) {
find: () => a({})
}),
/* @__PURE__ */ (0, $.jsx)("form", {
- "aria-label": $e[e],
+ "aria-label": nt[e],
onSubmit: (e) => {
e.preventDefault();
},
children: /* @__PURE__ */ (0, $.jsx)(v, {
type: "search",
- "aria-label": $e[e],
+ "aria-label": nt[e],
placeholder: "筛选番号、女优或标题",
- leadingIcon: Xe,
+ leadingIcon: $e,
value: s,
onChange: l,
enterKeyHint: "search"
})
}),
- e === "releases" ? /* @__PURE__ */ (0, $.jsx)(Ye, {
+ e === "releases" ? /* @__PURE__ */ (0, $.jsx)(Qe, {
readOnly: t,
receipt: r,
resource: a,
query: s.trim(),
navigate: n,
clearText: () => l("")
- }) : e === "discover" ? /* @__PURE__ */ (0, $.jsx)(tt, {
+ }) : e === "discover" ? /* @__PURE__ */ (0, $.jsx)(it, {
readOnly: t,
receipt: r,
resource: a,
query: s.trim(),
navigate: n,
clearText: () => l("")
- }) : /* @__PURE__ */ (0, $.jsx)(Ue, {
+ }) : /* @__PURE__ */ (0, $.jsx)(Ge, {
readOnly: t,
toast: r,
query: s.trim(),
@@ -829,36 +885,36 @@ function et({ tab: e, readOnly: t, navigate: n, receipt: r }) {
]
});
}
-function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clearText: l }) {
+function it({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clearText: l }) {
let d = new URLSearchParams(location.search), [_, v] = (0, Q.useState)(() => d.get("scope") === "library" ? "library" : "external"), [y, x] = (0, Q.useState)(() => d.get("tag") || ""), [C, w] = (0, Q.useState)(() => s.some(([e]) => e === d.get("sort")) ? d.get("sort") : "taste"), [T, E] = (0, Q.useState)(() => d.get("dir") === "asc"), D = (e) => {
v(e), Z({ scope: e === "external" ? "" : e });
- }, k = (e) => {
+ }, O = (e) => {
x(e), Z({ tag: e });
- }, A = (e) => {
+ }, re = (e) => {
w(e), Z({ sort: e === "taste" ? "" : e });
- }, j = (e) => {
+ }, k = (e) => {
E(e), Z({ dir: e ? "asc" : "" });
- }, M = (0, Q.useRef)(null);
+ }, A = (0, Q.useRef)(null);
(0, Q.useEffect)(() => {
- let e = [...M.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Fe(e, { drag: !0 }));
+ let e = [...A.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => Le(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
- let N = ae();
- (0, Q.useSyncExternalStore)(N.subscribe, N.version, N.version);
- let P = ge(), oe = ce(me({
+ let j = se();
+ (0, Q.useSyncExternalStore)(j.subscribe, j.version, j.version);
+ let M = ge(), N = ce(me({
active: !0,
home: !1,
portrait: !1
- })), se = (0, Q.useRef)({}), I = (0, Q.useRef)(!1), L = (0, Q.useRef)(!1), R = T ? "asc" : "desc", z = Y({
+ })), P = (0, Q.useRef)({}), F = (0, Q.useRef)(!1), L = (0, Q.useRef)(!1), R = T ? "asc" : "desc", z = Ie({
queryKey: le(_, C, R),
retry: !1,
refetchOnWindowFocus: !1,
queryFn: ({ signal: e }) => {
- let t = I.current, n = L.current;
- return I.current = !1, L.current = !1, fe(_, e, {
+ let t = F.current, n = L.current;
+ return F.current = !1, L.current = !1, fe(_, e, {
sort: C,
direction: R,
- jobId: t ? void 0 : se.current[_],
+ jobId: t ? void 0 : P.current[_],
refreshMetadata: t,
cancelMetadata: n
});
@@ -866,14 +922,14 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
refetchInterval: (e) => e.state.data?.metadata_job?.status === "running" && Math.max(1e3, e.state.data.poll_after_ms || 3e3)
}), B = z.data?.metadata_job;
(0, Q.useEffect)(() => {
- B?.job_id && (se.current[_] = B.job_id);
+ B?.job_id && (P.current[_] = B.job_id);
}, [_, B?.job_id]);
- let V = J(), U = J(), de = (e) => {
- U.run(e, async () => (L.current = e === "stop", I.current = e !== "stop", z.refetch({
+ let V = Y(), H = Y(), U = (e) => {
+ H.run(e, async () => (L.current = e === "stop", F.current = e !== "stop", z.refetch({
cancelRefetch: !0,
throwOnError: !0
})), () => {});
- }, W = z.data?.items || [], pe = [...new Set(W.flatMap((e) => e.tags || []))], G = W.filter((e) => (!y || e.tags?.includes(y)) && (!o || [
+ }, G = z.data?.items || [], de = [...new Set(G.flatMap((e) => e.tags || []))], K = G.filter((e) => (!y || e.tags?.includes(y)) && (!o || [
e.code,
e.title,
e.performers,
@@ -882,7 +938,7 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
...(e.performer_refs || []).map((e) => e.name)
].join(" ").toLocaleLowerCase().includes(o.toLocaleLowerCase()))), q = z.isPending;
return /* @__PURE__ */ (0, $.jsxs)("section", {
- ref: M,
+ ref: A,
"aria-label": "为你推荐",
"aria-busy": q,
className: "flex min-w-0 flex-col gap-4",
@@ -907,7 +963,7 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
"data-entity-press": "",
pressed: _ === e,
onPress: () => {
- D(e), k("");
+ D(e), O("");
},
children: t
}, e)), /* @__PURE__ */ (0, $.jsx)("span", {
@@ -917,14 +973,14 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
}), /* @__PURE__ */ (0, $.jsx)("div", {
"data-catalog-tags": "",
dangerouslySetInnerHTML: q ? { __html: _e() } : void 0,
- children: q ? null : pe.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
+ children: q ? null : de.map((e) => /* @__PURE__ */ (0, $.jsxs)(h, {
"data-catalog-tag": e,
"data-entity-press": "",
pressed: y === e,
- onPress: () => k(y === e ? "" : e),
+ onPress: () => O(y === e ? "" : e),
children: [e, /* @__PURE__ */ (0, $.jsx)("span", {
"data-count-badge": "",
- children: W.filter((t) => t.tags?.includes(e)).length
+ children: G.filter((t) => t.tags?.includes(e)).length
})]
}, e))
})]
@@ -936,12 +992,12 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
- }) : `${G.length} 部`
+ }) : `${K.length} 部`
}),
/* @__PURE__ */ (0, $.jsx)(b, { currentHref: () => location.pathname + location.search }),
o || y ? /* @__PURE__ */ (0, $.jsx)(g, {
onPress: () => {
- k(""), l();
+ O(""), l();
},
children: "清除筛选"
}) : null,
@@ -954,17 +1010,17 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
label: B?.status === "running" ? "停止读取" : "更新资料",
disabled: q,
"data-skeleton-action": q ? "" : void 0,
- busy: !!U.busy,
- icon: B?.status === "running" ? Ze : Qe,
- onPress: () => de(B?.status === "running" ? "stop" : "update")
+ busy: !!H.busy,
+ icon: B?.status === "running" ? et : tt,
+ onPress: () => U(B?.status === "running" ? "stop" : "update")
}) : null,
/* @__PURE__ */ (0, $.jsx)(ne, {
label: "JAV 卡片版式",
- value: P,
+ value: M,
options: ee,
- onChange: Me
+ onChange: Ne
}),
- /* @__PURE__ */ (0, $.jsx)(O, {
+ /* @__PURE__ */ (0, $.jsx)(ie, {
sorts: s.map(([e, t, n]) => ({
key: e,
label: t,
@@ -973,7 +1029,7 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
dir: R
})),
onSort: (e) => {
- e === C ? j(!T) : (A(e), j(e === "code"));
+ e === C ? k(!T) : (re(e), k(e === "code"));
}
})
]
@@ -983,17 +1039,17 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
q ? /* @__PURE__ */ (0, $.jsx)("div", {
role: "status",
"aria-label": "正在读取推荐",
- dangerouslySetInnerHTML: { __html: he("discover", P) }
+ dangerouslySetInnerHTML: { __html: he("discover", M) }
}) : null,
z.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
title: "推荐未取得",
- children: H(z.error)
+ children: W(z.error)
}) : null,
_ === "external" && B?.status === "running" ? /* @__PURE__ */ (0, $.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, $.jsx)(re, {
+ children: /* @__PURE__ */ (0, $.jsx)(ae, {
embedded: !0,
label: `正在读取作品资料 · ${B.completed} / ${B.total} 部`,
value: B.completed,
@@ -1004,18 +1060,18 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
tone: "neutral",
action: /* @__PURE__ */ (0, $.jsx)(n, {
variant: "secondary",
- ...F(U.busy === "retry"),
+ ...I(H.busy === "retry"),
"aria-label": "立即重试读取作品资料",
- onClick: () => de("retry"),
+ onClick: () => U("retry"),
children: "立即重试"
}),
children: B.message || `作品资料 ${B.completed} / ${B.total} 部`
}) : null,
- U.error ? /* @__PURE__ */ (0, $.jsx)(S, {
+ H.error ? /* @__PURE__ */ (0, $.jsx)(S, {
tone: "error",
- children: U.error
+ children: H.error
}) : null,
- !q && !z.error && !G.length ? /* @__PURE__ */ (0, $.jsx)(f, {
+ !q && !z.error && !K.length ? /* @__PURE__ */ (0, $.jsx)(f, {
icon: u,
title: o || y ? "没有符合条件的推荐" : "暂无匹配口味的作品",
actions: /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [/* @__PURE__ */ (0, $.jsx)(r, {
@@ -1053,30 +1109,30 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
/* @__PURE__ */ (0, $.jsx)("div", {
"data-media-grid": "",
className: te,
- style: { "--card-ratio": oe },
- children: G.map((n) => {
- let r = Se(n.taste_score ?? n.score), o = [
+ style: { "--card-ratio": N },
+ children: K.map((n) => {
+ let r = Ce(n.taste_score ?? n.score), o = [
r.label,
`口味 ${ue(n.taste_score ?? n.score)}`,
z.data?.ranking_method === "mmr" && n.ranking_score != null ? `排序 ${ue(n.ranking_score)}` : "",
n.source_score == null ? "" : `来源评分 ${n.source_score.toFixed(1)} / 5`,
...n.reasons || []
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, $.jsx)(Ke, {
+ return /* @__PURE__ */ (0, $.jsx)(Je, {
item: n,
- layout: P,
- javImage: N.value.javImage,
+ layout: M,
+ javImage: j.value.javImage,
readOnly: e,
navigate: c,
tag: y,
- onTag: k,
+ onTag: O,
wanting: V.busy === String(n.id),
onWant: () => {
- V.run(String(n.id), (e) => ie({ code: n.code }, e), () => {
- t("已加入想要"), K(), z.refetch();
+ V.run(String(n.id), (e) => oe({ code: n.code }, e), () => {
+ t("已加入想要"), J(), z.refetch();
});
},
- onResource: () => i(Ge(n)),
+ onResource: () => i(qe(n)),
badge: /* @__PURE__ */ (0, $.jsx)("button", {
"data-jav-taste-score": "",
type: "button",
@@ -1094,6 +1150,6 @@ function tt({ readOnly: e, receipt: t, resource: i, query: o, navigate: c, clear
]
});
}
-export { et as JavPage };
+export { rt as JavPage };
-//# debugId=41242498-6c22-4586-9b1f-727cd5a0c970
\ No newline at end of file
+//# debugId=0fdb342b-820f-4b3c-9a8f-7235a2f54321
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 66b4586e3..df019e161 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2c9abb90-f845-48b8-960c-59ee0b5783c4", e._sentryDebugIdIdentifier = "sentry-dbid-2c9abb90-f845-48b8-960c-59ee0b5783c4");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ca47c035-7a3d-4441-9cfa-ad73f99e1af8", e._sentryDebugIdIdentifier = "sentry-dbid-ca47c035-7a3d-4441-9cfa-ad73f99e1af8");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -22682,7 +22682,7 @@ function Cae(e) {
return e || `${r}-${n}`;
}
function wae(e) {
- let t = F.useId(), [n] = (0, F.useState)(uC()), r = n ? "react-aria" : `react-aria${oC.prefix}`;
+ let t = F.useId(), [n] = (0, F.useState)(lC()), r = n ? "react-aria" : `react-aria${oC.prefix}`;
return e || `${r}-${t}`;
}
var Tae = typeof F.useId == "function" ? wae : Cae;
@@ -22692,98 +22692,98 @@ function Eae() {
function Dae() {
return !0;
}
-function lC(e) {
+function Oae(e) {
return () => {};
}
-function uC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(lC, Eae, Dae) : (0, F.useContext)(xae);
+function lC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Oae, Eae, Dae) : (0, F.useContext)(xae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var dC = null, fC = /* @__PURE__ */ new Set(), pC = /* @__PURE__ */ new Map(), mC = !1, hC = !1, Oae = {
+var uC = null, dC = /* @__PURE__ */ new Set(), fC = /* @__PURE__ */ new Map(), pC = !1, mC = !1, kae = {
Tab: !0,
Escape: !0
};
-function gC(e, t) {
- for (let n of fC) n(e, t);
+function hC(e, t) {
+ for (let n of dC) n(e, t);
}
-function kae(e) {
+function Aae(e) {
return !(e.metaKey || !YS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
+function gC(e) {
+ pC = !0, !rC.isOpening && Aae(e) && (uC = "keyboard", hC("keyboard", e));
+}
function _C(e) {
- mC = !0, !rC.isOpening && kae(e) && (dC = "keyboard", gC("keyboard", e));
+ uC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (pC = !0, hC("pointer", e));
}
function vC(e) {
- dC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (mC = !0, gC("pointer", e));
+ !rC.isOpening && tC(e) && (pC = !0, uC = "virtual");
}
function yC(e) {
- !rC.isOpening && tC(e) && (mC = !0, dC = "virtual");
-}
-function bC(e) {
if (GS) return;
let t = G(e), n = ES(t), r = TS(t);
- t === n ? hC = !0 : t !== r && e.isTrusted && (!mC && !hC && (dC = "virtual", gC("virtual", e)), mC = !1, hC = !1);
+ t === n ? mC = !0 : t !== r && e.isTrusted && (!pC && !mC && (uC = "virtual", hC("virtual", e)), pC = !1, mC = !1);
}
-function xC() {
- GS || (mC = !1, hC = !0);
+function bC() {
+ GS || (pC = !1, mC = !0);
}
-function SC(e) {
+function xC(e) {
let t = NS(TS(G(e)));
queueMicrotask(() => {
- NS(TS(G(e))) !== t && DC("keyboard");
+ NS(TS(G(e))) !== t && EC("keyboard");
});
}
-function CC(e) {
+function SC(e) {
if (typeof window > "u" || typeof document > "u") return;
let t = ES(e), n = TS(e);
- if (pC.get(t)) return;
+ if (fC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- mC = !0, r.apply(this, arguments);
+ pC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", _C, !0), n.addEventListener("keyup", _C, !0), n.addEventListener("click", yC, !0), n.addEventListener("invalid", SC, !0), t.addEventListener("focus", bC, !0), t.addEventListener("blur", xC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", vC, !0), n.addEventListener("pointermove", vC, !0), n.addEventListener("pointerup", vC, !0)), t.addEventListener("beforeunload", () => {
- wC(e);
- }, { once: !0 }), pC.set(t, { focus: r });
+ }), n.addEventListener("keydown", gC, !0), n.addEventListener("keyup", gC, !0), n.addEventListener("click", vC, !0), n.addEventListener("invalid", xC, !0), t.addEventListener("focus", yC, !0), t.addEventListener("blur", bC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", _C, !0), n.addEventListener("pointermove", _C, !0), n.addEventListener("pointerup", _C, !0)), t.addEventListener("beforeunload", () => {
+ CC(e);
+ }, { once: !0 }), fC.set(t, { focus: r });
}
-var wC = (e, t) => {
+var CC = (e, t) => {
let n = ES(e), r = TS(e);
- t && r.removeEventListener("DOMContentLoaded", t), pC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+ t && r.removeEventListener("DOMContentLoaded", t), fC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: pC.get(n).focus
- }), r.removeEventListener("keydown", _C, !0), r.removeEventListener("keyup", _C, !0), r.removeEventListener("click", yC, !0), r.removeEventListener("invalid", SC, !0), n.removeEventListener("focus", bC, !0), n.removeEventListener("blur", xC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", vC, !0), r.removeEventListener("pointermove", vC, !0), r.removeEventListener("pointerup", vC, !0)), pC.delete(n));
+ value: fC.get(n).focus
+ }), r.removeEventListener("keydown", gC, !0), r.removeEventListener("keyup", gC, !0), r.removeEventListener("click", vC, !0), r.removeEventListener("invalid", xC, !0), n.removeEventListener("focus", yC, !0), n.removeEventListener("blur", bC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", _C, !0), r.removeEventListener("pointermove", _C, !0), r.removeEventListener("pointerup", _C, !0)), fC.delete(n));
};
-function Aae(e) {
+function jae(e) {
let t = TS(e), n;
return t.readyState === "loading" ? (n = () => {
- CC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : CC(e), () => wC(e, n);
+ SC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : SC(e), () => CC(e, n);
}
-typeof document < "u" && Aae();
-function TC() {
- return dC !== "pointer";
+typeof document < "u" && jae();
+function wC() {
+ return uC !== "pointer";
}
-function EC() {
- return dC;
+function TC() {
+ return uC;
}
-function DC(e) {
- dC = e, gC(e, null);
+function EC(e) {
+ uC = e, hC(e, null);
}
-function OC() {
- CC();
- let [e, t] = (0, F.useState)(dC);
+function DC() {
+ SC();
+ let [e, t] = (0, F.useState)(uC);
return (0, F.useEffect)(() => {
let e = () => {
- t(dC);
+ t(uC);
};
- return fC.add(e), () => {
- fC.delete(e);
+ return dC.add(e), () => {
+ dC.delete(e);
};
- }, []), uC() ? null : e;
+ }, []), lC() ? null : e;
}
-var jae = /* @__PURE__ */ new Set([
+var Mae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22794,80 +22794,80 @@ var jae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Mae(e, t, n) {
+function Nae(e, t, n) {
let r = n ? G(n) : void 0, i = TS(r), a = ES(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = NS(i);
- return e = e || u instanceof o && !jae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Oae[n.key]);
+ return e = e || u instanceof o && !Mae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !kae[n.key]);
}
-function kC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || TC());
- return AC((e) => {
+function OC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || wC());
+ return kC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function AC(e, t, n) {
- CC(), (0, F.useEffect)(() => {
+function kC(e, t, n) {
+ SC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Mae(!!n?.isTextInput, t, r) && e(TC());
+ Nae(!!n?.isTextInput, t, r) && e(wC());
};
- return fC.add(t), () => {
- fC.delete(t);
+ return dC.add(t), () => {
+ dC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var jC = /* @__PURE__ */ new Map(), MC = /* @__PURE__ */ new Set();
-function NC(e) {
+var AC = /* @__PURE__ */ new Map(), jC = /* @__PURE__ */ new Set();
+function MC(e) {
return "propertyName" in e;
}
-function Nae(e) {
+function Pae(e) {
let t = G(e);
- if (!NC(e) || !t) return;
- let n = jC.get(t);
- n || (n = /* @__PURE__ */ new Set(), jC.set(t, n), t.addEventListener("transitioncancel", PC, { once: !0 })), n.add(e.propertyName);
+ if (!MC(e) || !t) return;
+ let n = AC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), AC.set(t, n), t.addEventListener("transitioncancel", NC, { once: !0 })), n.add(e.propertyName);
}
-function PC(e) {
+function NC(e) {
let t = G(e);
- if (!NC(e) || !t) return;
- let n = jC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", PC), jC.delete(t)), jC.size === 0)) for (let e of MC) e(!0), MC.delete(e);
+ if (!MC(e) || !t) return;
+ let n = AC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", NC), AC.delete(t)), AC.size === 0)) for (let e of jC) e(!0), jC.delete(e);
}
-function FC() {
- kS(document, "transitionrun", Nae), kS(document, "transitionend", PC);
+function PC() {
+ kS(document, "transitionrun", Pae), kS(document, "transitionend", NC);
}
-function Pae() {
- for (let [e] of jC) "isConnected" in e && !e.isConnected && jC.delete(e);
+function Fae() {
+ for (let [e] of AC) "isConnected" in e && !e.isConnected && AC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", FC) : FC());
-function IC(e) {
+typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", PC) : PC());
+function FC(e) {
let t = window.requestAnimationFrame(() => {
- if (Pae(), jC.size === 0) return e(!1);
- MC.add(e);
+ if (Fae(), AC.size === 0) return e(!1);
+ jC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), MC.delete(e);
+ window.cancelAnimationFrame(t), jC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function LC(e) {
+function IC(e) {
if (!e.isConnected) return;
let t = TS(e);
- if (EC() === "virtual") {
+ if (TC() === "virtual") {
let n = NS(t);
- IC(() => {
+ FC(() => {
let r = NS(t);
(r === n || r === t.body) && e.isConnected && wS(e);
});
} else wS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function RC(...e) {
+function LC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Fae(e) {
+function Iae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -22880,21 +22880,21 @@ function Fae(e) {
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Iae = !!(typeof window < "u" && window.document && window.document.createElement), zC = /* @__PURE__ */ new Map(), BC;
-typeof FinalizationRegistry < "u" && (BC = new FinalizationRegistry((e) => {
- zC.delete(e);
+var Lae = !!(typeof window < "u" && window.document && window.document.createElement), RC = /* @__PURE__ */ new Map(), zC;
+typeof FinalizationRegistry < "u" && (zC = new FinalizationRegistry((e) => {
+ RC.delete(e);
}));
-var VC = /* @__PURE__ */ new WeakMap();
-function HC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Tae(t), a = (0, F.useRef)(null), o = VC.get(a);
- if (BC && o !== i && (o != null && BC.unregister(a), BC.register(a, i, a), VC.set(a, i)), Iae) {
- let e = zC.get(i);
- e && !e.includes(r) ? e.push(r) : zC.set(i, [r]);
+var BC = /* @__PURE__ */ new WeakMap();
+function VC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Tae(t), a = (0, F.useRef)(null), o = BC.get(a);
+ if (zC && o !== i && (o != null && zC.unregister(a), zC.register(a, i, a), BC.set(a, i)), Lae) {
+ let e = RC.get(i);
+ e && !e.includes(r) ? e.push(r) : RC.set(i, [r]);
}
return VS(() => {
let e = i;
return () => {
- BC && (BC.unregister(a), VC.delete(a)), zC.delete(e);
+ zC && (zC.unregister(a), BC.delete(a)), RC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22903,15 +22903,15 @@ function HC(e) {
};
}), i;
}
-function Lae(e, t) {
+function Rae(e, t) {
if (e === t) return e;
- let n = zC.get(e);
+ let n = RC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = zC.get(t);
+ let r = RC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function UC(e = []) {
- let t = HC(), [n, r] = Fae(t), i = (0, F.useCallback)(() => {
+function HC(e = []) {
+ let t = VC(), [n, r] = Iae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
@@ -22923,37 +22923,37 @@ function UC(e = []) {
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function WC(...e) {
+function UC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = GC(e, t);
+ let r = WC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : GC(e[n], null);
+ typeof t == "function" ? t() : WC(e[n], null);
});
};
};
}
-function GC(e, t) {
+function WC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function KC(e) {
+function GC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = KC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = GC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function qC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = KC(e)) && (r && (r += " "), r += t);
+function KC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = GC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -22963,13 +22963,13 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = RC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = qC(n, i) : e === "id" && n && i ? t.id = Lae(n, i) : e === "ref" && n && i ? t.ref = WC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = LC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = KC(n, i) : e === "id" && n && i ? t.id = Rae(n, i) : e === "ref" && n && i ? t.ref = UC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function JC(e) {
+function qC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
}, [r, i]), o = WS(a), s = (0, F.useCallback)((e) => {
@@ -22986,7 +22986,7 @@ function JC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function YC(e) {
+function JC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23010,33 +23010,33 @@ function YC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Rae = /* @__PURE__ */ new Set([
+var zae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), zae = [
+]), Bae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Bae(e) {
+function Vae(e) {
let t = /* @__PURE__ */ new Set();
return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(YS() ? "Meta" : "Control"), t;
}
-function Vae(e) {
+function Hae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function XC(e) {
- return zae.filter((t) => e.has(t));
+function YC(e) {
+ return Bae.filter((t) => e.has(t));
}
-function Hae(e) {
+function Uae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Rae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return zae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23048,10 +23048,10 @@ function Hae(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function ZC(e) {
+function XC(e) {
return e.toLowerCase();
}
-var Uae = {
+var Wae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23063,26 +23063,26 @@ var Uae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Wae(e) {
- let t = ZC(e);
- return Uae[t] ?? t;
-}
function Gae(e) {
- let t = XC(Bae(e)), n = Wae(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = XC(e);
+ return Wae[t] ?? t;
}
function Kae(e) {
- let t = XC(Vae(e)), n = ZC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = YC(Vae(e)), n = Gae(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function qae(e) {
+ let t = YC(Hae(e)), n = XC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Jae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Hae(n);
- t.set(Gae(e), r);
+ let e = Uae(n);
+ t.set(Kae(e), r);
}
return (e) => {
- let n = Kae(e), r = t.get(n), i = r?.(e);
+ let n = qae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23093,23 +23093,23 @@ function qae(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function QC(e) {
+function ZC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = qae(t), s = YC((e) => {
+ let o = Jae(t), s = JC((e) => {
MS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = YC((e) => {
+ }), c = JC((e) => {
MS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? RC(e.onKeyDown, s) : s, a = e.onKeyUp ? RC(e.onKeyUp, c) : c;
- } else i = YC(e.onKeyDown), a = YC(e.onKeyUp);
+ i = e.onKeyDown ? LC(e.onKeyDown, s) : s, a = e.onKeyUp ? LC(e.onKeyUp, c) : c;
+ } else i = JC(e.onKeyDown), a = JC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function $C(e) {
+function QC(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23131,7 +23131,7 @@ function $C(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function ew(e, t) {
+function $C(e, t) {
VS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
@@ -23139,17 +23139,17 @@ function ew(e, t) {
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var tw = /*#__PURE__*/ F.createContext(null);
-function Jae(e) {
- let t = (0, F.useContext)(tw) || {};
- ew(t, e);
+var ew = /*#__PURE__*/ F.createContext(null);
+function Yae(e) {
+ let t = (0, F.useContext)(ew) || {};
+ $C(t, e);
let { ref: n, ...r } = t;
return r;
}
-function nw(e, t) {
- let { focusProps: n } = JC(e), { keyboardProps: r } = QC(e), i = K(n, r), a = Jae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function tw(e, t) {
+ let { focusProps: n } = qC(e), { keyboardProps: r } = ZC(e), i = K(n, r), a = Yae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && LC(t.current), s.current = !1;
+ s.current && t.current && IC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23183,21 +23183,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var rw = /*#__PURE__*/ (0, F.createContext)(!1);
-function Yae(e) {
- if ((0, F.useContext)(rw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e.children);
+var nw = /*#__PURE__*/ (0, F.createContext)(!1);
+function Xae(e) {
+ if ((0, F.useContext)(nw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(nw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function iw(e) {
- let t = (t, n) => (0, F.useContext)(rw) ? null : e(t, n);
+function rw(e) {
+ let t = (t, n) => (0, F.useContext)(nw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function aw() {
- return (0, F.useContext)(rw);
+function iw() {
+ return (0, F.useContext)(nw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Xae = /* @__PURE__ */ o(((e) => {
+var Zae = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23235,47 +23235,47 @@ var Xae = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), ow = /* @__PURE__ */ o(((e, t) => {
- t.exports = Xae();
-})), Zae = ow(), sw = /*#__PURE__*/ (0, F.createContext)(!1), cw = /*#__PURE__*/ (0, F.createContext)(null);
-function lw(e) {
- if ((0, F.useContext)(cw)) return e.content;
- let { collection: t, document: n } = toe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Yae, null, /*#__PURE__*/ F.createElement(cw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Qae, {
+})), aw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Zae();
+})), Qae = aw(), ow = /*#__PURE__*/ (0, F.createContext)(!1), sw = /*#__PURE__*/ (0, F.createContext)(null);
+function cw(e) {
+ if ((0, F.useContext)(sw)) return e.content;
+ let { collection: t, document: n } = noe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Xae, null, /*#__PURE__*/ F.createElement(sw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement($ae, {
render: e.children,
collection: t
}));
}
-function Qae({ collection: e, render: t }) {
+function $ae({ collection: e, render: t }) {
return t(e);
}
-function $ae(e, t, n) {
- let r = uC(), i = (0, F.useRef)(r);
+function eoe(e, t, n) {
+ let r = lC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Zae.useSyncExternalStore)(e, a);
+ return (0, Qae.useSyncExternalStore)(e, a);
}
-var eoe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : $ae;
-function toe(e) {
+var toe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : eoe;
+function noe(e) {
let [t] = (0, F.useState)(() => new nae(e?.() || new yS()));
return {
- collection: eoe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: toe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var uw = /*#__PURE__*/ (0, F.createContext)(null);
-function noe(e) {
+var lw = /*#__PURE__*/ (0, F.createContext)(null);
+function roe(e) {
return class extends hS {
static {
this.type = e;
}
};
}
-function dw(e, t, n, r, i, a) {
- typeof e == "string" && (e = noe(e));
+function uw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = roe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23284,82 +23284,82 @@ function dw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(uw);
+ ]), s = (0, F.useContext)(lw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(uw.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(lw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function fw(e, t) {
+function dw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(tw);
- if (!(0, F.useContext)(sw)) {
+ let a = (0, F.useContext)(ew);
+ if (!(0, F.useContext)(ow)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return dw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(tw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return uw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ew.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function pw(e, t, n = mw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => dw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function fw(e, t, n = pw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => uw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function mw(e) {
+function pw(e) {
return CS({
...e,
addIdAndValue: !0
});
}
-var hw = /*#__PURE__*/ (0, F.createContext)(null);
-function gw(e) {
- let t = (0, F.useContext)(hw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = mw({
+var mw = /*#__PURE__*/ (0, F.createContext)(null);
+function hw(e) {
+ let t = (0, F.useContext)(mw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = pw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(cw) && (i = /*#__PURE__*/ F.createElement(roe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(sw) && (i = /*#__PURE__*/ F.createElement(ioe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(hw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(mw.Provider, { value: t }, i);
}
-function roe({ children: e }) {
- let t = (0, F.useContext)(cw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(cw.Provider, { value: null }, /*#__PURE__*/ F.createElement(sw.Provider, { value: !0 }, e)), [e]);
- return uC() ? /*#__PURE__*/ F.createElement(uw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
+function ioe({ children: e }) {
+ let t = (0, F.useContext)(sw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(sw.Provider, { value: null }, /*#__PURE__*/ F.createElement(ow.Provider, { value: !0 }, e)), [e]);
+ return lC() ? /*#__PURE__*/ F.createElement(lw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var ioe = "react-aria-clear-focus", aoe = "react-aria-focus";
+var aoe = "react-aria-clear-focus", ooe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function _w(e) {
- let t = soe(TS(e));
- t !== e && (t && ooe(t, e), e && vw(e, t));
+function gw(e) {
+ let t = coe(TS(e));
+ t !== e && (t && soe(t, e), e && _w(e, t));
}
-function ooe(e, t) {
+function soe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function vw(e, t) {
+function _w(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function soe(e) {
+function coe(e) {
let t = NS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function yw(e, t) {
+function vw(e, t) {
let n = ES(t), r = TS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var bw = 100, xw = 600, Sw = {
+var yw = 100, bw = 600, xw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23369,7 +23369,7 @@ var bw = 100, xw = 600, Sw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, coe = /* @__PURE__ */ new Set([
+}, loe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23380,7 +23380,7 @@ var bw = 100, xw = 600, Sw = {
"submit",
"reset"
]);
-function Cw() {
+function Sw() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23388,58 +23388,58 @@ function Cw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function loe(e) {
- Sw.resizeTimeStamp <= e.timeStamp + 50 && (Sw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Sw.resizeTimeout), Sw.resizeTimeout = window.setTimeout(ww, 150));
+function uoe(e) {
+ xw.resizeTimeStamp <= e.timeStamp + 50 && (xw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(xw.resizeTimeout), xw.resizeTimeout = window.setTimeout(Cw, 150));
}
-function ww() {
- let e = yw("viewport");
+function Cw() {
+ let e = vw("viewport");
if (eC() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = Cw(), r = t - Sw.startTimeStamp, i = Sw.screenHeight - n.height, a = Sw.screenAngle - n.angle;
- Math.abs(a) % 180 && Sw.screenWidth - n.height < bw && (Sw.screenWidth = n.width, Sw.screenHeight = n.height, Sw.screenAngle = n.angle, i = 0), r > xw && (window.clearTimeout(Sw.screenTimeout), Sw.screenTimeout = window.setTimeout(() => {
- let e = Dw(document.hasFocus() ? NS() : null), t = Cw();
- Math.abs(Sw.screenAngle - t.angle) % 180 || Sw.isOpen && e || (Sw.screenWidth = t.width, Sw.screenHeight = t.height, Sw.screenAngle = t.angle, Sw.isOpen = !1);
- }, xw)), r <= xw && i >= bw && (Sw.endTimeStamp = t), Sw.isOpen = i >= bw;
+ let t = performance.now(), n = Sw(), r = t - xw.startTimeStamp, i = xw.screenHeight - n.height, a = xw.screenAngle - n.angle;
+ Math.abs(a) % 180 && xw.screenWidth - n.height < yw && (xw.screenWidth = n.width, xw.screenHeight = n.height, xw.screenAngle = n.angle, i = 0), r > bw && (window.clearTimeout(xw.screenTimeout), xw.screenTimeout = window.setTimeout(() => {
+ let e = Ew(document.hasFocus() ? NS() : null), t = Sw();
+ Math.abs(xw.screenAngle - t.angle) % 180 || xw.isOpen && e || (xw.screenWidth = t.width, xw.screenHeight = t.height, xw.screenAngle = t.angle, xw.isOpen = !1);
+ }, bw)), r <= bw && i >= yw && (xw.endTimeStamp = t), xw.isOpen = i >= yw;
}
-function uoe() {
- let e = Cw(), t = Sw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !Sw.isOpen) {
- let e = Sw.screenWidth;
- Sw.screenWidth = Sw.screenHeight, Sw.screenHeight = e;
+function doe() {
+ let e = Sw(), t = xw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !xw.isOpen) {
+ let e = xw.screenWidth;
+ xw.screenWidth = xw.screenHeight, xw.screenHeight = e;
}
- Sw.isOpen || (Sw.screenAngle = e.angle);
+ xw.isOpen || (xw.screenAngle = e.angle);
}
-function doe(e) {
- let t = Dw(G(e)), n = performance.now(), r = Cw(), i = Sw.screenHeight - r.height;
- i < bw && t && (Sw.screenWidth = r.width, Sw.screenHeight = r.height, Sw.screenAngle = r.angle, Sw.startTimeStamp = n), t && window.clearTimeout(Sw.screenTimeout), i >= bw && t && (Sw.endTimeStamp = n);
+function foe(e) {
+ let t = Ew(G(e)), n = performance.now(), r = Sw(), i = xw.screenHeight - r.height;
+ i < yw && t && (xw.screenWidth = r.width, xw.screenHeight = r.height, xw.screenAngle = r.angle, xw.startTimeStamp = n), t && window.clearTimeout(xw.screenTimeout), i >= yw && t && (xw.endTimeStamp = n);
}
-function Tw() {
- let e = Cw();
- kS(window.visualViewport, "resize", QS() ? ww : loe), kS(window.screen.orientation, "change", uoe), kS(window, "focus", doe, {
+function ww() {
+ let e = Sw();
+ kS(window.visualViewport, "resize", QS() ? Cw : uoe), kS(window.screen.orientation, "change", doe), kS(window, "focus", foe, {
capture: !0,
passive: !0
- }), Sw.screenWidth = e.width, Sw.screenHeight = e.height, Sw.screenAngle = e.angle;
+ }), xw.screenWidth = e.width, xw.screenHeight = e.height, xw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", Tw) : Tw());
-function Ew() {
- let e = yw("viewport");
- return eC() && e?.includes("overlays-content") ? !1 : Sw.isOpen ? !0 : Sw.startTimeStamp ? Sw.endTimeStamp >= Sw.startTimeStamp ? !0 : performance.now() - Sw.startTimeStamp <= xw ? Sw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", ww) : ww());
+function Tw() {
+ let e = vw("viewport");
+ return eC() && e?.includes("overlays-content") ? !1 : xw.isOpen ? !0 : xw.startTimeStamp ? xw.endTimeStamp >= xw.startTimeStamp ? !0 : performance.now() - xw.startTimeStamp <= bw ? xw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Dw(e) {
+function Ew(e) {
if (!(e instanceof Element) || !RS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !coe.has(e.type);
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !loe.has(e.type);
return t || n || r;
}
-function Ow(e) {
+function Dw(e) {
return YS() ? e.metaKey : e.ctrlKey;
}
-function kw() {
- return Sw.isOpen;
+function Ow() {
+ return xw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var foe = F.useInsertionEffect ?? VS;
-function Aw(e) {
+var poe = F.useInsertionEffect ?? VS;
+function kw(e) {
let t = (0, F.useRef)(null);
- return foe(() => {
+ return poe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23447,8 +23447,8 @@ function Aw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function jw(e, t, n, r) {
- let i = Aw(n), a = n == null;
+function Aw(e, t, n, r) {
+ let i = kw(n), a = n == null;
(0, F.useEffect)(() => {
if (!(a || e.current == null)) return kS(e.current, t, i, r);
}, [
@@ -23459,16 +23459,16 @@ function jw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Mw(e, t) {
+function jw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = HC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = VC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var poe = /* @__PURE__ */ new Set([
+var moe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23479,7 +23479,7 @@ var poe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), moe = /* @__PURE__ */ new Set([
+]), hoe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23500,19 +23500,19 @@ var poe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function hoe(e) {
+function goe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return poe.has(t.script);
+ if (t.script) return moe.has(t.script);
}
let t = e.split("-")[0];
- return moe.has(t);
+ return hoe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Nw = Symbol.for("react-aria.i18n.locale");
-function Pw() {
- let e = typeof window < "u" && window[Nw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Mw = Symbol.for("react-aria.i18n.locale");
+function Nw() {
+ let e = typeof window < "u" && window[Mw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23520,31 +23520,31 @@ function Pw() {
}
return {
locale: e,
- direction: hoe(e) ? "rtl" : "ltr"
+ direction: goe(e) ? "rtl" : "ltr"
};
}
-var Fw = Pw(), Iw = /* @__PURE__ */ new Set();
-function Lw() {
- Fw = Pw();
- for (let e of Iw) e(Fw);
+var Pw = Nw(), Fw = /* @__PURE__ */ new Set();
+function Iw() {
+ Pw = Nw();
+ for (let e of Fw) e(Pw);
}
-function goe() {
- let e = uC(), [t, n] = (0, F.useState)(Fw);
- return (0, F.useEffect)(() => (Iw.size === 0 && window.addEventListener("languagechange", Lw), Iw.add(n), () => {
- Iw.delete(n), Iw.size === 0 && window.removeEventListener("languagechange", Lw);
+function _oe() {
+ let e = lC(), [t, n] = (0, F.useState)(Pw);
+ return (0, F.useEffect)(() => (Fw.size === 0 && window.addEventListener("languagechange", Iw), Fw.add(n), () => {
+ Fw.delete(n), Fw.size === 0 && window.removeEventListener("languagechange", Iw);
}), []), e ? {
- locale: typeof window < "u" && window[Nw] || "en-US",
+ locale: typeof window < "u" && window[Mw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var _oe = /*#__PURE__*/ F.createContext(null);
-function Rw() {
- let e = goe();
- return (0, F.useContext)(_oe) || e;
+var voe = /*#__PURE__*/ F.createContext(null);
+function Lw() {
+ let e = _oe();
+ return (0, F.useContext)(voe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var voe = Symbol.for("react-aria.i18n.locale"), yoe = Symbol.for("react-aria.i18n.strings"), zw = void 0, Bw = class e {
+var yoe = Symbol.for("react-aria.i18n.locale"), boe = Symbol.for("react-aria.i18n.strings"), Rw = void 0, zw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23555,38 +23555,38 @@ var voe = Symbol.for("react-aria.i18n.locale"), yoe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = boe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = xoe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[voe];
- if (zw === void 0) {
- let t = window[yoe];
+ let n = window[yoe];
+ if (Rw === void 0) {
+ let t = window[boe];
if (!t) return null;
- zw = {};
- for (let r in t) zw[r] = new e({ [n]: t[r] }, n);
+ Rw = {};
+ for (let r in t) Rw[r] = new e({ [n]: t[r] }, n);
}
- let r = zw?.[t];
+ let r = Rw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function boe(e, t, n = "en-US") {
+function xoe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = xoe(e), i = Soe(e);
+ let r = Soe(e), i = Coe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function xoe(e) {
+function Soe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Soe(e) {
+function Coe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Vw = /* @__PURE__ */ new Map(), Hw = /* @__PURE__ */ new Map(), Coe = class {
+var Bw = /* @__PURE__ */ new Map(), Vw = /* @__PURE__ */ new Map(), woe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23597,36 +23597,36 @@ var Vw = /* @__PURE__ */ new Map(), Hw = /* @__PURE__ */ new Map(), Coe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Vw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Vw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Bw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Bw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Hw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Hw.set(this.locale, t)), t.format(e);
+ let t = Vw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Vw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Uw = /* @__PURE__ */ new WeakMap();
-function woe(e) {
- let t = Uw.get(e);
- return t || (t = new Bw(e), Uw.set(e, t)), t;
+}, Hw = /* @__PURE__ */ new WeakMap();
+function Toe(e) {
+ let t = Hw.get(e);
+ return t || (t = new zw(e), Hw.set(e, t)), t;
}
-function Toe(e, t) {
- return t && Bw.getGlobalDictionaryForPackage(t) || woe(e);
+function Eoe(e, t) {
+ return t && zw.getGlobalDictionaryForPackage(t) || Toe(e);
}
-function Ww(e, t) {
- let { locale: n } = Rw(), r = Toe(e, t);
- return (0, F.useMemo)(() => new Coe(n, r), [n, r]);
+function Uw(e, t) {
+ let { locale: n } = Lw(), r = Eoe(e, t);
+ return (0, F.useMemo)(() => new woe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Eoe = /* @__PURE__ */ new Set(["id"]), Doe = /* @__PURE__ */ new Set([
+var Doe = /* @__PURE__ */ new Set(["id"]), Ooe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Ooe = /* @__PURE__ */ new Set([
+]), koe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23634,60 +23634,60 @@ var Eoe = /* @__PURE__ */ new Set(["id"]), Doe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), koe = /* @__PURE__ */ new Set([
+]), Aoe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Gw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Aoe = /^(data-.*)$/;
-function Kw(e, t = {}) {
+]), Ww = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), joe = /^(data-.*)$/;
+function Gw(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Eoe.has(t) || n && Doe.has(t) || r && Ooe.has(t) || i && koe.has(t) || a && (Gw.has(t) || t.endsWith("Capture") && Gw.has(t.slice(0, -7))) || o?.has(t) || Aoe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Doe.has(t) || n && Ooe.has(t) || r && koe.has(t) || i && Aoe.has(t) || a && (Ww.has(t) || t.endsWith("Capture") && Ww.has(t.slice(0, -7))) || o?.has(t) || joe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var qw = "default", Jw = "", Yw = /* @__PURE__ */ new WeakMap();
-function Xw(e) {
+var Kw = "default", qw = "", Jw = /* @__PURE__ */ new WeakMap();
+function Yw(e) {
if (ZS() && QS()) {
- if (qw === "default") {
+ if (Kw === "default") {
let t = TS(e);
- Jw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ qw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- qw = "disabled";
+ Kw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Yw.set(e, e.style[t]), e.style[t] = "none";
+ Jw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Zw(e) {
+function Xw(e) {
if (ZS() && QS()) {
- if (qw !== "disabled") return;
- qw = "restoring", setTimeout(() => {
- IC(() => {
- if (qw === "restoring") {
+ if (Kw !== "disabled") return;
+ Kw = "restoring", setTimeout(() => {
+ FC(() => {
+ if (Kw === "restoring") {
let t = TS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Jw || ""), Jw = "", qw = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = qw || ""), qw = "", Kw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Yw.has(e)) {
- let t = Yw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Yw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Jw.has(e)) {
+ let t = Jw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Jw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Qw = /* @__PURE__ */ new WeakMap();
-function $w(e) {
- let t = TS(e), n = Qw.get(t);
- return n ??= yw("csp-nonce", t), n !== void 0 && Qw.set(t, n), n;
+var Zw = /* @__PURE__ */ new WeakMap();
+function Qw(e) {
+ let t = TS(e), n = Zw.get(t);
+ return n ??= vw("csp-nonce", t), n !== void 0 && Zw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var eT = F.createContext({ register: () => {} });
-eT.displayName = "PressResponderContext";
+var $w = F.createContext({ register: () => {} });
+$w.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function tT() {
+function eT() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23713,15 +23713,15 @@ function tT() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function joe(e) {
- let t = (0, F.useContext)(eT);
+function Moe(e) {
+ let t = (0, F.useContext)($w);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return ew(t, e.ref), e;
+ return $C(t, e.ref), e;
}
-var nT = class {
+var tT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23734,9 +23734,9 @@ var nT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, rT = Symbol("linkClicked"), iT = "react-aria-pressable-style", aT = "data-react-aria-pressable";
-function oT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = joe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, nT = Symbol("linkClicked"), rT = "react-aria-pressable-style", iT = "data-react-aria-pressable";
+function aT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Moe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23746,12 +23746,12 @@ function oT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = tT(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = eT(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new nT("pressstart", t, e);
+ let n = new tT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23765,11 +23765,11 @@ function oT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new nT("pressend", r, e);
+ let t = new tT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new nT("press", r, e);
+ let n = new tT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23778,19 +23778,19 @@ function oT(e) {
i,
n,
t
- ]), x = Aw(b), S = Aw((0, F.useCallback)((e, t) => {
+ ]), x = kw(b), S = kw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new nT("pressup", t, e);
+ let r = new tT("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(lT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Zw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(cT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Xw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23798,7 +23798,7 @@ function oT(e) {
d,
v,
b
- ]), w = Aw(C);
+ ]), w = kw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23820,13 +23820,13 @@ function oT(e) {
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (cT(t.nativeEvent, t.currentTarget) && MS(t.currentTarget, G(t))) {
- uT(G(t), t.key) && t.preventDefault();
+ if (sT(t.nativeEvent, t.currentTarget) && MS(t.currentTarget, G(t))) {
+ lT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(TS(t.currentTarget), "keyup", RC((t) => {
- cT(t, i) && !t.repeat && MS(i, G(t)) && e.target && S(lT(e.target, t), "keyboard");
+ _(TS(t.currentTarget), "keyup", LC((t) => {
+ sT(t, i) && !t.repeat && MS(i, G(t)) && e.target && S(cT(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && YS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -23837,17 +23837,17 @@ function oT(e) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(lT(t.currentTarget, t), r), a = x(lT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(cT(t.currentTarget, t), r), a = x(cT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && cT(t, e.target)) {
- uT(G(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && sT(t, e.target)) {
+ lT(G(t), t.key) && t.preventDefault();
let n = G(t), r = MS(e.target, n);
- x(lT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && sT(e.target) && MS(e.target, n) && !t[rT] && (t[rT] = !0, rC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(cT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && oT(e.target) && MS(e.target, n) && !t[nT] && (t[nT] = !0, rC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23864,7 +23864,7 @@ function oT(e) {
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Xw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Yw(e.target), i = y(t, e.pointerType);
let a = G(t);
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(TS(t.currentTarget), "pointerup", n, !1), _(TS(t.currentTarget), "pointercancel", r, !1);
}
@@ -23880,9 +23880,9 @@ function oT(e) {
}, t.onPointerUp = (t) => {
MS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(lT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(cT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(lT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(cT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -23916,13 +23916,13 @@ function oT(e) {
return (0, F.useEffect)(() => {
if (!f) return;
let e = TS(f.current);
- if (!e || !e.head || e.getElementById(iT)) return;
+ if (!e || !e.head || e.getElementById(rT)) return;
let t = e.createElement("style");
- t.id = iT;
- let n = $w(e);
+ t.id = rT;
+ let n = Qw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${aT}] {
+ [${iT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23930,23 +23930,23 @@ function oT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Zw(e.target ?? void 0);
+ d || Xw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [aT]: !0 })
+ pressProps: K(p, O, { [iT]: !0 })
};
}
-function sT(e) {
+function oT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function cT(e, t) {
+function sT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof ES(i).HTMLInputElement && !dT(i, n) || i instanceof ES(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && sT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof ES(i).HTMLInputElement && !uT(i, n) || i instanceof ES(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && oT(i)) && n !== "Enter");
}
-function lT(e, t) {
+function cT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -23959,13 +23959,13 @@ function lT(e, t) {
key: t.key
};
}
-function Moe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !sT(e);
+function Noe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !oT(e);
}
-function uT(e, t) {
- return YS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !dT(e, t) : Moe(e);
+function lT(e, t) {
+ return YS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !uT(e, t) : Noe(e);
}
-var Noe = /* @__PURE__ */ new Set([
+var Poe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23976,11 +23976,11 @@ var Noe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function dT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Noe.has(e.type);
+function uT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Poe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Poe(e, t) {
+function Foe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24002,7 +24002,7 @@ function Poe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = oT({
+ let { pressProps: _, isPressed: v } = aT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24012,9 +24012,9 @@ function Poe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = nw(e, t);
+ }), { focusableProps: y } = tw(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Kw(e, { labelable: !0 }));
+ let b = K(y, _, Gw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24028,7 +24028,7 @@ function Poe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Foe = class {
+var Ioe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24131,44 +24131,44 @@ var Foe = class {
return null;
}
};
-function fT(e, t, n, r) {
- return jS() ? new Foe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function dT(e, t, n, r) {
+ return jS() ? new Ioe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var pT = /*#__PURE__*/ F.createContext(null), mT = "react-aria-focus-scope-restore", hT = null;
-function gT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(pT) || {}, l = (0, F.useMemo)(() => new kT({ scopeRef: s }), [s]);
+var fT = /*#__PURE__*/ F.createContext(null), pT = "react-aria-focus-scope-restore", mT = null;
+function hT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(fT) || {}, l = (0, F.useMemo)(() => new OT({ scopeRef: s }), [s]);
VS(() => {
- let e = c || AT.root;
- if (AT.getTreeNode(e.scopeRef) && hT && !ST(hT, e.scopeRef)) {
- let t = AT.getTreeNode(hT);
+ let e = c || kT.root;
+ if (kT.getTreeNode(e.scopeRef) && mT && !xT(mT, e.scopeRef)) {
+ let t = kT.getTreeNode(mT);
t && (e = t);
}
- e.addChild(l), AT.addNode(l);
+ e.addChild(l), kT.addNode(l);
}, [l, c]), VS(() => {
- let e = AT.getTreeNode(s);
+ let e = kT.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), VS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(mT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(pT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(mT, n);
+ for (let e of t) e.removeEventListener(pT, n);
};
- }, [t]), Hoe(s, r, n), zoe(s, n), Uoe(s, r, n), Voe(s, i), (0, F.useEffect)(() => {
+ }, [t]), Uoe(s, r, n), Boe(s, n), Woe(s, r, n), Hoe(s, i), (0, F.useEffect)(() => {
let e = NS(TS(s.current ? s.current[0] : void 0)), t = null;
- if (bT(e, s.current)) {
- for (let n of AT.traverse()) n.scopeRef && bT(e, n.scopeRef.current) && (t = n);
- t === AT.getTreeNode(s) && (hT = t.scopeRef);
+ if (yT(e, s.current)) {
+ for (let n of kT.traverse()) n.scopeRef && yT(e, n.scopeRef.current) && (t = n);
+ t === kT.getTreeNode(s) && (mT = t.scopeRef);
}
}, [s]), VS(() => () => {
- let e = AT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== hT && !ST(s, hT) || e && !AT.getTreeNode(e) || (hT = e), AT.removeTreeNode(s);
+ let e = kT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== mT && !xT(s, mT) || e && !kT.getTreeNode(e) || (mT = e), kT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Ioe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Loe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(pT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(fT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24178,68 +24178,68 @@ function gT(e) {
ref: o
}));
}
-function Ioe(e) {
+function Loe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = OT(_T(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = DT(gT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = bT(s, n) ? s : c;
+ l.currentNode = yT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && CT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && ST(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = OT(_T(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = DT(gT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = bT(s, n) ? s : c;
+ l.currentNode = yT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && CT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && ST(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = OT(_T(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = DT(gT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && CT(o, !0), o;
+ return o && ST(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = OT(_T(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = DT(gT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && CT(o, !0), o;
+ return o && ST(o, !0), o;
}
};
}
-function _T(e) {
+function gT(e) {
return e[0].parentElement;
}
-function vT(e) {
- let t = AT.getTreeNode(hT);
+function _T(e) {
+ let t = kT.getTreeNode(mT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Loe(e) {
+function Roe(e) {
if (!e.form) return Array.from(TS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = ES(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Roe(e) {
+function zoe(e) {
if (e.checked) return !0;
- let t = Loe(e);
+ let t = Roe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function zoe(e, t) {
+function Boe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
VS(() => {
let i = e.current;
@@ -24248,23 +24248,23 @@ function zoe(e, t) {
return;
}
let a = TS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !_T(e) || t.isComposing) return;
let n = NS(a), r = e.current;
- if (!r || !bT(n, r)) return;
- let i = OT(_T(r), { tabbable: !0 }, r);
+ if (!r || !yT(n, r)) return;
+ let i = DT(gT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (CT(o, !0), o instanceof ES(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (ST(o, !0), o instanceof ES(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!hT || ST(hT, e)) && bT(G(t), e.current) ? (hT = e, n.current = G(t)) : vT(e) && !xT(G(t), e) ? n.current ? CT(n.current) : hT && hT.current && TT(hT.current) : vT(e) && (n.current = G(t));
+ (!mT || xT(mT, e)) && yT(G(t), e.current) ? (mT = e, n.current = G(t)) : _T(e) && !bT(G(t), e) ? n.current ? ST(n.current) : mT && mT.current && wT(mT.current) : _T(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = EC(), i = (r === "virtual" || r === null) && eC() && $S(), o = NS(a);
- if (!i && o && vT(e) && !xT(o, e)) {
- hT = e;
+ let r = TC(), i = (r === "virtual" || r === null) && eC() && $S(), o = NS(a);
+ if (!i && o && _T(e) && !bT(o, e)) {
+ mT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, CT(n.current)) : hT.current && TT(hT.current);
+ r && r.isConnected ? (n.current = r, ST(n.current)) : mT.current && wT(mT.current);
}
});
};
@@ -24275,57 +24275,57 @@ function zoe(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function yT(e) {
- return xT(e);
+function vT(e) {
+ return bT(e);
}
-function bT(e, t) {
+function yT(e, t) {
return !e || !t ? !1 : t.some((t) => MS(t, e));
}
-function xT(e, t = null) {
+function bT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of AT.traverse(AT.getTreeNode(t))) if (n && bT(e, n.current)) return !0;
+ for (let { scopeRef: n } of kT.traverse(kT.getTreeNode(t))) if (n && yT(e, n.current)) return !0;
return !1;
}
-function Boe(e) {
- return xT(e, hT);
+function Voe(e) {
+ return bT(e, mT);
}
-function ST(e, t) {
- let n = AT.getTreeNode(t)?.parent;
+function xT(e, t) {
+ let n = kT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function CT(e, t = !1) {
+function ST(e, t = !1) {
if (e != null && !t) try {
- LC(e);
+ IC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function wT(e, t = !0) {
- let n = e[0].previousElementSibling, r = _T(e), i = OT(r, { tabbable: t }, e);
+function CT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = gT(e), i = DT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = _T(e), i = OT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = gT(e), i = DT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function TT(e, t = !0) {
- CT(wT(e, t));
+function wT(e, t = !0) {
+ ST(CT(e, t));
}
-function Voe(e, t) {
+function Hoe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (hT = e, !bT(NS(TS(e.current ? e.current[0] : void 0)), hT.current) && e.current && TT(e.current)), n.current = !1;
+ n.current && (mT = e, !yT(NS(TS(e.current ? e.current[0] : void 0)), mT.current) && e.current && wT(e.current)), n.current = !1;
}, [e]);
}
-function Hoe(e, t, n) {
+function Uoe(e, t, n) {
VS(() => {
if (t || n) return;
let r = e.current, i = TS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- bT(n, e.current) ? hT = e : yT(n) || (hT = null);
+ yT(n, e.current) ? mT = e : vT(n) || (mT = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24336,21 +24336,21 @@ function Hoe(e, t, n) {
n
]);
}
-function ET(e) {
- let t = AT.getTreeNode(hT);
+function TT(e) {
+ let t = kT.getTreeNode(mT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Uoe(e, t, n) {
+function Woe(e, t, n) {
let r = (0, F.useRef)(typeof document < "u" ? NS(TS(e.current ? e.current[0] : void 0)) : null);
VS(() => {
let r = e.current, i = TS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!hT || ST(hT, e)) && bT(NS(i), e.current) && (hT = e);
+ (!mT || xT(mT, e)) && yT(NS(i), e.current) && (mT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24359,20 +24359,20 @@ function Uoe(e, t, n) {
let r = TS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !_T(e) || t.isComposing) return;
let n = r.activeElement;
- if (!xT(n, e) || !ET(e)) return;
- let i = AT.getTreeNode(e);
+ if (!bT(n, e) || !TT(e)) return;
+ let i = kT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = OT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = DT(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !xT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !bT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (xT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? CT(s, !0) : yT(a) ? CT(a, !0) : n.blur();
+ while (bT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? ST(s, !0) : vT(a) ? ST(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24385,28 +24385,28 @@ function Uoe(e, t, n) {
]), VS(() => {
let n = TS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = AT.getTreeNode(e);
+ let i = kT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = AT.getTreeNode(e);
+ let r = kT.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = NS(n);
- if (t && i && (a && xT(a, e) || a === n.body && ET(e))) {
- let t = AT.clone();
+ if (t && i && (a && bT(a, e) || a === n.body && TT(e))) {
+ let t = kT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- DT(n.nodeToRestore);
+ ET(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && AT.getTreeNode(n.scopeRef)) {
- let e = wT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && kT.getTreeNode(n.scopeRef)) {
+ let e = CT(n.scopeRef.current, !0);
if (e) {
- DT(e);
+ ET(e);
return;
}
}
@@ -24418,21 +24418,21 @@ function Uoe(e, t, n) {
};
}, [e, t]);
}
-function DT(e) {
- e.dispatchEvent(new CustomEvent(mT, {
+function ET(e) {
+ e.dispatchEvent(new CustomEvent(pT, {
bubbles: !0,
cancelable: !0
- })) && CT(e);
+ })) && ST(e);
}
-function OT(e, t, n) {
- let r = t?.tabbable ? zS : RS, i = TS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = fT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return MS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Roe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || bT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function DT(e, t, n) {
+ let r = t?.tabbable ? zS : RS, i = TS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = dT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return MS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!zoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || yT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Woe = class e {
+var Goe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new kT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new OT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24443,7 +24443,7 @@ var Woe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new kT({ scopeRef: e });
+ let i = new OT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24454,7 +24454,7 @@ var Woe = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && bT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && yT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24466,7 +24466,7 @@ var Woe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, kT = class {
+}, OT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24476,13 +24476,13 @@ var Woe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, AT = new Woe(), jT = 7e3, MT = null;
-function NT(e, t = "assertive", n = jT) {
- MT ? MT.announce(e, t, n) : (MT = new Goe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? MT.announce(e, t, n) : setTimeout(() => {
- MT?.isAttached() && MT?.announce(e, t, n);
+}, kT = new Goe(), AT = 7e3, jT = null;
+function MT(e, t = "assertive", n = AT) {
+ jT ? jT.announce(e, t, n) : (jT = new Koe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? jT.announce(e, t, n) : setTimeout(() => {
+ jT?.isAttached() && jT?.announce(e, t, n);
}, 100));
}
-var Goe = class {
+var Koe = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24507,7 +24507,7 @@ var Goe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = jT) {
+ announce(e, t = "assertive", n = AT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24519,8 +24519,8 @@ var Goe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function PT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Aw(e);
+function NT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = kw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24529,28 +24529,28 @@ function PT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function FT(e, t) {
+function PT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function IT(e, t) {
+function FT(e, t) {
let n = e;
- for (FT(n, t) && (n = n.parentElement); n && !FT(n, t);) n = n.parentElement;
+ for (PT(n, t) && (n = n.parentElement); n && !PT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function LT(e, t) {
+function IT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (FT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (PT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function RT(e, t, n = {}) {
- e !== t && Koe(e, t, t.getBoundingClientRect(), n);
+function LT(e, t, n = {}) {
+ e !== t && qoe(e, t, t.getBoundingClientRect(), n);
}
-function Koe(e, t, n, r = {}) {
+function qoe(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
ZS() && QS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
@@ -24573,7 +24573,7 @@ function Koe(e, t, n, r = {}) {
top: o
});
}
-function zT(e, t = {}) {
+function RT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24586,45 +24586,45 @@ function zT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = LT(e, !0);
- for (let t of i) RT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = IT(e, !0);
+ for (let t of i) LT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? LT(n, !0) : [];
- for (let e of i) RT(e, n, {
+ i = n ? IT(n, !0) : [];
+ for (let e of i) LT(e, n, {
block: "center",
inline: "center"
});
- for (let t of LT(e, !0)) RT(t, e);
+ for (let t of IT(e, !0)) LT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var qoe = 0, BT = /* @__PURE__ */ new Map();
-function VT(e) {
+var Joe = 0, zT = /* @__PURE__ */ new Map();
+function BT(e) {
let [t, n] = (0, F.useState)();
return VS(() => {
if (!e) return;
- let t = BT.get(e);
+ let t = zT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${qoe++}`;
+ let r = `react-aria-description-${Joe++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, BT.set(e, t);
+ }, zT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), BT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), zT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function HT(e, t, n) {
- let r = Aw((e) => {
+function VT(e, t, n) {
+ let r = kw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24635,21 +24635,21 @@ function HT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function UT(e, t, n) {
+function HT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
VS(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Yoe(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Xoe(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Aw(() => {
+ let a = (0, F.useRef)(!1), o = kw(() => {
a.current || t.resetValidation();
- }), s = Aw((e) => {
+ }), s = kw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Xoe(r) === n.current && (i ? i() : n.current?.focus(), DC("keyboard")), e.preventDefault();
- }), c = Aw(() => {
+ !e.defaultPrevented && n && r && Zoe(r) === n.current && (i ? i() : n.current?.focus(), EC("keyboard")), e.preventDefault();
+ }), c = kw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24663,7 +24663,7 @@ function UT(e, t, n) {
};
}, [n, r]);
}
-function Joe(e) {
+function Yoe(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24679,14 +24679,14 @@ function Joe(e) {
valid: t.valid
};
}
-function Yoe(e) {
+function Xoe(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Joe(e),
+ validationDetails: Yoe(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Xoe(e) {
+function Zoe(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24694,7 +24694,7 @@ function Xoe(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Zoe(e = !0) {
+function Qoe(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -24702,15 +24702,15 @@ function Zoe(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function WT(e = !0) {
- let t = HC(), [n, r] = Zoe(e);
+function UT(e = !0) {
+ let t = VC(), [n, r] = Qoe(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var GT = {
+var WT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24722,18 +24722,18 @@ var GT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, KT = {
- ...GT,
+}, GT = {
+ ...WT,
customError: !0,
valid: !1
-}, qT = {
+}, KT = {
isInvalid: !1,
- validationDetails: GT,
+ validationDetails: WT,
validationErrors: []
-}, Qoe = (0, F.createContext)({}), JT = "__reactAriaFormValidationState";
-function YT(e) {
+}, $oe = (0, F.createContext)({}), qT = "__reactAriaFormValidationState";
+function JT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[JT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[qT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24742,70 +24742,70 @@ function YT(e) {
commitValidation: a
};
}
- return $oe(e);
+ return ese(e);
}
-function $oe(e) {
+function ese(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: KT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : ZT(ese(o, i)), [o, i]);
+ validationDetails: GT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : XT(tse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(Qoe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => XT(u[e])) : XT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)($oe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => YT(u[e])) : YT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => ZT(m ? [] : d), [m, d]), _ = (0, F.useRef)(qT), [v, y] = (0, F.useState)(qT), b = (0, F.useRef)(qT), x = () => {
+ let g = (0, F.useMemo)(() => XT(m ? [] : d), [m, d]), _ = (0, F.useRef)(KT), [v, y] = (0, F.useState)(KT), b = (0, F.useRef)(KT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- QT(e, b.current) || (b.current = e, y(e));
+ ZT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || qT,
+ realtimeValidation: c || g || l || a || KT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !QT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !ZT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = qT;
- QT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = KT;
+ ZT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function XT(e) {
+function YT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function ese(e, t) {
+function tse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return XT(n);
+ if (n && typeof n != "boolean") return YT(n);
}
return [];
}
-function ZT(e) {
+function XT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: KT
+ validationDetails: GT
} : null;
}
-function QT(e, t) {
+function ZT(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function $T(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = YT({
+function QT(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = JT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- UT(e, b, n);
+ HT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = oT({
+ }, { pressProps: T, isPressed: E } = aT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24813,7 +24813,7 @@ function $T(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = oT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = aT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24830,13 +24830,13 @@ function $T(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [JT]: i } = e, { commitValidation: a } = i || b;
+ let { [qT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = nw(e, n), j = K(T, A), M = Kw(e, { labelable: !0 });
- HT(n, t.defaultSelected, t.setSelected);
- let ee = WT(), N = WT();
+ }), { focusableProps: A } = tw(e, n), j = K(T, A), M = Gw(e, { labelable: !0 });
+ VT(n, t.defaultSelected, t.setSelected);
+ let ee = UT(), N = UT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24872,8 +24872,8 @@ function $T(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function eE(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = $T(e, t, n), { isIndeterminate: m } = e;
+function $T(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = QT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24891,17 +24891,17 @@ function eE(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var tse = /* @__PURE__ */ new WeakMap();
+var nse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function tE(e) {
+function eE(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = HC(t);
- let o = HC(), s = {};
+ t = VC(t);
+ let o = VC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Mw({
+ let c = jw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24912,13 +24912,13 @@ function tE(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function nE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = tE(e), s = UC([
+function tE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = eE(e), s = HC([
!!t,
!!n,
r,
i
- ]), c = UC([
+ ]), c = HC([
!!t,
!!n,
r,
@@ -24936,8 +24936,8 @@ function nE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function rE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = tT(), c = (0, F.useCallback)((e) => {
+function nE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = eT(), c = (0, F.useCallback)((e) => {
MS(e.currentTarget, G(e)) && a.current.isFocusWithin && !MS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
@@ -24976,14 +24976,14 @@ function rE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var nse = F.useInsertionEffect ?? F.useLayoutEffect;
-function iE(e, t, n) {
+var rse = F.useInsertionEffect ?? F.useLayoutEffect;
+function rE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- nse(() => {
+ rse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -24993,8 +24993,8 @@ function iE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function aE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = iE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function iE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = rE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25009,26 +25009,26 @@ function aE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function rse(e, t, n) {
- let r = aE({
+function ise(e, t, n) {
+ let r = iE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = tse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = nse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = YT({
+ let { realtimeValidation: l } = JT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(qT), d = () => {
+ }), u = (0, F.useRef)(KT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = eE({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = $T({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25036,7 +25036,7 @@ function rse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [JT]: {
+ [qT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25059,10 +25059,10 @@ function rse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function oE(e, t = -Infinity, n = Infinity) {
+function aE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function sE(e, t) {
+function oE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25075,23 +25075,23 @@ function sE(e, t) {
}
return n;
}
-function cE(e, t, n, r) {
+function sE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = sE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(sE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(sE((n - t) / r, r)) * r), a = sE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = oE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(oE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(oE((n - t) / r, r)) * r), a = oE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var lE = /* @__PURE__ */ new Map(), uE = !1;
+var cE = /* @__PURE__ */ new Map(), lE = !1;
try {
- uE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ lE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var ise = class {
+var ase = class {
constructor(e, t = {}) {
- this.numberFormatter = ase(e, t), this.options = t;
+ this.numberFormatter = ose(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !uE && this.options.signDisplay != null ? ose(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !lE && this.options.signDisplay != null ? sse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25123,21 +25123,21 @@ var ise = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !uE && this.options.signDisplay != null && (e = {
+ return !lE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function ase(e, t = {}) {
+function ose(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (lE.has(r)) return lE.get(r);
+ if (cE.has(r)) return cE.get(r);
let i = new Intl.NumberFormat(e, t);
- return lE.set(r, i), i;
+ return cE.set(r, i), i;
}
-function ose(e, t, n) {
+function sse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25150,12 +25150,12 @@ function ose(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function dE(e) {
+function uE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = tT(), s = Aw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = eT(), s = kw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25177,8 +25177,8 @@ function dE(e) {
t,
n,
i
- ])), c = Aw((0, F.useCallback)((e, t) => {
- Zw(), i.current.didMove && r?.({
+ ])), c = kw((0, F.useCallback)((e, t) => {
+ Xw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25189,7 +25189,7 @@ function dE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Xw(), i.current.didMove = !1;
+ Yw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25247,7 +25247,7 @@ function dE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var fE = {
+var dE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25259,37 +25259,37 @@ var fE = {
width: "1px",
whiteSpace: "nowrap"
};
-function pE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = rE({
+function fE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = nE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...fE,
+ ...dE,
...t
- } : fE, [r]);
+ } : dE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function mE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = pE(e);
+function pE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = fE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function sse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = iE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = nw(e, t), d = YT({
+function cse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = rE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = tw(e, t), d = JT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = nE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = tE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Kw(e, { labelable: !0 }), b = {
+ }), y = Gw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return HT(t, e.defaultValue ?? x, l), UT(e, d, t), {
+ return VT(t, e.defaultValue ?? x, l), HT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25335,26 +25335,26 @@ function sse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function cse(e = {}) {
- let { locale: t } = Rw();
- return (0, F.useMemo)(() => new ise(t, e), [t, e]);
+function lse(e = {}) {
+ let { locale: t } = Lw();
+ return (0, F.useMemo)(() => new ase(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var hE = /* @__PURE__ */ new WeakMap();
-function gE(e, t) {
- let n = hE.get(e);
+var mE = /* @__PURE__ */ new WeakMap();
+function hE(e, t) {
+ let n = mE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function lse(e, t, n) {
- let { labelProps: r, fieldProps: i } = tE(e), a = e.orientation === "vertical";
- hE.set(t, {
+function use(e, t, n) {
+ let { labelProps: r, fieldProps: i } = eE(e), a = e.orientation === "vertical";
+ mE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Rw(), { addGlobalListener: s, removeGlobalListener: c } = tT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = dE({
+ let { direction: o } = Lw(), { addGlobalListener: s, removeGlobalListener: c } = eT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = uE({
onMoveStart() {
d.current = null;
},
@@ -25364,7 +25364,7 @@ function lse(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = oE(d.current / s, 0, 1);
+ let e = aE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25388,7 +25388,7 @@ function lse(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(gE(t, 0))?.focus(), DC("keyboard");
+ document.getElementById(hE(t, 0))?.focus(), EC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25411,16 +25411,16 @@ function lse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => gE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => hE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function use(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Rw(), { addGlobalListener: m, removeGlobalListener: h } = tT(), g = hE.get(t), { labelProps: _, fieldProps: v } = tE({
+function dse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Lw(), { addGlobalListener: m, removeGlobalListener: h } = eT(), g = mE.get(t), { labelProps: _, fieldProps: v } = eE({
...e,
- id: gE(t, n),
+ id: hE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
s.current && wS(s.current);
@@ -25430,7 +25430,7 @@ function use(e, t) {
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = QC({
+ }, { keyboardProps: T } = ZC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25446,7 +25446,7 @@ function use(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = dE({
+ }), { moveProps: E } = uE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25457,7 +25457,7 @@ function use(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, oE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, aE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25465,7 +25465,7 @@ function use(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = nw(K(e, {
+ let { focusableProps: D } = tw(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25485,7 +25485,7 @@ function use(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return HT(s, t.defaultValues[n], (e) => {
+ return VT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25525,13 +25525,13 @@ function use(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var dse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function _E(e) {
+var fse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function gE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var vE = /* @__PURE__ */ new WeakMap(), yE = [];
-function bE(e, t) {
- let n = ES(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && dse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var _E = /* @__PURE__ */ new WeakMap(), vE = [];
+function yE(e, t) {
+ let n = ES(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && fse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
if (jS()) {
@@ -25547,19 +25547,19 @@ function bE(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (MS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = fT(TS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = dT(TS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = vE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), vE.set(e, t + 1));
+ let t = _E.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), _E.set(e, t + 1));
};
- yE.length && yE[yE.length - 1].disconnect(), d(i);
+ vE.length && vE[vE.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gE(e) ? o.add(e) : e instanceof Element && d(e);
if (jS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -25576,7 +25576,7 @@ function bE(e, t) {
if (jS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && gE(e) ? o.add(e) : e instanceof Element && d(e);
if (jS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -25603,56 +25603,56 @@ function bE(e, t) {
p.disconnect();
}
};
- return yE.push(h), () => {
+ return vE.push(h), () => {
if (p.disconnect(), jS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = vE.get(e);
- t != null && (t === 1 ? (l(e, !1), vE.delete(e)) : vE.set(e, t - 1));
+ let t = _E.get(e);
+ t != null && (t === 1 ? (l(e, !1), _E.delete(e)) : _E.set(e, t - 1));
}
- h === yE[yE.length - 1] ? (yE.pop(), yE.length && yE[yE.length - 1].observe()) : yE.splice(yE.indexOf(h), 1);
+ h === vE[vE.length - 1] ? (vE.pop(), vE.length && vE[vE.length - 1].observe()) : vE.splice(vE.indexOf(h), 1);
};
}
-function xE(e) {
- let t = yE[yE.length - 1];
+function bE(e) {
+ let t = vE[vE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var SE = /* @__PURE__ */ new WeakMap();
-function fse(e) {
+var xE = /* @__PURE__ */ new WeakMap();
+function pse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function pse(e, t) {
- let n = SE.get(e);
+function mse(e, t) {
+ let n = xE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${fse(t)}`;
+ return `${n.id}-option-${pse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function CE(e) {
+function SE(e) {
return mae() ? e.altKey : e.ctrlKey;
}
-function wE(e, t) {
+function CE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var TE = /* @__PURE__ */ new WeakMap();
-function mse(e) {
- let t = HC();
- return TE.set(e, t), t;
-}
+var wE = /* @__PURE__ */ new WeakMap();
function hse(e) {
- return TE.get(e);
+ let t = VC();
+ return wE.set(e, t), t;
+}
+function gse(e) {
+ return wE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var EE = class {
+var TE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : wE(this.ref, e);
+ let n = e == null ? null : CE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25678,12 +25678,12 @@ var EE = class {
height: e?.clientHeight ?? 0
};
}
-}, DE = class {
+}, EE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new EE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new EE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new TE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new TE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25723,14 +25723,14 @@ var EE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = wE(this.ref, e);
+ let t = this.getNextKey(e), n = CE(this.ref, e);
if (t != null) {
- let e = wE(this.ref, t);
+ let e = CE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = wE(this.ref, r);
+ let e = CE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25764,7 +25764,7 @@ var EE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !FT(t)) return this.getFirstKey();
+ if (t && !PT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25779,7 +25779,7 @@ var EE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !FT(t)) return this.getLastKey();
+ if (t && !PT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25802,149 +25802,149 @@ var EE = class {
}
return null;
}
-}, OE = {};
-OE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, DE = {};
+DE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var kE = {};
-kE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var OE = {};
+OE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var AE = {};
-AE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var kE = {};
+kE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var jE = {};
-jE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var AE = {};
+AE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var ME = {};
-ME = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var jE = {};
+jE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var NE = {};
-NE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var ME = {};
+ME = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var PE = {};
-PE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var NE = {};
+NE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var FE = {};
-FE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var PE = {};
+PE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var IE = {};
-IE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var FE = {};
+FE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var LE = {};
-LE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var IE = {};
+IE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var RE = {};
-RE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var LE = {};
+LE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var zE = {};
-zE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var RE = {};
+RE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var BE = {};
-BE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var zE = {};
+zE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var VE = {};
-VE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var BE = {};
+BE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var HE = {};
-HE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var VE = {};
+VE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var UE = {};
-UE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var HE = {};
+HE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var WE = {};
-WE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var UE = {};
+UE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var GE = {};
-GE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var WE = {};
+WE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var KE = {};
-KE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var GE = {};
+GE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var qE = {};
-qE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var KE = {};
+KE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var JE = {};
-JE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var qE = {};
+qE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var YE = {};
-YE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var JE = {};
+JE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var XE = {};
-XE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var YE = {};
+YE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var ZE = {};
-ZE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var XE = {};
+XE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var QE = {};
-QE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var ZE = {};
+ZE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var $E = {};
-$E = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var QE = {};
+QE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var eD = {};
-eD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var $E = {};
+$E = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var tD = {};
-tD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var eD = {};
+eD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var nD = {};
-nD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var tD = {};
+tD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var rD = {};
-rD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var nD = {};
+nD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var iD = {};
-iD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var rD = {};
+rD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var aD = {};
-aD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var iD = {};
+iD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var oD = {};
-oD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var aD = {};
+aD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var sD = {};
-sD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var oD = {};
+oD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var cD = {};
-cD = {
- "ar-AE": OE,
- "bg-BG": kE,
- "cs-CZ": AE,
- "da-DK": jE,
- "de-DE": ME,
- "el-GR": NE,
- "en-US": PE,
- "es-ES": FE,
- "et-EE": IE,
- "fi-FI": LE,
- "fr-FR": RE,
- "he-IL": zE,
- "hr-HR": BE,
- "hu-HU": VE,
- "it-IT": HE,
- "ja-JP": UE,
- "ko-KR": WE,
- "lt-LT": GE,
- "lv-LV": KE,
- "nb-NO": qE,
- "nl-NL": JE,
- "pl-PL": YE,
- "pt-BR": XE,
- "pt-PT": ZE,
- "ro-RO": QE,
- "ru-RU": $E,
- "sk-SK": eD,
- "sl-SI": tD,
- "sr-SP": nD,
- "sv-SE": rD,
- "tr-TR": iD,
- "uk-UA": aD,
- "zh-CN": oD,
- "zh-TW": sD
+var sD = {};
+sD = {
+ "ar-AE": DE,
+ "bg-BG": OE,
+ "cs-CZ": kE,
+ "da-DK": AE,
+ "de-DE": jE,
+ "el-GR": ME,
+ "en-US": NE,
+ "es-ES": PE,
+ "et-EE": FE,
+ "fi-FI": IE,
+ "fr-FR": LE,
+ "he-IL": RE,
+ "hr-HR": zE,
+ "hu-HU": BE,
+ "it-IT": VE,
+ "ja-JP": HE,
+ "ko-KR": UE,
+ "lt-LT": WE,
+ "lv-LV": GE,
+ "nb-NO": KE,
+ "nl-NL": qE,
+ "pl-PL": JE,
+ "pt-BR": YE,
+ "pt-PT": XE,
+ "ro-RO": ZE,
+ "ru-RU": QE,
+ "sk-SK": $E,
+ "sl-SI": eD,
+ "sr-SP": tD,
+ "sv-SE": nD,
+ "tr-TR": rD,
+ "uk-UA": iD,
+ "zh-CN": aD,
+ "zh-TW": oD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var gse = 500;
-function lD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = gse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = tT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = oT({
+var _se = 500;
+function cD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = _se, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = eT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = aT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25972,11 +25972,11 @@ function lD(e) {
});
}
});
- return { longPressProps: K(f, VT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, BT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function _se(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = lD({
+function vse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = cD({
onLongPressStart() {
n.current = !1;
},
@@ -26018,13 +26018,13 @@ function _se(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var uD = /* @__PURE__ */ new WeakMap();
-function vse(e) {
+var lD = /* @__PURE__ */ new WeakMap();
+function yse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, F.useEffect)(() => !n || r === null ? void 0 : kS(PS(t.current), "scroll", (e) => {
let n = G(e);
if (!t.current || n instanceof Node && !MS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || uD.get(t.current);
+ let i = r || lD.get(t.current);
i && i();
}, !0), [
n,
@@ -26033,14 +26033,14 @@ function vse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function yse(e, t, n) {
+function bse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && uD.set(n.current, t.close);
+ n && n.current && lD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = HC();
+ let o = VC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26052,14 +26052,14 @@ function yse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function bse(e) {
+function xse(e) {
return e && e.__esModule ? e.default : e;
}
-function dD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = HC(), { triggerProps: s, overlayProps: c } = yse({ type: r }, t, n), l = (e, n, r = "first") => {
+function uD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = VC(), { triggerProps: s, overlayProps: c } = bse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = QC({
+ }, { keyboardProps: u } = ZC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26071,7 +26071,7 @@ function dD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Ww(bse(cD), "@react-aria/menu"), { longPressProps: f } = lD({
+ }), d = Uw(xse(sD), "@react-aria/menu"), { longPressProps: f } = cD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26090,7 +26090,7 @@ function dD(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = _se({ onContextMenu(e) {
+ let { contextMenuProps: m } = vse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26134,8 +26134,8 @@ function dD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var fD = 1e3;
-function pD(e) {
+var dD = 1e3;
+function fD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26154,11 +26154,11 @@ function pD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, fD);
+ }, dD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = xse(e.key);
+ let a = Sse(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !MS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -26170,16 +26170,16 @@ function pD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, fD);
+ }, dD);
}
} : void 0
} };
}
-function xse(e) {
+function Sse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function mD(e, t) {
+function pD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
VS(() => (n.current = !0, () => {
n.current = !1;
@@ -26188,14 +26188,14 @@ function mD(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function hD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Rw(), _ = nC(), v = (e, n, i) => {
+function mD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Lw(), _ = nC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !CE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !SE(e)) {
(0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = wE(r, n), o = t.getItemProps(n);
+ let a = CE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26207,7 +26207,7 @@ function hD(e) {
t.extendSelection(n);
return;
}
- if (l && !CE(e)) {
+ if (l && !SE(e)) {
t.replaceSelection(n);
return;
}
@@ -26234,9 +26234,9 @@ function hD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Ow(e));
+ let r = n.getFirstKey(t.focusedKey, Dw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ow(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Dw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26268,9 +26268,9 @@ function hD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Ow(e));
+ let r = n.getLastKey(t.focusedKey, Dw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ow(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Dw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26301,7 +26301,7 @@ function hD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = OT(r.current, { tabbable: !0 }), t, n;
+ let e = DT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -26320,7 +26320,7 @@ function hD(e) {
[e + "+Shift"]: t,
[YS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = QC({
+ }), { keyboardProps: M } = ZC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26330,7 +26330,7 @@ function hD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = QC({ shortcuts: {
+ }), { keyboardProps: ee } = ZC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26341,7 +26341,7 @@ function hD(e) {
top: 0,
left: 0
});
- jw(p, "scroll", () => {
+ Aw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26353,7 +26353,7 @@ function hD(e) {
return;
}
if (!MS(e.currentTarget, G(e))) return;
- let i = EC();
+ let i = TC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26364,27 +26364,27 @@ function hD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = wE(r, t.focusedKey);
- e instanceof HTMLElement && (!FS(e) && !d && wS(e), (i === "keyboard" || h && i === "virtual") && zT(e, { containingElement: r.current }));
+ let e = CE(r, t.focusedKey);
+ e instanceof HTMLElement && (!FS(e) && !d && wS(e), (i === "keyboard" || h && i === "virtual") && RT(e, { containingElement: r.current }));
}
}, P = (e) => {
MS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- jw(r, aoe, d ? (e) => {
+ Aw(r, ooe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- mD(() => {
+ pD(() => {
if (ne.current) {
if (re == null) {
let e = NS();
- _w(r.current), vw(e, null), t.collection.size > 0 && (ne.current = !1);
+ gw(r.current), _w(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), mD(() => {
+ }, [re, t.collection.size]), pD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), jw(r, ioe, d ? (e) => {
+ }, [t.focusedKey]), Aw(r, aoe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26399,22 +26399,22 @@ function hD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && LC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && IC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = EC(), n = wE(r, t.focusedKey);
+ let e = TC(), n = CE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (RT(p.current, n), e !== "virtual" && zT(n, { containingElement: r.current }));
+ p.current && (LT(p.current, n), e !== "virtual" && RT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && LC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && IC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), jw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Aw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26424,27 +26424,27 @@ function hD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = pD({
+ }, { typeSelectProps: ce } = fD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = mse(t.collection);
+ let ue = hse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function gD(e, t) {
+function hD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function _D(e) {
- return vD(e, 0);
+function gD(e) {
+ return _D(e, 0);
}
-function vD(e, t) {
+function _D(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26452,106 +26452,106 @@ function vD(e, t) {
n++;
}
}
-function yD(e) {
+function vD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function bD(e, t, n) {
+function yD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...xD(e, t), t], i = [...xD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...bD(e, t), t], i = [...bD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function xD(e, t) {
+function bD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var SD = /* @__PURE__ */ new WeakMap();
-function CD(e) {
- let t = SD.get(e);
+var xD = /* @__PURE__ */ new WeakMap();
+function SD(e) {
+ let t = xD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(gD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(hD(i, e)) : i.type === "item" && n++;
};
- return r(e), SD.set(e, n), n;
+ return r(e), xD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var wD = /* @__PURE__ */ new Map();
-function TD(e) {
- let { locale: t } = Rw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (wD.has(n)) return wD.get(n);
+var CD = /* @__PURE__ */ new Map();
+function wD(e) {
+ let { locale: t } = Lw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (CD.has(n)) return CD.get(n);
let r = new Intl.Collator(t, e);
- return wD.set(n, r), r;
+ return CD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Sse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(eT), a = K(i || {}, {
+var Cse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)($w), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = $C(n || i?.ref), ew(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = QC(n || i?.ref), $C(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(eT.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement($w.Provider, { value: a }, e);
});
-function Cse({ children: e }) {
+function wse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(eT.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement($w.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ED = /*#__PURE__*/ (0, F.createContext)({});
-function DD(e) {
- let { getContainer: t } = e, { getContainer: n } = OD();
- return /*#__PURE__*/ F.createElement(ED.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var TD = /*#__PURE__*/ (0, F.createContext)({});
+function ED(e) {
+ let { getContainer: t } = e, { getContainer: n } = DD();
+ return /*#__PURE__*/ F.createElement(TD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function OD() {
- return (0, F.useContext)(ED) ?? {};
+function DD() {
+ return (0, F.useContext)(TD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var kD = /*#__PURE__*/ F.createContext(null);
-function AD(e) {
- let t = uC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var OD = /*#__PURE__*/ F.createContext(null);
+function kD(e) {
+ let t = lC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = OD();
+ }), [i, a]), { getContainer: s } = DD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(gT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(hT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(kD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Cse, null, /*#__PURE__*/ F.createElement(tw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(OD.Provider, { value: o }, /*#__PURE__*/ F.createElement(wse, null, /*#__PURE__*/ F.createElement(ew.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function jD() {
- let e = (0, F.useContext)(kD)?.setContain;
+function AD() {
+ let e = (0, F.useContext)(OD)?.setContain;
VS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function wse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = UC();
+function Tse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = HC();
i = e["aria-label"] ? void 0 : i;
- let a = UC();
+ let a = HC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
if (!r && t.current && !FS(t.current)) {
- LC(t.current);
+ IC(t.current);
let e = setTimeout(() => {
- (NS() === t.current || NS() === document.body) && (o.current = !0, t.current && (t.current.blur(), LC(t.current)), o.current = !1);
+ (NS() === t.current || NS() === document.body) && (o.current = !0, t.current && (t.current.blur(), IC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), jD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), AD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Kw(e, { labelable: !0 }),
+ ...Gw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26565,23 +26565,23 @@ function wse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function MD(e = {}) {
+function jD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || TC()
+ isFocusVisible: t || wC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = TC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = wC(), o(e), l();
}, [l]);
- AC((e) => {
+ kC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = JC({
+ let { focusProps: d } = qC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = rE({
+ }), { focusWithinProps: f } = nE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26592,35 +26592,35 @@ function MD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Tse(e = {}) {
- let { locale: t } = Rw();
+function Ese(e = {}) {
+ let { locale: t } = Lw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var ND = !1, PD = 0;
-function Ese() {
- ND = !0, setTimeout(() => {
- ND = !1;
+var MD = !1, ND = 0;
+function Dse() {
+ MD = !0, setTimeout(() => {
+ MD = !1;
}, 500);
}
-function FD(e) {
- e.pointerType === "touch" && Ese();
+function PD(e) {
+ e.pointerType === "touch" && Dse();
}
-function Dse() {
+function Ose() {
let e = TS(null);
- if (e !== void 0) return PD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", FD), PD++, () => {
- PD--, !(PD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", FD);
+ if (e !== void 0) return ND === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", PD), ND++, () => {
+ ND--, !(ND > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", PD);
};
}
-function ID(e) {
+function FD(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Dse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = tT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Ose, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = eT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !MS(e.currentTarget, G(e))) return;
s.isHovered = !0;
@@ -26641,7 +26641,7 @@ function ID(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- ND && t.pointerType === "mouse" || e(t, t.pointerType);
+ MD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && MS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
@@ -26665,13 +26665,13 @@ function ID(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Ose(e) {
+function kse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Aw((e) => {
- n && LD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Aw((e) => {
+ }), o = kw((e) => {
+ n && ID(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = kw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
@@ -26680,7 +26680,7 @@ function Ose(e) {
let n = t.current, i = TS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && LD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && ID(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26688,7 +26688,7 @@ function Ose(e) {
}
}, [t, r]);
}
-function LD(e, t) {
+function ID(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
@@ -26698,18 +26698,18 @@ function LD(e, t) {
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var RD = /* @__PURE__ */ new WeakMap();
-function zD(e, t) {
- let { id: n } = RD.get(e) ?? {};
+var LD = /* @__PURE__ */ new WeakMap();
+function RD(e, t) {
+ let { id: n } = LD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${kse(t)}`;
+ return `${n}-${Ase(t)}`;
}
-function kse(e) {
+function Ase(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var BD = {};
-BD = {
+var zD = {};
+zD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26722,8 +26722,8 @@ BD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var VD = {};
-VD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26736,8 +26736,8 @@ VD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var HD = {};
-HD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26750,8 +26750,8 @@ HD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var UD = {};
-UD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26764,8 +26764,8 @@ UD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26778,8 +26778,8 @@ WD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26792,8 +26792,8 @@ GD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26806,8 +26806,8 @@ KD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26820,8 +26820,8 @@ qD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var JD = {};
-JD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26834,8 +26834,8 @@ JD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26848,8 +26848,8 @@ YD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26862,8 +26862,8 @@ XD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26876,8 +26876,8 @@ ZD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26890,8 +26890,8 @@ QD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26904,8 +26904,8 @@ $D = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26918,8 +26918,8 @@ eO = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26932,8 +26932,8 @@ tO = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -26946,8 +26946,8 @@ nO = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -26960,8 +26960,8 @@ rO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -26974,8 +26974,8 @@ iO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -26988,8 +26988,8 @@ aO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27002,8 +27002,8 @@ oO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27016,8 +27016,8 @@ sO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27030,8 +27030,8 @@ cO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27044,8 +27044,8 @@ lO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27058,8 +27058,8 @@ uO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27072,8 +27072,8 @@ dO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27086,8 +27086,8 @@ fO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27100,8 +27100,8 @@ pO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27114,8 +27114,8 @@ mO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27128,8 +27128,8 @@ hO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27142,8 +27142,8 @@ gO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27156,8 +27156,8 @@ _O = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27170,8 +27170,8 @@ vO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27184,54 +27184,54 @@ yO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var bO = {};
-bO = {
- "ar-AE": BD,
- "bg-BG": VD,
- "cs-CZ": HD,
- "da-DK": UD,
- "de-DE": WD,
- "el-GR": GD,
- "en-US": KD,
- "es-ES": qD,
- "et-EE": JD,
- "fi-FI": YD,
- "fr-FR": XD,
- "he-IL": ZD,
- "hr-HR": QD,
- "hu-HU": $D,
- "it-IT": eO,
- "ja-JP": tO,
- "ko-KR": nO,
- "lt-LT": rO,
- "lv-LV": iO,
- "nb-NO": aO,
- "nl-NL": oO,
- "pl-PL": sO,
- "pt-BR": cO,
- "pt-PT": lO,
- "ro-RO": uO,
- "ru-RU": dO,
- "sk-SK": fO,
- "sl-SI": pO,
- "sr-SP": mO,
- "sv-SE": hO,
- "tr-TR": gO,
- "uk-UA": _O,
- "zh-CN": vO,
- "zh-TW": yO
+var yO = {};
+yO = {
+ "ar-AE": zD,
+ "bg-BG": BD,
+ "cs-CZ": VD,
+ "da-DK": HD,
+ "de-DE": UD,
+ "el-GR": WD,
+ "en-US": GD,
+ "es-ES": KD,
+ "et-EE": qD,
+ "fi-FI": JD,
+ "fr-FR": YD,
+ "he-IL": XD,
+ "hr-HR": ZD,
+ "hu-HU": QD,
+ "it-IT": $D,
+ "ja-JP": eO,
+ "ko-KR": tO,
+ "lt-LT": nO,
+ "lv-LV": rO,
+ "nb-NO": iO,
+ "nl-NL": aO,
+ "pl-PL": oO,
+ "pt-BR": sO,
+ "pt-PT": cO,
+ "ro-RO": lO,
+ "ru-RU": uO,
+ "sk-SK": dO,
+ "sl-SI": fO,
+ "sr-SP": pO,
+ "sv-SE": mO,
+ "tr-TR": hO,
+ "uk-UA": gO,
+ "zh-CN": _O,
+ "zh-TW": vO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Ase(e) {
+function jse(e) {
return e && e.__esModule ? e.default : e;
}
-function xO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Ww(Ase(bO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function bO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Uw(jse(yO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = SO(i, a.current), o = SO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = xO(i, a.current), o = xO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27251,7 +27251,7 @@ function xO(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && NT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && MT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27262,7 +27262,7 @@ function xO(e, t) {
n,
r
]);
- PT(() => {
+ NT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27270,20 +27270,20 @@ function xO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function SO(e, t) {
+function xO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function CO(e, t) {
+function SO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
return VS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = OT(e.current, { tabbable: !0 });
+ let t = DT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27301,12 +27301,12 @@ function CO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function jse(e) {
+function Mse(e) {
return e && e.__esModule ? e.default : e;
}
-function wO(e) {
- let t = Ww(jse(bO), "@react-aria/grid"), n = OC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return VT((0, F.useMemo)(() => {
+function CO(e) {
+ let t = Uw(Mse(yO), "@react-aria/grid"), n = DC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return BT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27318,11 +27318,11 @@ function wO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function TO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = TD({
+function wO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = wD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new DE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new EE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27339,7 +27339,7 @@ function TO(e) {
c,
l,
s
- ]), { collectionProps: d } = hD({
+ ]), { collectionProps: d } = mD({
...e,
ref: i,
selectionManager: t,
@@ -27348,10 +27348,10 @@ function TO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Mse(e, t, n) {
+function Nse(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = TO({
+ let { listProps: f } = wO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27366,30 +27366,30 @@ function Mse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = HC(e.id);
- RD.set(t, {
+ }), p = VC(e.id);
+ LD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = wO({
+ let m = CO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = CO(n, { isDisabled: t.collection.size !== 0 }), g = K(Kw(e, { labelable: !0 }), {
+ }), h = SO(n, { isDisabled: t.collection.size !== 0 }), g = K(Gw(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), xO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), bO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function EO(e) {
+function TO(e) {
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = nC();
- t = HC(t);
+ t = VC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && CE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && SE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27400,11 +27400,11 @@ function EO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Ow(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Dw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? _w(i.current) : s ? s() : NS() !== i.current && i.current && LC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? gw(i.current) : s ? s() : NS() !== i.current && i.current && IC(i.current));
}, [
i,
r,
@@ -27432,22 +27432,22 @@ function EO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || OO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || DO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !DO(e.key)) return;
+ if (e.pointerType === "keyboard" && !EO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || OO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || DO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && DO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && EO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = hse(n.collection);
+ let A = gse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27462,10 +27462,10 @@ function EO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = RC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = oT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = LC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = aT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = lD({
+ } : void 0, { longPressProps: N } = cD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27506,14 +27506,14 @@ function EO(e) {
hasAction: S
};
}
-function DO(e) {
+function EO(e) {
return e === "Enter";
}
-function OO(e) {
+function DO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var kO = {
+var OO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27523,18 +27523,18 @@ var kO = {
rtl: "ArrowRight"
}
};
-function Nse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Rw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = RD.get(t), f = UC(), p = (0, F.useRef)(null), m = () => {
+function Pse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Lw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = LD.get(t), f = HC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
if (FS(n.current) && n.current !== NS(TS(n.current))) return;
- let e = OT(n.current, { tabbable: !0 }).firstChild();
+ let e = DT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- LC(e), zT(e, { containingElement: IT(e) });
+ IC(e), RT(e, { containingElement: FT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !FS(n.current)) && LC(n.current);
+ (p.current != null && r.key !== p.current || !FS(n.current)) && IC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27544,7 +27544,7 @@ function Nse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Pse(e, t.collection);
+ let n = Fse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27555,41 +27555,41 @@ function Nse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = EO({
+ let { itemProps: v, ...y } = TO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? RC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? LC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
let i = NS(TS(n.current));
if (!MS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = OT(n.current);
- if (a.currentNode = i, !AO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let a = DT(n.current);
+ if (a.currentNode = i, !kO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), LC(t), zT(t, { containingElement: IT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") LC(n.current), zT(n.current, { containingElement: IT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), IC(t), RT(t, { containingElement: FT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") IC(n.current), RT(n.current, { containingElement: FT(n.current) });
else {
a.currentNode = n.current;
- let e = jO(a);
- e && (LC(e), zT(e, { containingElement: IT(n.current) }));
+ let e = AO(a);
+ e && (IC(e), RT(e, { containingElement: FT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), LC(t), zT(t, { containingElement: IT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") LC(n.current), zT(n.current, { containingElement: IT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), IC(t), RT(t, { containingElement: FT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") IC(n.current), RT(n.current, { containingElement: FT(n.current) });
else {
a.currentNode = n.current;
- let e = jO(a);
- e && (LC(e), zT(e, { containingElement: IT(n.current) }));
+ let e = AO(a);
+ e && (IC(e), RT(e, { containingElement: FT(n.current) }));
}
}
break;
@@ -27599,7 +27599,7 @@ function Nse(e, t, n) {
}, x = (e) => {
p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
a === "child" && NS(TS(n.current)) === n.current && m();
- }) : TC() || t.selectionManager.setFocusedKey(r.key);
+ }) : wC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
let i = NS(TS(n.current));
if (MS(e.currentTarget, G(e)) && n.current && i) {
@@ -27608,10 +27608,10 @@ function Nse(e, t, n) {
e.stopPropagation();
return;
}
- if (AO(e, t, r, g, s, i, n.current, o)) return;
+ if (kO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = OT(n.current, { tabbable: !0 });
+ let t = DT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -27622,8 +27622,8 @@ function Nse(e, t, n) {
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${zD(t, r.key)} ${f}` : void 0,
- id: zD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${RD(t, r.key)} ${f}` : void 0,
+ id: RD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27644,66 +27644,66 @@ function Nse(e, t, n) {
...y
};
}
-function AO(e, t, n, r, i, a, o, s) {
+function kO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === kO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === kO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === OO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === OO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function jO(e) {
+function AO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Pse(e, t) {
+function Fse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Fse(e) {
+function Ise(e) {
return e && e.__esModule ? e.default : e;
}
-function MO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = HC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function jO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = VC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Ww(Fse(bO), "@react-aria/grid").format("select"),
+ "aria-label": Uw(Ise(yO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Ise(e, t) {
- let { key: n } = e, { checkboxProps: r } = MO(e, t);
+function Lse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = jO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${zD(t, n)}`
+ "aria-labelledby": `${r.id} ${RD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Lse(e, t, n) {
- let r = Kw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Rse(e, t, n) {
+ let r = Gw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = TO({
+ let { listProps: s } = wO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = rE({
+ }), { focusWithinProps: c } = nE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = HC(e.id);
- SE.set(t, {
+ }), l = VC(e.id);
+ xE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27713,7 +27713,7 @@ function Lse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = tE({
+ let { labelProps: u, fieldProps: d } = eE({
...e,
id: l,
labelElementType: "span"
@@ -27728,8 +27728,8 @@ function Lse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Rse(e) {
- let { heading: t, "aria-label": n } = e, r = HC();
+function zse(e) {
+ let { heading: t, "aria-label": n } = e, r = VC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27747,8 +27747,8 @@ function Rse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function zse(e, t, n) {
- let { key: r } = e, i = SE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = UC(), f = UC(), p = {
+function Bse(e, t, n) {
+ let { key: r } = e, i = xE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = HC(), f = HC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27758,9 +27758,9 @@ function zse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = CD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = SD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = pse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = EO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = mse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = TO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27769,16 +27769,16 @@ function zse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? RC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? LC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = ID({
+ }), { hoverProps: S } = FD({
isDisabled: a || !c,
onHoverStart() {
- TC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ wC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Kw(m?.props);
+ }), C = Gw(m?.props);
delete C.id;
let w = aC(m?.props);
return {
@@ -27790,7 +27790,7 @@ function zse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && TC(),
+ isFocusVisible: y && t.selectionManager.isFocused && wC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27799,12 +27799,12 @@ function zse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var NO = /* @__PURE__ */ new WeakMap();
+var MO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Bse(e, t, n) {
+function Vse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Kw(e, { labelable: !0 }), { listProps: c } = TO({
+ let s = Gw(e, { labelable: !0 }), { listProps: c } = wO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27813,7 +27813,7 @@ function Bse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return NO.set(t, {
+ return MO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27829,15 +27829,15 @@ function Bse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Vse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = NO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = nC(), M = () => {
+function Hse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = MO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = nC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = UC(), te = UC(), P = UC(), ne = {
+ let N = HC(), te = HC(), P = HC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27854,7 +27854,7 @@ function Vse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = CD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = SD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
@@ -27864,7 +27864,7 @@ function Vse(e, t, n) {
m?.(e), M(), bae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = EO({
+ }, { itemProps: se, isFocused: ce } = TO({
id: r,
selectionManager: C,
key: i,
@@ -27873,27 +27873,27 @@ function Vse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = oT({
+ }), { pressProps: le, isPressed: ue } = aT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = ID({
+ }), { hoverProps: de } = FD({
isDisabled: E,
onHoverStart(e) {
- !TC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !wC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = QC({
+ }), { keyboardProps: fe } = ZC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), DC("keyboard");
+ }, G(e).click(), EC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27901,8 +27901,8 @@ function Vse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), DC("keyboard");
- else return DC("keyboard"), {
+ if (t.tagName !== "A") t.click(), EC("keyboard");
+ else return EC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27910,11 +27910,11 @@ function Vse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = nw({
+ }), { focusableProps: pe } = tw({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Kw(k?.props);
+ }, n), me = Gw(k?.props);
delete me.id;
let he = aC(k?.props);
return {
@@ -27931,15 +27931,15 @@ function Vse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && TC() && !T,
+ isFocusVisible: ce && C.isFocused && wC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Hse(e) {
- let { heading: t, "aria-label": n } = e, r = HC();
+function Use(e) {
+ let { heading: t, "aria-label": n } = e, r = VC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27954,15 +27954,15 @@ function Hse(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Use() {
+function Wse() {
return window.ResizeObserver !== void 0;
}
-function PO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Aw(r);
+function NO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = kw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Use()) {
+ if (Wse()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -27977,154 +27977,154 @@ function PO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var FO = {};
-FO = { dismiss: "تجاهل" };
+var PO = {};
+PO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var IO = {};
-IO = { dismiss: "Отхвърляне" };
+var FO = {};
+FO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var LO = {};
-LO = { dismiss: "Odstranit" };
+var IO = {};
+IO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var RO = {};
-RO = { dismiss: "Luk" };
+var LO = {};
+LO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var zO = {};
-zO = { dismiss: "Schließen" };
+var RO = {};
+RO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var BO = {};
-BO = { dismiss: "Απόρριψη" };
+var zO = {};
+zO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var VO = {};
-VO = { dismiss: "Dismiss" };
+var BO = {};
+BO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var HO = {};
-HO = { dismiss: "Descartar" };
+var VO = {};
+VO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var UO = {};
-UO = { dismiss: "Lõpeta" };
+var HO = {};
+HO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var WO = {};
-WO = { dismiss: "Hylkää" };
+var UO = {};
+UO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var GO = {};
-GO = { dismiss: "Rejeter" };
+var WO = {};
+WO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var KO = {};
-KO = { dismiss: "התעלם" };
+var GO = {};
+GO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var qO = {};
-qO = { dismiss: "Odbaci" };
+var KO = {};
+KO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var JO = {};
-JO = { dismiss: "Elutasítás" };
+var qO = {};
+qO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var YO = {};
-YO = { dismiss: "Ignora" };
+var JO = {};
+JO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var XO = {};
-XO = { dismiss: "閉じる" };
+var YO = {};
+YO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var ZO = {};
-ZO = { dismiss: "무시" };
+var XO = {};
+XO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var QO = {};
-QO = { dismiss: "Atmesti" };
+var ZO = {};
+ZO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var $O = {};
-$O = { dismiss: "Nerādīt" };
+var QO = {};
+QO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var ek = {};
-ek = { dismiss: "Lukk" };
+var $O = {};
+$O = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var tk = {};
-tk = { dismiss: "Negeren" };
+var ek = {};
+ek = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var nk = {};
-nk = { dismiss: "Zignoruj" };
+var tk = {};
+tk = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var rk = {};
-rk = { dismiss: "Descartar" };
+var nk = {};
+nk = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var ik = {};
-ik = { dismiss: "Dispensar" };
+var rk = {};
+rk = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ak = {};
-ak = { dismiss: "Revocare" };
+var ik = {};
+ik = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ok = {};
-ok = { dismiss: "Пропустить" };
+var ak = {};
+ak = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var sk = {};
-sk = { dismiss: "Zrušiť" };
+var ok = {};
+ok = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var ck = {};
-ck = { dismiss: "Opusti" };
+var sk = {};
+sk = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var lk = {};
-lk = { dismiss: "Odbaci" };
+var ck = {};
+ck = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var uk = {};
-uk = { dismiss: "Avvisa" };
+var lk = {};
+lk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var dk = {};
-dk = { dismiss: "Kapat" };
+var uk = {};
+uk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var fk = {};
-fk = { dismiss: "Скасувати" };
+var dk = {};
+dk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var pk = {};
-pk = { dismiss: "取消" };
+var fk = {};
+fk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var mk = {};
-mk = { dismiss: "關閉" };
+var pk = {};
+pk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var hk = {};
-hk = {
- "ar-AE": FO,
- "bg-BG": IO,
- "cs-CZ": LO,
- "da-DK": RO,
- "de-DE": zO,
- "el-GR": BO,
- "en-US": VO,
- "es-ES": HO,
- "et-EE": UO,
- "fi-FI": WO,
- "fr-FR": GO,
- "he-IL": KO,
- "hr-HR": qO,
- "hu-HU": JO,
- "it-IT": YO,
- "ja-JP": XO,
- "ko-KR": ZO,
- "lt-LT": QO,
- "lv-LV": $O,
- "nb-NO": ek,
- "nl-NL": tk,
- "pl-PL": nk,
- "pt-BR": rk,
- "pt-PT": ik,
- "ro-RO": ak,
- "ru-RU": ok,
- "sk-SK": sk,
- "sl-SI": ck,
- "sr-SP": lk,
- "sv-SE": uk,
- "tr-TR": dk,
- "uk-UA": fk,
- "zh-CN": pk,
- "zh-TW": mk
+var mk = {};
+mk = {
+ "ar-AE": PO,
+ "bg-BG": FO,
+ "cs-CZ": IO,
+ "da-DK": LO,
+ "de-DE": RO,
+ "el-GR": zO,
+ "en-US": BO,
+ "es-ES": VO,
+ "et-EE": HO,
+ "fi-FI": UO,
+ "fr-FR": WO,
+ "he-IL": GO,
+ "hr-HR": KO,
+ "hu-HU": qO,
+ "it-IT": JO,
+ "ja-JP": YO,
+ "ko-KR": XO,
+ "lt-LT": ZO,
+ "lv-LV": QO,
+ "nb-NO": $O,
+ "nl-NL": ek,
+ "pl-PL": tk,
+ "pt-BR": nk,
+ "pt-PT": rk,
+ "ro-RO": ik,
+ "ru-RU": ak,
+ "sk-SK": ok,
+ "sl-SI": sk,
+ "sr-SP": ck,
+ "sv-SE": lk,
+ "tr-TR": uk,
+ "uk-UA": dk,
+ "zh-CN": fk,
+ "zh-TW": pk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Wse(e) {
+function Gse(e) {
return e && e.__esModule ? e.default : e;
}
-function gk(e) {
- let { onDismiss: t, ...n } = e, r = Mw(n, Ww(Wse(hk), "@react-aria/overlays").format("dismiss")), i = () => {
+function hk(e) {
+ let { onDismiss: t, ...n } = e, r = jw(n, Uw(Gse(mk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(mE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(pE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28135,35 +28135,35 @@ function gk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var _k = [];
-function vk(e, t) {
+var gk = [];
+function _k(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !_k.includes(t)) return _k.push(t), () => {
- let e = _k.indexOf(t);
- e >= 0 && _k.splice(e, 1);
+ if (i && !gk.includes(t)) return gk.push(t), () => {
+ let e = gk.indexOf(t);
+ e >= 0 && gk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- _k[_k.length - 1] === t && n && n();
+ gk[gk.length - 1] === t && n && n();
}, u = (e) => {
- let n = _k[_k.length - 1];
+ let n = gk[gk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (_k[_k.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = QC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (gk[gk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = ZC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Ose({
+ kse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = rE({
+ let { focusWithinProps: p } = nE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Boe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Voe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28175,87 +28175,87 @@ function vk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Gse = 200, Kse = 50, qse = 600, yk = /* @__PURE__ */ new WeakMap(), bk = /* @__PURE__ */ new Set(), xk = /* @__PURE__ */ new Set();
-function Jse(e, t) {
- let n = kw();
- if (e !== n || t.aborted) for (let e of xk) e(n), xk.delete(e);
- if (!e && n && QS() && !t.aborted) window.clearInterval(yk.get(window)), yk.set(window, Sk(Gse));
+var Kse = 200, qse = 50, Jse = 600, vk = /* @__PURE__ */ new WeakMap(), yk = /* @__PURE__ */ new Set(), bk = /* @__PURE__ */ new Set();
+function Yse(e, t) {
+ let n = Ow();
+ if (e !== n || t.aborted) for (let e of bk) e(n), bk.delete(e);
+ if (!e && n && QS() && !t.aborted) window.clearInterval(vk.get(window)), vk.set(window, xk(Kse));
else {
- if (e !== n || t.aborted) for (let e of bk) e(n), bk.delete(e);
- (xk.size + bk.size <= 0 || t.aborted) && (window.clearInterval(yk.get(window)), yk.delete(window));
+ if (e !== n || t.aborted) for (let e of yk) e(n), yk.delete(e);
+ (bk.size + yk.size <= 0 || t.aborted) && (window.clearInterval(vk.get(window)), vk.delete(window));
}
}
-function Sk(e = qse) {
- return window.setInterval(Jse, Kse, kw(), AbortSignal.timeout(e));
+function xk(e = Jse) {
+ return window.setInterval(Yse, qse, Ow(), AbortSignal.timeout(e));
}
-function Ck(e) {
- if (!Ew()) return e(!1), () => {};
+function Sk(e) {
+ if (!Tw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Dw(document.hasFocus() ? NS() : null);
- if (kw() === t || kw() && !t) return e(t);
- xk.add(e), yk.has(window) || yk.set(window, Sk());
+ let t = Ew(document.hasFocus() ? NS() : null);
+ if (Ow() === t || Ow() && !t) return e(t);
+ bk.add(e), vk.has(window) || vk.set(window, xk());
});
});
return () => {
- window.cancelAnimationFrame(t), xk.delete(e);
+ window.cancelAnimationFrame(t), bk.delete(e);
};
}
-function Yse(e) {
- if (!Ew()) return e(!1), () => {};
+function Xse(e) {
+ if (!Tw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Dw(document.hasFocus() ? NS() : null);
- if (kw() === t) return e(t);
- bk.add(e), yk.has(window) || yk.set(window, Sk());
+ let t = Ew(document.hasFocus() ? NS() : null);
+ if (Ow() === t) return e(t);
+ yk.add(e), vk.has(window) || vk.set(window, xk());
});
});
return () => {
- window.cancelAnimationFrame(t), bk.delete(e);
+ window.cancelAnimationFrame(t), yk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var wk = typeof document < "u" && window.visualViewport, Tk = 0, Ek;
-function Dk(e = {}) {
+var Ck = typeof document < "u" && window.visualViewport, wk = 0, Tk;
+function Ek(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
VS(() => {
- if (!t) return Tk++, Tk === 1 && (Ek = ZS() && QS() ? Zse() : Xse(n)), () => {
- Tk--, Tk === 0 && Ek();
+ if (!t) return wk++, wk === 1 && (Tk = ZS() && QS() ? Qse() : Zse(n)), () => {
+ wk--, wk === 0 && Tk();
};
}, [t, n]);
}
-function Xse(e) {
+function Zse(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return RC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? AS(document.documentElement, "scrollbar-gutter", "stable") : AS(document.documentElement, "padding-right", `${t}px`)), AS(document.documentElement, "overflow", "hidden"), e && kk(), e && Ew() && Ok());
+ return LC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? AS(document.documentElement, "scrollbar-gutter", "stable") : AS(document.documentElement, "padding-right", `${t}px`)), AS(document.documentElement, "overflow", "hidden"), e && Ok(), e && Tw() && Dk());
}
-function Zse() {
+function Qse() {
let e = AS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = FT(r, !0) ? r : IT(r, !0), n = !1;
+ t = PT(r, !0) ? r : FT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = $w();
+ }, i = document.createElement("style"), a = Qw();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = kk(), c = RC(kS(document, "touchstart", r, {
+ }, s = Ok(), c = LC(kS(document, "touchstart", r, {
passive: !1,
capture: !0
}), kS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Ok());
+ }), Dk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Ok() {
+function Dk() {
return kS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && Dw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Ew(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function kk() {
+function Ok() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28266,9 +28266,9 @@ function kk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- NS() === this && Qse(this);
+ NS() === this && $se(this);
};
- Ck((t) => t ? e() : Yse(() => e()));
+ Sk((t) => t ? e() : Xse(() => e()));
}
}
}), () => {
@@ -28279,15 +28279,15 @@ function kk() {
});
};
}
-function Qse(e) {
+function $se(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = IT(n);
+ let e = FT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- wk && (n = Math.min(n, wk.offsetTop + wk.height));
+ Ck && (n = Math.min(n, Ck.offsetTop + Ck.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -28299,19 +28299,19 @@ function Qse(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function $se(e, t, n) {
- let { overlayProps: r, underlayProps: i } = vk({
+function ece(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = _k({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Dk({
+ Ek({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), jD();
+ }), AD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? xE(n.current) : bE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? bE(n.current) : yE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28322,32 +28322,32 @@ function $se(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ak = {
+var kk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, jk = {
+}, Ak = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, ece = {
+}, tce = {
top: "left",
left: "top"
-}, Mk = {
+}, jk = {
top: "height",
left: "width"
-}, Nk = {
+}, Mk = {
width: "totalWidth",
height: "totalHeight"
-}, Pk = {}, tce = () => typeof document < "u" ? window.visualViewport : null;
-function Fk(e, t) {
+}, Nk = {}, nce = () => typeof document < "u" ? window.visualViewport : null;
+function Pk(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = Vk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = Bk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return QS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -28358,7 +28358,7 @@ function Fk(e, t) {
left: s
};
}
-function nce(e) {
+function rce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28366,11 +28366,11 @@ function nce(e) {
height: e.scrollHeight
};
}
-function Ik(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Mk[e]], l = o[e] + r.scroll[Ak[e]] + a, u = o[e] + r.scroll[Ak[e]] + c - a, d = t - s + r.scroll[Ak[e]] + o[e] - r[Ak[e]], f = t - s + n + r.scroll[Ak[e]] + o[e] - r[Ak[e]];
+function Fk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[jk[e]], l = o[e] + r.scroll[kk[e]] + a, u = o[e] + r.scroll[kk[e]] + c - a, d = t - s + r.scroll[kk[e]] + o[e] - r[kk[e]], f = t - s + n + r.scroll[kk[e]] + o[e] - r[kk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function rce(e) {
+function ice(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28379,55 +28379,55 @@ function rce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Lk(e) {
- if (Pk[e]) return Pk[e];
- let [t, n] = e.split(" "), r = Ak[t] || "right", i = ece[r];
- Ak[n] || (n = "center");
- let a = Mk[r], o = Mk[i];
- return Pk[e] = {
+function Ik(e) {
+ if (Nk[e]) return Nk[e];
+ let [t, n] = e.split(" "), r = kk[t] || "right", i = tce[r];
+ kk[n] || (n = "center");
+ let a = jk[r], o = jk[i];
+ return Nk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Pk[e];
+ }, Nk[e];
}
-function Rk(e, t, n, r, i, a, o, s, c, l, u) {
+function Lk(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = oE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Nk[h]];
- _[jk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = aE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Mk[h]];
+ _[Ak[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function ice(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Nk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function ace(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Mk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function zk(e, t, n, r, i, a, o, s) {
+function Rk(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[jk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[jk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ak[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ak[l]] - i);
}
-function ace(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Lk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Rk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = zk(s, l, t, i, a + u, v, c, g);
+function oce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Ik(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Lk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Rk(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Lk(`${jk[S]} ${C}`), r = Rk(t, s, n, e, u, d, l, f, m, h, c);
- zk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Ik(`${Ak[S]} ${C}`), r = Lk(t, s, n, e, u, d, l, f, m, h, c);
+ Rk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Ik(b, w[b], n[x], s, c, a, l);
+ let O = Fk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = ice(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Rk(t, s, n, v, T, d, l, f, m, h, c), O = Ik(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Ak[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ak[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = oE(oE(M, t[b] + m / 2 - (w[b] + i[Ak[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ak[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = ace(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Lk(t, s, n, v, T, d, l, f, m, h, c), O = Fk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[kk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = kk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = aE(aE(M, t[b] + m / 2 - (w[b] + i[kk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[kk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28441,17 +28441,17 @@ function ace(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function oce(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = tce(), h = r instanceof HTMLElement ? Uk(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Vk(n, !1, p) : Hk(n, h, !1, p);
+function sce(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = nce(), h = r instanceof HTMLElement ? Hk(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Bk(n, !1, p) : Vk(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = Vk(r, !0), x = rce(r);
+ let b = Bk(r, !0), x = ice(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = nce(i), C = Fk(s, m), w = Fk(h, m), T;
+ let S = rce(i), C = Pk(s, m), w = Pk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Bk(h, !1);
+ let e = zk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28463,11 +28463,11 @@ function oce(e) {
left: 0,
width: 0,
height: 0
- } : Hk(s, h, !1);
+ } : Vk(s, h, !1);
let E = MS(s, h);
- return ace(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return oce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Bk(e, t) {
+function zk(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -28476,8 +28476,8 @@ function Bk(e, t) {
height: a
};
}
-function Vk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Bk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Bk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || zk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28485,29 +28485,29 @@ function Vk(e, t, n) {
height: o
};
}
-function Hk(e, t, n, r) {
+function Vk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Bk(e, n);
+ if (i.position === "fixed") a = r || zk(e, n);
else {
- a = Vk(e, n, r);
- let i = Vk(t, n), o = window.getComputedStyle(t);
+ a = Bk(e, n, r);
+ let i = Bk(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Uk(e) {
+function Hk(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Wk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Wk(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Uk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Uk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Wk(e) {
+function Uk(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Gk = typeof document < "u" ? window.visualViewport : null;
-function sce(e) {
- let { direction: t } = Rw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var Wk = typeof document < "u" ? window.visualViewport : null;
+function cce(e) {
+ let { direction: t } = Lw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28524,12 +28524,12 @@ function sce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Gk?.scale);
+ ], S = (0, F.useRef)(Wk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Gk?.scale);
+ m && (S.current = Wk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Gk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Wk?.scale !== S.current) return;
let e = null;
if (o.current && FS(o.current)) {
let t = NS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -28540,8 +28540,8 @@ function sce(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = oce({
- placement: lce(s, t),
+ let y = sce({
+ placement: uce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28551,7 +28551,7 @@ function sce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Bk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? zk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -28564,10 +28564,10 @@ function sce(e) {
}
b(y);
}, x);
- VS(C, x), cce(C), PO({
+ VS(C, x), lce(C), NO({
ref: i,
onResize: C
- }), PO({
+ }), NO({
ref: r,
onResize: C
});
@@ -28580,16 +28580,16 @@ function sce(e) {
}, n = () => {
w.current && t();
};
- Gk?.addEventListener("resize", t), Gk?.addEventListener("scroll", n);
+ Wk?.addEventListener("resize", t), Wk?.addEventListener("scroll", n);
let r = kS(PS(window), "scroll", n);
return () => {
- Gk?.removeEventListener("resize", t), Gk?.removeEventListener("scroll", n), r();
+ Wk?.removeEventListener("resize", t), Wk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return vse({
+ return yse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28615,24 +28615,24 @@ function sce(e) {
updatePosition: C
};
}
-function cce(e) {
+function lce(e) {
VS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function lce(e, t) {
+function uce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function uce(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = vk({
+function dce(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = _k({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = sce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = cce({
...c,
targetRef: n,
overlayRef: r,
@@ -28640,15 +28640,15 @@ function uce(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Dk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? xE(i?.current ?? r.current) : bE([i?.current ?? r.current], { shouldUseInert: !0 });
+ Ek({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? bE(i?.current ?? r.current) : yE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = rE(e);
+ let { focusWithinProps: g } = nE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28658,12 +28658,12 @@ function uce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Kk = /* @__PURE__ */ new WeakMap();
+var Gk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function dce(e, t, n) {
+function fce(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = oT({
+ }, { pressProps: g, isPressed: _ } = aT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28671,7 +28671,7 @@ function dce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = oT({
+ }), { pressProps: v, isPressed: y } = aT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28681,11 +28681,11 @@ function dce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = nw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Kw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = tw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Gw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Kk.get(t);
- HT(n, t.defaultSelectedValue, t.setSelectedValue), UT({ validationBehavior: O }, t, n);
- let k = WT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Gk.get(t);
+ VT(n, t.defaultSelectedValue, t.setSelectedValue), HT({ validationBehavior: O }, t, n);
+ let k = UT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28716,13 +28716,13 @@ function dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function fce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Rw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = nE({
+function pce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Lw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = tE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Kw(e, { labelable: !0 }), { focusWithinProps: v } = rE({
+ }), _ = Gw(e, { labelable: !0 }), { focusWithinProps: v } = nE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28730,13 +28730,13 @@ function fce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = OT(n.currentTarget, {
+ let r = DT(n.currentTarget, {
from: G(n),
accept: (e) => e instanceof ES(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = QC({
+ let { keyboardProps: b } = ZC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28744,8 +28744,8 @@ function fce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = HC(n);
- return Kk.set(t, {
+ }), x = VC(n);
+ return Gk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28773,21 +28773,21 @@ function fce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var qk = /* @__PURE__ */ new WeakMap();
-function Jk(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = TD({
+var Kk = /* @__PURE__ */ new WeakMap();
+function qk(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = wD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new DE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new EE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = dD({
+ ]), { menuTriggerProps: d, menuProps: f } = uD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = QC({
+ }, t, n), { keyboardProps: p } = ZC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28803,21 +28803,21 @@ function Jk(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = pD({
+ }), { typeSelectProps: m } = fD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = nE({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = tE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Kw(e, { labelable: !0 }), C = K(m, d, y), w = HC();
- return qk.set(t, {
+ let S = Gw(e, { labelable: !0 }), C = K(m, d, y), w = VC();
+ return Kk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28827,13 +28827,13 @@ function Jk(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), DC("keyboard"));
+ e.isDisabled || (n.current?.focus(), EC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: RC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: LC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28877,13 +28877,13 @@ function Jk(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function pce(e, t, n) {
- let r = qk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = pE({ style: {
+function mce(e, t, n) {
+ let r = Kk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = fE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- HT(e.selectRef, t.defaultValue, t.setValue), UT({
+ VT(e.selectRef, t.defaultValue, t.setValue), HT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28913,8 +28913,8 @@ function pce(e, t, n) {
}
};
}
-function mce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = pce({
+function hce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = mce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28938,7 +28938,7 @@ function mce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = qk.get(t) || {};
+ let { validationBehavior: e } = Kk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -28968,8 +28968,8 @@ function mce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function hce(e) {
- let t = Kw(e, { labelable: !0 }), n;
+function gce(e) {
+ let t = Gw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -28977,8 +28977,8 @@ function hce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function gce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = $T(e, t, n);
+function _ce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = QT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -28991,10 +28991,10 @@ function gce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Yk = class {
+var Jk = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new _ce(e.layout) : new EE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new vce(e.layout) : new TE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29030,7 +29030,7 @@ var Yk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of gD(n, this.collection)) {
+ for (let e of hD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29064,13 +29064,13 @@ var Yk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = gD(t, this.collection);
- return (this.direction === "rtl" ? yD(e)?.key : _D(e)?.key) ?? null;
+ let e = hD(t, this.collection);
+ return (this.direction === "rtl" ? vD(e)?.key : gD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = gD(n, this.collection), i = (this.direction === "rtl" ? vD(r, t.index - 1) : vD(r, t.index + 1)) ?? null;
+ let r = hD(n, this.collection), i = (this.direction === "rtl" ? _D(r, t.index - 1) : _D(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29079,13 +29079,13 @@ var Yk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = gD(t, this.collection);
- return (this.direction === "rtl" ? _D(e)?.key : yD(e)?.key) ?? null;
+ let e = hD(t, this.collection);
+ return (this.direction === "rtl" ? gD(e)?.key : vD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = gD(n, this.collection), i = (this.direction === "rtl" ? vD(r, t.index + 1) : vD(r, t.index - 1)) ?? null;
+ let r = hD(n, this.collection), i = (this.direction === "rtl" ? _D(r, t.index + 1) : _D(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29096,13 +29096,13 @@ var Yk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? _D(gD(e, this.collection))?.key ?? null : null;
+ return e ? gD(hD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = _D(gD(e, this.collection))?.key ?? null;
+ n = gD(hD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29112,13 +29112,13 @@ var Yk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? yD(gD(e, this.collection))?.key ?? null : null;
+ return e ? vD(hD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = yD(gD(e, this.collection))?.key ?? null;
+ n = vD(hD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29154,13 +29154,13 @@ var Yk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? _D(gD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? gD(hD(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, _ce = class {
+}, vce = class {
constructor(e) {
this.layout = e;
}
@@ -29173,15 +29173,15 @@ var Yk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Xk = /* @__PURE__ */ new WeakMap();
+}, Yk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function vce(e, t, n) {
+function yce(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = TD({
+ let h = wD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Rw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Yk({
+ }), { direction: g } = Lw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Jk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29198,7 +29198,7 @@ function vce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = hD({
+ ]), { collectionProps: y } = mD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29206,8 +29206,8 @@ function vce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = HC(e.id);
- Xk.set(t, {
+ }), b = VC(e.id);
+ Yk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29216,42 +29216,42 @@ function vce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = wO({
+ let x = CO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Kw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ }), S = Gw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
m.isFocused ? MS(e.currentTarget, G(e)) || m.setFocused(!1) : MS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = CO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = SO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), xO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), bO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Zk = /* @__PURE__ */ new WeakMap();
-function Qk(e) {
+var Xk = /* @__PURE__ */ new WeakMap();
+function Zk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function $k(e, t) {
- let n = Zk.get(e);
+function Qk(e, t) {
+ let n = Xk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Qk(t)}`;
+ return `${n}-${Zk(t)}`;
}
-function eA(e, t, n) {
- let r = Zk.get(e);
+function $k(e, t, n) {
+ let r = Xk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Qk(t)}-${Qk(n)}`;
+ return `${r}-${Zk(t)}-${Zk(n)}`;
}
-function tA(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => eA(e, t, n)).join(" ");
+function eA(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => $k(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var nA = {};
-nA = {
+var tA = {};
+tA = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -29265,8 +29265,8 @@ nA = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var rA = {};
-rA = {
+var nA = {};
+nA = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -29280,8 +29280,8 @@ rA = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var iA = {};
-iA = {
+var rA = {};
+rA = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29295,8 +29295,8 @@ iA = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var aA = {};
-aA = {
+var iA = {};
+iA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29310,8 +29310,8 @@ aA = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var oA = {};
-oA = {
+var aA = {};
+aA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29325,8 +29325,8 @@ oA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var sA = {};
-sA = {
+var oA = {};
+oA = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -29340,8 +29340,8 @@ sA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var cA = {};
-cA = {
+var sA = {};
+sA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29355,8 +29355,8 @@ cA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var lA = {};
-lA = {
+var cA = {};
+cA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29370,8 +29370,8 @@ lA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var uA = {};
-uA = {
+var lA = {};
+lA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29385,8 +29385,8 @@ uA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var dA = {};
-dA = {
+var uA = {};
+uA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29400,8 +29400,8 @@ dA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var fA = {};
-fA = {
+var dA = {};
+dA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29415,8 +29415,8 @@ fA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var pA = {};
-pA = {
+var fA = {};
+fA = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -29430,8 +29430,8 @@ pA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var mA = {};
-mA = {
+var pA = {};
+pA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29445,8 +29445,8 @@ mA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var hA = {};
-hA = {
+var mA = {};
+mA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29460,8 +29460,8 @@ hA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var gA = {};
-gA = {
+var hA = {};
+hA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29475,8 +29475,8 @@ gA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var _A = {};
-_A = {
+var gA = {};
+gA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29490,8 +29490,8 @@ _A = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var vA = {};
-vA = {
+var _A = {};
+_A = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -29505,8 +29505,8 @@ vA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var yA = {};
-yA = {
+var vA = {};
+vA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29520,8 +29520,8 @@ yA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var bA = {};
-bA = {
+var yA = {};
+yA = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -29535,8 +29535,8 @@ bA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var xA = {};
-xA = {
+var bA = {};
+bA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29550,8 +29550,8 @@ xA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var SA = {};
-SA = {
+var xA = {};
+xA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29565,8 +29565,8 @@ SA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var CA = {};
-CA = {
+var SA = {};
+SA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29580,8 +29580,8 @@ CA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var wA = {};
-wA = {
+var CA = {};
+CA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29595,8 +29595,8 @@ wA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var TA = {};
-TA = {
+var wA = {};
+wA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29610,8 +29610,8 @@ TA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var EA = {};
-EA = {
+var TA = {};
+TA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29625,8 +29625,8 @@ EA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var DA = {};
-DA = {
+var EA = {};
+EA = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -29640,8 +29640,8 @@ DA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var OA = {};
-OA = {
+var DA = {};
+DA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29655,8 +29655,8 @@ OA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var kA = {};
-kA = {
+var OA = {};
+OA = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -29670,8 +29670,8 @@ kA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var AA = {};
-AA = {
+var kA = {};
+kA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29685,8 +29685,8 @@ AA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var jA = {};
-jA = {
+var AA = {};
+AA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29700,8 +29700,8 @@ jA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var MA = {};
-MA = {
+var jA = {};
+jA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29715,8 +29715,8 @@ MA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var NA = {};
-NA = {
+var MA = {};
+MA = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -29730,8 +29730,8 @@ NA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var PA = {};
-PA = {
+var NA = {};
+NA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29745,8 +29745,8 @@ PA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var FA = {};
-FA = {
+var PA = {};
+PA = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -29760,45 +29760,45 @@ FA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var IA = {};
-IA = {
- "ar-AE": nA,
- "bg-BG": rA,
- "cs-CZ": iA,
- "da-DK": aA,
- "de-DE": oA,
- "el-GR": sA,
- "en-US": cA,
- "es-ES": lA,
- "et-EE": uA,
- "fi-FI": dA,
- "fr-FR": fA,
- "he-IL": pA,
- "hr-HR": mA,
- "hu-HU": hA,
- "it-IT": gA,
- "ja-JP": _A,
- "ko-KR": vA,
- "lt-LT": yA,
- "lv-LV": bA,
- "nb-NO": xA,
- "nl-NL": SA,
- "pl-PL": CA,
- "pt-BR": wA,
- "pt-PT": TA,
- "ro-RO": EA,
- "ru-RU": DA,
- "sk-SK": OA,
- "sl-SI": kA,
- "sr-SP": AA,
- "sv-SE": jA,
- "tr-TR": MA,
- "uk-UA": NA,
- "zh-CN": PA,
- "zh-TW": FA
+var FA = {};
+FA = {
+ "ar-AE": tA,
+ "bg-BG": nA,
+ "cs-CZ": rA,
+ "da-DK": iA,
+ "de-DE": aA,
+ "el-GR": oA,
+ "en-US": sA,
+ "es-ES": cA,
+ "et-EE": lA,
+ "fi-FI": uA,
+ "fr-FR": dA,
+ "he-IL": fA,
+ "hr-HR": pA,
+ "hu-HU": mA,
+ "it-IT": hA,
+ "ja-JP": gA,
+ "ko-KR": _A,
+ "lt-LT": vA,
+ "lv-LV": yA,
+ "nb-NO": bA,
+ "nl-NL": xA,
+ "pl-PL": SA,
+ "pt-BR": CA,
+ "pt-PT": wA,
+ "ro-RO": TA,
+ "ru-RU": EA,
+ "sk-SK": DA,
+ "sl-SI": OA,
+ "sr-SP": kA,
+ "sv-SE": AA,
+ "tr-TR": jA,
+ "uk-UA": MA,
+ "zh-CN": NA,
+ "zh-TW": PA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var yce = class extends Yk {
+var bce = class extends Jk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29806,7 +29806,7 @@ var yce = class extends Yk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = _D(gD(n, this.collection));
+ let e = gD(hD(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29827,13 +29827,13 @@ var yce = class extends Yk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of gD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of hD(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...gD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...hD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29862,7 +29862,7 @@ var yce = class extends Yk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of gD(o, this.collection)) {
+ for (let r of hD(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29875,14 +29875,14 @@ var yce = class extends Yk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function bce(e) {
+function xce(e) {
return e && e.__esModule ? e.default : e;
}
-function xce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = TD({
+function Sce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = wD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Rw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new yce({
+ }), { direction: c } = Lw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new bce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29901,31 +29901,31 @@ function xce(e, t, n) {
s,
a,
o
- ]), d = HC(e.id);
- Zk.set(t, d);
- let { gridProps: f } = vce({
+ ]), d = VC(e.id);
+ Xk.set(t, d);
+ let { gridProps: f } = yce({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Ww(bce(IA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Uw(xce(FA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = VT(g);
- return PT(() => {
- g && NT(g, "assertive", 500);
+ ]), _ = BT(g);
+ return NT(() => {
+ g && MT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function LA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Rw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Xk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function IA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Lw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Yk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = OT(n.current);
+ let e = DT(n.current);
if (p === "child") {
let i = NS(TS(n.current));
if (FS(n.current) && n.current !== i) return;
@@ -29933,19 +29933,19 @@ function LA(e, t, n) {
if (!i || i === a.body || i === n.current) {
let e = h.current;
if (e && m.current === r.key && MS(n.current, e)) {
- LC(e);
+ IC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? RA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? LA(e) : e.firstChild();
if (o) {
- LC(o);
+ IC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !FS(n.current)) && LC(n.current);
+ (m.current != null && r.key !== m.current || !FS(n.current)) && IC(n.current);
}
- }, { itemProps: _, isPressed: v } = EO({
+ }, { itemProps: _, isPressed: v } = TO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -29959,29 +29959,29 @@ function LA(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = NS(TS(n.current));
if (!MS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = OT(n.current);
+ let a = DT(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) LC(t), zT(t, { containingElement: IT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) IC(t), RT(t, { containingElement: FT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (LC(n.current), zT(n.current, { containingElement: IT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : RA(a), t && (LC(t), zT(t, { containingElement: IT(n.current) })));
+ p === "cell" && l === "rtl" ? (IC(n.current), RT(n.current, { containingElement: FT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : LA(a), t && (IC(t), RT(t, { containingElement: FT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) LC(t), zT(t, { containingElement: IT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) IC(t), RT(t, { containingElement: FT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (LC(n.current), zT(n.current, { containingElement: IT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? RA(a) : a.firstChild(), t && (LC(t), zT(t, { containingElement: IT(n.current) })));
+ p === "cell" && l === "ltr" ? (IC(n.current), RT(n.current, { containingElement: FT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? LA(a) : a.firstChild(), t && (IC(t), RT(t, { containingElement: FT(n.current) })));
}
break;
}
@@ -29994,7 +29994,7 @@ function LA(e, t, n) {
if (MS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = OT(n.current, { tabbable: !0 });
+ let t = DT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30005,7 +30005,7 @@ function LA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && MS(n.current, i) && (h.current = i), TC() || t.selectionManager.setFocusedKey(r.key);
+ n.current && MS(n.current, i) && (h.current = i), wC() || t.selectionManager.setFocusedKey(r.key);
} else p === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
p === "child" && NS(TS(n.current)) === n.current && g();
});
@@ -30022,7 +30022,7 @@ function LA(e, t, n) {
isPressed: v
};
}
-function RA(e) {
+function LA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30030,32 +30030,32 @@ function RA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Sce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = LA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = eA(t, e.node.parentKey, a)), {
+function Cce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = IA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = $k(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Cce(e) {
+function wce(e) {
return e && e.__esModule ? e.default : e;
}
-function wce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = LA({
+function Tce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = IA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = oT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = aT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = nw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ }), { focusableProps: l } = tw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !eC() && (u = d ? f : "none");
- let p = Ww(Cce(IA), "@react-aria/table"), m;
+ let p = Uw(wce(FA), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && eC() && (m = `${m}, ${p.format(f)}`));
- let h = VT(m), g = t.collection.size === 0;
+ let h = BT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30066,7 +30066,7 @@ function wce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: $k(t, r.key),
+ id: Qk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30074,17 +30074,17 @@ function wce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Tce(e) {
+function Ece(e) {
return e && e.__esModule ? e.default : e;
}
-function Ece(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Ww(Tce(IA), "@react-aria/table"), d = HC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Rw(), b = (0, F.useCallback)((e) => {
+function Dce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Uw(Ece(FA), "@react-aria/table"), d = VC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Lw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && LC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && IC(i.current)), m.current = null;
}, [
t,
i,
@@ -30092,14 +30092,14 @@ function Ece(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = QC({ shortcuts: {
+ }, { keyboardProps: w } = ZC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = dE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = uE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30115,12 +30115,12 @@ function Ece(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = OC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = DC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = VT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = BT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${$k(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Qk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30128,8 +30128,8 @@ function Ece(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && LC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Aw(b);
+ n.current && IC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = kw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
h.current = NS() === n.current, ne(r);
@@ -30148,7 +30148,7 @@ function Ece(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = oT({
+ }, { pressProps: I } = aT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30156,7 +30156,7 @@ function Ece(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = pE();
+ }), { visuallyHiddenProps: ie } = fE();
return {
resizerProps: K(w, {
...E,
@@ -30175,19 +30175,19 @@ function Ece(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Dce(e, t, n) {
+function Oce(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Oce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Xk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = EO({
+function kce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Yk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = TO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? RC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? LC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30201,10 +30201,10 @@ function Oce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function kce(e) {
+function Ace(e) {
return e && e.__esModule ? e.default : e;
}
-var zA = {
+var RA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30214,21 +30214,21 @@ var zA = {
rtl: "ArrowRight"
}
};
-function Ace(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Oce(e, t, n), { direction: s } = Rw();
+function jce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = kce(e, t, n), { direction: s } = Lw();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Ww(kce(IA), "@react-aria/table"), u = Mw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Uw(Ace(FA), "@react-aria/table"), u = jw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": tA(t, r.key)
+ "aria-labelledby": eA(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = BA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = BA(t.collection, a);
+ let n = zA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = zA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === zA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === zA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === RA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === RA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30250,38 +30250,38 @@ function Ace(e, t, n) {
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": tA(t, r.key)
+ "aria-labelledby": eA(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function BA(e, t) {
+function zA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function jce() {
+function Mce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function VA() {
- return jce();
+function BA() {
+ return Mce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Mce(e) {
+function Nce(e) {
return e && e.__esModule ? e.default : e;
}
-function Nce(e, t) {
- let { key: n } = e, { checkboxProps: r } = MO(e, t);
+function Pce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = jO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${tA(t, n)}`
+ "aria-labelledby": `${r.id} ${eA(t, n)}`
} };
}
-function Pce(e) {
+function Fce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Ww(Mce(IA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Uw(Nce(FA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -30289,22 +30289,22 @@ function Pce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var HA = /* @__PURE__ */ new WeakMap();
-function UA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${HA.get(e)}-${n}-${t}`) : "";
+var VA = /* @__PURE__ */ new WeakMap();
+function HA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${VA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Fce(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = EO({
+function Ice(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = TO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = UA(t, r, "tab"), m = UA(t, r, "tabpanel"), { tabIndex: h } = d, g = Kw(u?.props, { labelable: !0 });
+ }), p = HA(t, r, "tab"), m = HA(t, r, "tabpanel"), { tabIndex: h } = d, g = Gw(u?.props, { labelable: !0 });
delete g.id;
- let _ = aC(u?.props), { focusableProps: v } = nw({
+ let _ = aC(u?.props), { focusableProps: v } = tw({
...u?.props,
isDisabled: l
}, n);
@@ -30323,7 +30323,7 @@ function Fce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Ice = class {
+var Lce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30366,11 +30366,11 @@ var Ice = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Lce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Rw(), { collectionProps: l } = hD({
+function Rce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Lw(), { collectionProps: l } = mD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Ice(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Lce(a, c, r, s), [
a,
s,
r,
@@ -30380,9 +30380,9 @@ function Lce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = HC();
- return HA.set(t, u), { tabListProps: {
- ...K(l, Mw({
+ }), u = VC();
+ return VA.set(t, u), { tabListProps: {
+ ...K(l, jw({
...e,
id: u
})),
@@ -30392,12 +30392,12 @@ function Lce(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Rce(e, t, n) {
- let r = CO(n) ? void 0 : 0, i = UA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Mw({
+function zce(e, t, n) {
+ let r = SO(n) ? void 0 : 0, i = HA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(jw({
...e,
id: i,
- "aria-labelledby": UA(t, t?.selectedKey, "tab")
+ "aria-labelledby": HA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30406,265 +30406,265 @@ function Rce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function zce(e, t, n) {
- let { gridProps: r } = Mse(e, t, n);
+function Bce(e, t, n) {
+ let { gridProps: r } = Nse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var WA = {};
-WA = {
+var UA = {};
+UA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var GA = {};
-GA = {
+var WA = {};
+WA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var KA = {};
-KA = {
+var GA = {};
+GA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var qA = {};
-qA = {
+var KA = {};
+KA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var JA = {};
-JA = {
+var qA = {};
+qA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var YA = {};
-YA = {
+var JA = {};
+JA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var XA = {};
-XA = {
+var YA = {};
+YA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var ZA = {};
-ZA = {
+var XA = {};
+XA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var QA = {};
-QA = {
+var ZA = {};
+ZA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var $A = {};
-$A = {
+var QA = {};
+QA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var ej = {};
-ej = {
+var $A = {};
+$A = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var tj = {};
-tj = {
+var ej = {};
+ej = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var nj = {};
-nj = {
+var tj = {};
+tj = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var rj = {};
-rj = {
+var nj = {};
+nj = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var ij = {};
-ij = {
+var rj = {};
+rj = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var aj = {};
-aj = {
+var ij = {};
+ij = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var oj = {};
-oj = {
+var aj = {};
+aj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var sj = {};
-sj = {
+var oj = {};
+oj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var cj = {};
-cj = {
+var sj = {};
+sj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var lj = {};
-lj = {
+var cj = {};
+cj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var uj = {};
-uj = {
+var lj = {};
+lj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var dj = {};
-dj = {
+var uj = {};
+uj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var fj = {};
-fj = {
+var dj = {};
+dj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var pj = {};
-pj = {
+var fj = {};
+fj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var mj = {};
-mj = {
+var pj = {};
+pj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var hj = {};
-hj = {
+var mj = {};
+mj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var gj = {};
-gj = {
+var hj = {};
+hj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var _j = {};
-_j = {
+var gj = {};
+gj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var vj = {};
-vj = {
+var _j = {};
+_j = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var yj = {};
-yj = {
+var vj = {};
+vj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var bj = {};
-bj = {
+var yj = {};
+yj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var xj = {};
-xj = {
+var bj = {};
+bj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var Sj = {};
-Sj = {
+var xj = {};
+xj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var Cj = {};
-Cj = {
+var Sj = {};
+Sj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var wj = {};
-wj = {
- "ar-AE": WA,
- "bg-BG": GA,
- "cs-CZ": KA,
- "da-DK": qA,
- "de-DE": JA,
- "el-GR": YA,
- "en-US": XA,
- "es-ES": ZA,
- "et-EE": QA,
- "fi-FI": $A,
- "fr-FR": ej,
- "he-IL": tj,
- "hr-HR": nj,
- "hu-HU": rj,
- "it-IT": ij,
- "ja-JP": aj,
- "ko-KR": oj,
- "lt-LT": sj,
- "lv-LV": cj,
- "nb-NO": lj,
- "nl-NL": uj,
- "pl-PL": dj,
- "pt-BR": fj,
- "pt-PT": pj,
- "ro-RO": mj,
- "ru-RU": hj,
- "sk-SK": gj,
- "sl-SI": _j,
- "sr-SP": vj,
- "sv-SE": yj,
- "tr-TR": bj,
- "uk-UA": xj,
- "zh-CN": Sj,
- "zh-TW": Cj
+var Cj = {};
+Cj = {
+ "ar-AE": UA,
+ "bg-BG": WA,
+ "cs-CZ": GA,
+ "da-DK": KA,
+ "de-DE": qA,
+ "el-GR": JA,
+ "en-US": YA,
+ "es-ES": XA,
+ "et-EE": ZA,
+ "fi-FI": QA,
+ "fr-FR": $A,
+ "he-IL": ej,
+ "hr-HR": tj,
+ "hu-HU": nj,
+ "it-IT": rj,
+ "ja-JP": ij,
+ "ko-KR": aj,
+ "lt-LT": oj,
+ "lv-LV": sj,
+ "nb-NO": cj,
+ "nl-NL": lj,
+ "pl-PL": uj,
+ "pt-BR": dj,
+ "pt-PT": fj,
+ "ro-RO": pj,
+ "ru-RU": mj,
+ "sk-SK": hj,
+ "sl-SI": gj,
+ "sr-SP": _j,
+ "sv-SE": vj,
+ "tr-TR": yj,
+ "uk-UA": bj,
+ "zh-CN": xj,
+ "zh-TW": Sj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function Bce(e) {
+function Vce(e) {
return e && e.__esModule ? e.default : e;
}
-function Tj(e, t, n) {
- let { node: r } = e, i = Nse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Ww(Bce(wj), "@react-aria/tree"), s = {
+function wj(e, t, n) {
+ let { node: r } = e, i = Pse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Uw(Vce(Cj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...Mw({
+ ...jw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30675,15 +30675,15 @@ function Tj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Ej = "(prefers-reduced-motion: reduce)", Vce = () => matchMedia(Ej).matches, Hce = (e) => {
- let t = matchMedia(Ej);
+var Tj = "(prefers-reduced-motion: reduce)", Hce = () => matchMedia(Tj).matches, Uce = (e) => {
+ let t = matchMedia(Tj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Dj = /* @__PURE__ */ new Map(), Oj = () => {
+}, Ej = /* @__PURE__ */ new Map(), Dj = () => {
let e = document.documentElement;
- Dj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Dj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Ej.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Ej.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function Uce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = kx(), a = (0, F.useSyncExternalStore)(Hce, Vce, () => !1), { isFocusVisible: o } = kC(), s = a || o, c = {
+function Wce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = kx(), a = (0, F.useSyncExternalStore)(Uce, Hce, () => !1), { isFocusVisible: o } = OC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30691,10 +30691,10 @@ function Uce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Dj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Oj();
+ Ej.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Dj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Dj.delete(e), Oj();
+ n.disconnect(), window.removeEventListener("resize", t), Ej.delete(e), Dj();
};
}, [i]), /* @__PURE__ */ (0, I.jsxs)(mS.div, {
ref: r,
@@ -30729,17 +30729,17 @@ function Uce({ children: e, count: t, label: n }) {
}), e]
});
}
-function kj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Mx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Uce, { ...t }, "selection") : null });
+function Oj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Mx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Wce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var Aj = {
+var kj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Wce(e, t = !1) {
+function Gce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30755,7 +30755,7 @@ function Wce(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ kj
];
case "junk": return [
t ? {
@@ -30776,7 +30776,7 @@ function Wce(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ kj
];
case "follow": return [
{
@@ -30797,7 +30797,7 @@ function Wce(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Aj
+ kj
];
default: return [
{
@@ -30831,38 +30831,38 @@ function Wce(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ kj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var jj = null, Mj = {
+var Aj = null, jj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Nj = /* @__PURE__ */ new Set();
-function Gce(e) {
- return Nj.add(e), () => {
- Nj.delete(e);
+}, Mj = /* @__PURE__ */ new Set();
+function Kce(e) {
+ return Mj.add(e), () => {
+ Mj.delete(e);
};
}
-function Kce() {
- for (let e of [...Nj]) e();
+function qce() {
+ for (let e of [...Mj]) e();
}
-var qce = { render(e) {
- Mj = e, (0, Lt.flushSync)(Kce);
+var Jce = { render(e) {
+ jj = e, (0, Lt.flushSync)(qce);
} };
-function Jce(e) {
- return jj = e, qce;
+function Yce(e) {
+ return Aj = e, Jce;
}
-function Yce() {
- let e = (0, F.useSyncExternalStore)(Gce, () => Mj);
- return jj ? /* @__PURE__ */ (0, I.jsx)(Xce, {
- host: jj,
+function Xce() {
+ let e = (0, F.useSyncExternalStore)(Kce, () => jj);
+ return Aj ? /* @__PURE__ */ (0, I.jsx)(Zce, {
+ host: Aj,
props: e
}) : null;
}
-function Xce({ host: e, props: t }) {
+function Zce({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30872,11 +30872,11 @@ function Xce({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(kj, {
+ children: /* @__PURE__ */ (0, I.jsx)(Oj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: Wce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: Gce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30892,11 +30892,11 @@ function Xce({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Pj(e, t, n, r) {
+function Nj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function Zce(e, t) {
+function Qce(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30915,7 +30915,7 @@ function Zce(e, t) {
};
}
// src/sort-preferences.ts
-var Fj = [
+var Pj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30924,7 +30924,7 @@ var Fj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Ij = ["release", "发行时间"], Lj = [...Fj, Ij].map(([e]) => e), Rj = {
+], Fj = ["release", "发行时间"], Ij = [...Pj, Fj].map(([e]) => e), Lj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30933,43 +30933,43 @@ var Fj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, zj = {
+}, Rj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Bj = (e, t, n = Rj) => (n[e] || [])[+(t === "asc")] || "", Vj = (e, t = Rj) => t[e] ? "desc" : "";
-function Hj(e, t, n, r = Rj) {
+}, zj = (e, t, n = Lj) => (n[e] || [])[+(t === "asc")] || "", Bj = (e, t = Lj) => t[e] ? "desc" : "";
+function Vj(e, t, n, r = Lj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Vj(e, r)
+ dir: Bj(e, r)
};
}
-function Uj(e, t, n) {
+function Hj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Wj(e, t, n, r, i = n) {
- let a = e ? zj[e] : void 0, o = a ? a[0] : e, s = o && Lj.includes(o) ? o : i;
- return Rj[s] ? {
+function Uj(e, t, n, r, i = n) {
+ let a = e ? Rj[e] : void 0, o = a ? a[0] : e, s = o && Ij.includes(o) ? o : i;
+ return Lj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Uj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Hj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Gj = [
+var Wj = [
"spot1",
"spot2",
"spot3"
-], Qce = [
+], $ce = [
"光晕一",
"光晕二",
"光晕三"
-], Kj = "native", qj = [
+], Gj = "native", Kj = [
[
"ash",
"灰雾",
@@ -31275,7 +31275,7 @@ var Gj = [
"rose"
],
[
- Kj,
+ Gj,
"玻璃原色",
{
spot1: {
@@ -31293,7 +31293,7 @@ var Gj = [
},
"blue"
]
-], Jj = (e) => e === Kj, Yj = [...qj.map(([e, t]) => [e, t]), ["custom", "自定义"]], $ce = (e) => (Yj.find(([t]) => t === e) || Yj[0])[1], Xj = (e) => structuredClone((qj.find(([t]) => t === e) || qj[0])[2]), Zj = [
+], qj = (e) => e === Gj, Jj = [...Kj.map(([e, t]) => [e, t]), ["custom", "自定义"]], ele = (e) => (Jj.find(([t]) => t === e) || Jj[0])[1], Yj = (e) => structuredClone((Kj.find(([t]) => t === e) || Kj[0])[2]), Xj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31306,7 +31306,7 @@ var Gj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Qj = "blue", $j = (e) => Zj.some(([t]) => t === e) ? e : Qj, ele = (e) => (qj.find(([t]) => t === e) || [])[3] || "blue", tle = [
+], Zj = "blue", Qj = (e) => Xj.some(([t]) => t === e) ? e : Zj, tle = (e) => (Kj.find(([t]) => t === e) || [])[3] || "blue", nle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31316,7 +31316,7 @@ var Gj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], nle = [
+], rle = [
[
"gray",
"云灰",
@@ -31712,11 +31712,11 @@ var Gj = [
"霁蓝",
"#6686b8"
]
-], eM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, tM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, rle = (e, t) => `rgba(${[
+], $j = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, eM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ile = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ile = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ale = {
strength: [
0,
100,
@@ -31742,7 +31742,7 @@ var Gj = [
100,
50
]
-}, nM = {
+}, tM = {
on: !0,
preset: "ash",
strength: 100,
@@ -31750,56 +31750,56 @@ var Gj = [
speed: 100,
soften: 50,
size: 50,
- ...Xj("ash")
+ ...Yj("ash")
};
-function rM(e) {
- let t = e && typeof e == "object" ? e : {}, n = Yj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Xj(r === "custom" ? "ash" : r), a = {
+function nM(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Jj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Yj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(ile)) a[e] = eM(+t[e], n, r, i);
- for (let e of Gj) {
+ for (let [e, [n, r, i]] of Object.entries(ale)) a[e] = $j(+t[e], n, r, i);
+ for (let e of Wj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: tM(r.color, o.color),
- alpha: eM(+r.alpha, 0, 100, o.alpha)
+ color: eM(r.color, o.color),
+ alpha: $j(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var ale = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, iM = /* @__PURE__ */ new WeakMap();
-function ole(e, t) {
+var ole = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, rM = /* @__PURE__ */ new WeakMap();
+function sle(e, t) {
if (!e) return;
- let n = iM.get(e);
- n || (n = /* @__PURE__ */ new Map(), iM.set(e, n));
- let r = t.on && !Jj(t.preset), i = (t, r) => {
+ let n = rM.get(e);
+ n || (n = /* @__PURE__ */ new Map(), rM.set(e, n));
+ let r = t.on && !qj(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Gj.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Wj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, rle(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, ile(r.color, r.alpha));
});
}
-function sle(e, t) {
+function cle(e, t) {
if (!e) return;
- let n = !t.on || Jj(t.preset);
+ let n = !t.on || qj(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var cle = "peach.settings.v1", lle = [
+var lle = "peach.settings.v1", ule = [
"system",
"light",
"dark"
-], aM = [
+], iM = [
0,
7,
30,
90
-], ule = [
+], dle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], oM = {
+], aM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31820,56 +31820,56 @@ var cle = "peach.settings.v1", lle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Ll],
- homeGlow: nM,
- accent: Qj,
+ homeGlow: tM,
+ accent: Zj,
performerNameLanguage: "zh-CN"
-}, sM = (e, t, n) => t.includes(e) ? e : n;
-function dle(e) {
+}, oM = (e, t, n) => t.includes(e) ? e : n;
+function fle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...oM,
+ ...aM,
...t
};
- n.followInitialDays = aM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = iM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = zj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Pj(+n.batchSize, 1, 200, 60), n.defaultSort = sM(n.defaultSort, Lj, "seed"), n.hoverDelaySeconds = Pj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Pj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Pj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Pj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Pj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = sM(n.theme, lle, "system"), n.performerNameLanguage = sM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = rM(n.homeGlow), n.accent = $j(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
+ let a = Rj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Nj(+n.batchSize, 1, 200, 60), n.defaultSort = oM(n.defaultSort, Ij, "seed"), n.hoverDelaySeconds = Nj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Nj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Nj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Nj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Nj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = oM(n.theme, ule, "system"), n.performerNameLanguage = oM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = nM(n.homeGlow), n.accent = Qj(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function fle(e) {
+function ple(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return dle(t);
+ return fle(t);
}
-var cM = null;
-function lM() {
- if (cM) return cM;
- let { settings: e, migrated: t } = fle(localStorage);
- return cM = Zce(cle, e), t && cM.save(), cM;
+var sM = null;
+function cM() {
+ if (sM) return sM;
+ let { settings: e, migrated: t } = ple(localStorage);
+ return sM = Qce(lle, e), t && sM.save(), sM;
}
-function uM(e, t, n = lM()) {
+function lM(e, t, n = cM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- aM.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of ule) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ iM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of dle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Pj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== oM.searchHistoryLimit && ple(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Nj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== aM.searchHistoryLimit && mle(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function ple(e = lM()) {
+function mle(e = cM()) {
return wn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var mle = [
+var hle = [
[
"system",
"跟随系统",
@@ -31885,31 +31885,31 @@ var mle = [
"深色",
"moon"
]
-], hle = null, dM = () => hle ??= matchMedia("(prefers-color-scheme: dark)"), fM = null;
-function gle() {
- return fM || (fM = document.createElement("style"), fM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), fM.isConnected || document.head.append(fM), () => {
+], gle = null, uM = () => gle ??= matchMedia("(prefers-color-scheme: dark)"), dM = null;
+function _le() {
+ return dM || (dM = document.createElement("style"), dM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), dM.isConnected || document.head.append(dM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), fM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), dM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function pM(e = lM().value.theme) {
- let t = gle(), n = document.documentElement;
+function fM(e = cM().value.theme) {
+ let t = _le(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && dM().matches;
+ let r = e === "dark" || e === "system" && uM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var mM = !1;
-function _le() {
- mM || (mM = !0, dM().addEventListener("change", () => {
- lM().value.theme === "system" && pM();
+var pM = !1;
+function vle() {
+ pM || (pM = !0, uM().addEventListener("change", () => {
+ cM().value.theme === "system" && fM();
}));
}
// src/appearance/layout.ts
-var hM = [[
+var mM = [[
"big",
"大图",
"maximize"
@@ -31917,7 +31917,7 @@ var hM = [[
"small",
"小图",
"layout-grid"
-]], gM = [[
+]], hM = [[
"big",
"大图",
"maximize"
@@ -31925,7 +31925,7 @@ var hM = [[
"small",
"小图",
"layout-grid"
-]], _M = [[
+]], gM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31933,127 +31933,127 @@ var hM = [[
"masonry",
"瀑布流",
"columns-2"
-]], vM = .75, yM = () => lM().value, bM = (e = yM()) => Za(e.javLayout), vle = (e = yM()) => Za(e.homeLayout), xM = (e, t = yM()) => e ? vle(t) : bM(t), SM = gM.map(([e]) => e), CM = _M.map(([e]) => e), wM = (e = yM()) => sM(e.photoSize, SM, "small"), TM = (e = yM()) => sM(e.photoLayout, CM, "masonry"), EM = null;
-function DM(e, t = yM()) {
+]], _M = .75, vM = () => cM().value, yM = (e = vM()) => Za(e.javLayout), yle = (e = vM()) => Za(e.homeLayout), bM = (e, t = vM()) => e ? yle(t) : yM(t), xM = hM.map(([e]) => e), SM = gM.map(([e]) => e), CM = (e = vM()) => oM(e.photoSize, xM, "small"), wM = (e = vM()) => oM(e.photoLayout, SM, "masonry"), TM = null;
+function EM(e, t = vM()) {
let n = {
active: e.active,
- size: xM(e.home, t),
+ size: bM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = EM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (EM = n), EM;
+ }, r = TM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (TM = n), TM;
}
-function OM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? vM : 16 / 9;
+function DM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? _M : 16 / 9;
}
-function yle(e, t = lM()) {
+function ble(e, t = cM()) {
t.value.homeLayout = Za(e), t.save();
}
-function kM(e, t = lM()) {
+function OM(e, t = cM()) {
t.value.javLayout = Za(e), t.save();
}
-function ble(e, t = lM()) {
+function xle(e, t = cM()) {
t.value.homeLayout = t.value.javLayout = Za(e), t.save();
}
-function xle(e, t = lM()) {
- t.value.photoSize = sM(e, SM, "small"), t.save();
+function Sle(e, t = cM()) {
+ t.value.photoSize = oM(e, xM, "small"), t.save();
}
-function AM(e, t = lM()) {
- t.value.photoLayout = sM(e, CM, "masonry"), t.save();
+function kM(e, t = cM()) {
+ t.value.photoLayout = oM(e, SM, "masonry"), t.save();
}
// src/appearance/density.ts
-var jM = "density", MM = {
+var AM = "density", jM = {
big: "336px",
dense: "168px"
-}, NM = () => localStorage.getItem(jM) === "dense" ? "dense" : "big";
-function PM(e, t) {
- let [n, r] = gM;
+}, MM = () => localStorage.getItem(AM) === "dense" ? "dense" : "big";
+function NM(e, t) {
+ let [n, r] = hM;
if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- FM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ PM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function FM(e, t, n) {
+function PM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var IM = () => document.querySelector("#density");
-function LM(e = NM()) {
+var FM = () => document.querySelector("#density");
+function IM(e = MM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== MM[e] && t.style.setProperty("--tile", MM[e]), FM(document.body, "data-density", e);
- let n = IM();
- n && (FM(n, "aria-pressed", String(e === "dense")), FM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), PM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== jM[e] && t.style.setProperty("--tile", jM[e]), PM(document.body, "data-density", e);
+ let n = FM();
+ n && (PM(n, "aria-pressed", String(e === "dense")), PM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), NM(n, e === "big" ? "big" : "small"));
}
-function Sle() {
- let e = NM() === "big" ? "dense" : "big";
- localStorage.setItem(jM, e), LM(e);
+function Cle() {
+ let e = MM() === "big" ? "dense" : "big";
+ localStorage.setItem(AM, e), IM(e);
}
-function Cle(e) {
- let t = IM();
- t && (FM(t, "aria-pressed", String(e === "small")), FM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), PM(t, e));
+function wle(e) {
+ let t = FM();
+ t && (PM(t, "aria-pressed", String(e === "small")), PM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), NM(t, e));
}
// src/appearance/glow.ts
-function RM(e = lM()) {
- ole(document.querySelector(".glowlayer"), e.value.homeGlow);
+function LM(e = cM()) {
+ sle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var zM = 0;
-function BM(e = lM()) {
- zM ||= requestAnimationFrame(() => {
- zM = 0, RM(e);
+var RM = 0;
+function zM(e = cM()) {
+ RM ||= requestAnimationFrame(() => {
+ RM = 0, LM(e);
});
}
-function VM(e = lM()) {
- sle(document.documentElement, e.value.homeGlow);
+function BM(e = cM()) {
+ cle(document.documentElement, e.value.homeGlow);
}
-function HM(e = lM()) {
+function VM(e = cM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var UM = (e, t, n) => ({
+var HM = (e, t, n) => ({
key: e,
label: t,
- native: Jj(e),
- fill: Jj(e) ? "" : ale(n)
+ native: qj(e),
+ fill: qj(e) ? "" : ole(n)
});
-function wle(e) {
- let t = qj.map(([e, t, n]) => UM(e, t, Gj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(UM("custom", "自定义", Gj.map((t) => e[t].color))), t;
+function Tle(e) {
+ let t = Kj.map(([e, t, n]) => HM(e, t, Wj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(HM("custom", "自定义", Wj.map((t) => e[t].color))), t;
}
-var Tle = Zj;
-function Ele(e, t = lM()) {
+var Ele = Xj;
+function Dle(e, t = cM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Xj(e)), t.value.accent = ele(e), t.save(), BM(t), VM(t), HM(t);
+ n.preset = e, Object.assign(n, Yj(e)), t.value.accent = tle(e), t.save(), zM(t), BM(t), VM(t);
}
-function Dle(e, t = lM()) {
- t.value.accent = $j(e), t.save(), HM(t);
+function Ole(e, t = cM()) {
+ t.value.accent = Qj(e), t.save(), VM(t);
}
-function Ole(e = lM()) {
+function kle(e = cM()) {
let t = e.value.homeGlow;
- t.preset = nM.preset, Object.assign(t, Xj(t.preset)), e.value.accent = Qj, e.save(), BM(e), VM(e), HM(e);
+ t.preset = tM.preset, Object.assign(t, Yj(t.preset)), e.value.accent = Zj, e.save(), zM(e), BM(e), VM(e);
}
-function WM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Jj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function UM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && qj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function kle(e, t = lM()) {
- return WM(e, t.value.homeGlow), t.subscribe(() => WM(e, t.value.homeGlow));
+function Ale(e, t = cM()) {
+ return UM(e, t.value.homeGlow), t.subscribe(() => UM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function GM({ store: e, label: t, hidden: n }) {
+function WM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: wle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Tle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Ele(t.key, e),
+ onClick: () => Dle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32064,14 +32064,14 @@ function GM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var KM = null;
-function Ale(e) {
- KM = e;
+var GM = null;
+function jle(e) {
+ GM = e;
}
-function jle() {
- return KM ? /* @__PURE__ */ (0, I.jsx)(Mle, { host: KM }) : null;
+function Mle() {
+ return GM ? /* @__PURE__ */ (0, I.jsx)(Nle, { host: GM }) : null;
}
-function Mle({ host: e }) {
+function Nle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32083,11 +32083,11 @@ function Mle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Ole(t),
+ onClick: () => kle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(GM, {
+ /* @__PURE__ */ (0, I.jsx)(WM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32101,14 +32101,14 @@ function Mle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Tle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ele.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Dle(e, t),
+ onClick: () => Ole(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32126,31 +32126,31 @@ function Mle({ host: e }) {
] });
}
// src/player/host.ts
-var qM = null;
-function Nle(e) {
- qM = e;
+var KM = null;
+function Ple(e) {
+ KM = e;
}
-function JM() {
- if (!qM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return qM;
+function qM() {
+ if (!KM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return KM;
}
// src/player/menu.ts
-var YM = null;
-function Ple(e) {
- YM = e;
+var JM = null;
+function Fle(e) {
+ JM = e;
}
-function Fle() {
+function Ile() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var XM = null, ZM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function QM() {
+var YM = null, XM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function ZM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {
e.innerHTML = "";
- }), XM &&= (XM(), null);
+ }), YM &&= (YM(), null);
}
-async function Ile(e) {
+async function Lle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32163,8 +32163,8 @@ async function Ile(e) {
return t.remove(), n;
}
}
-function Lle(e) {
- let t = !!YM?.inMiniplayer(e), n = e.peachItem, r = YM?.kind(e) ?? "item", i = (t) => {
+function Rle(e) {
+ let t = !!JM?.inMiniplayer(e), n = e.peachItem, r = JM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32180,7 +32180,7 @@ function Lle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Ile(i(e)).then((e) => JM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Lle(i(e)).then((e) => qM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32192,11 +32192,11 @@ function Lle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => YM?.expand()
+ run: () => JM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => YM?.toMiniplayer()
+ run: () => JM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32219,29 +32219,29 @@ function Lle(e) {
run: () => s.click()
}), o;
}
-function Rle(e, t, n) {
- let r = Fle();
- QM();
- let i = JM().stage();
+function zle(e, t, n) {
+ let r = Ile();
+ ZM();
+ let i = qM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Lle(e);
+ let a = Rle(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${ZM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? ZM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${XM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? XM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- QM(), n?.run();
+ ZM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || QM();
+ r.contains(e.target) || ZM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), QM();
+ e.preventDefault(), e.stopPropagation(), ZM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32249,49 +32249,49 @@ function Rle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- us(t, e.el()) && QM();
+ us(t, e.el()) && ZM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), XM = () => {
+ }, 0), YM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function zle(e) {
+function Ble(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Rle(e, t.clientX, t.clientY));
- }), e.on("dispose", QM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), zle(e, t.clientX, t.clientY));
+ }), e.on("dispose", ZM);
}
// src/player/registry.ts
-var $M = null, eN = () => $M;
-function tN(e) {
- $M = e;
+var QM = null, $M = () => QM;
+function eN(e) {
+ QM = e;
}
-function nN(e) {
+function tN(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function rN(e) {
+function nN(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Ble(e) {
+function Vle(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var iN = 3e3;
-function aN(e, t) {
+var rN = 3e3;
+function iN(e, t) {
let n = Number(e) || 0, r = Kn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Vle(e) {
+function Hle(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32306,10 +32306,10 @@ function Vle(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Ble(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Vle(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > iN * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > rN * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32318,55 +32318,55 @@ function Vle(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > iN;) t.shift();
+ }); t.length > 2 && a - t[0].at > rN;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var oN = 24;
-function sN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > oN && e.splice(0, e.length - oN);
+var aN = 24;
+function oN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > aN && e.splice(0, e.length - aN);
}
-var cN = "peach-player-panel";
-function lN(e, t, n, r) {
- let i = [...Array(Math.max(0, oN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var sN = "peach-player-panel";
+function cN(e, t, n, r) {
+ let i = [...Array(Math.max(0, aN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function uN() {
+function lN() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function dN(e, t = "") {
+function uN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function fN(e, t = "") {
- let n = dN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function dN(e, t = "") {
+ let n = uN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function pN(e, t, n = "", r = null) {
+function fN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : fN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : dN(t, n);
}
-function mN(e) {
+function pN(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Hle(e, t) {
- return e > 0 ? mN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : mN(0);
+function Ule(e, t) {
+ return e > 0 ? pN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : pN(0);
}
// src/player/subtitle-style.ts
-var hN = {
+var mN = {
font: {
label: "字体",
values: [
@@ -32469,7 +32469,7 @@ var hN = {
["shadow", "阴影"]
]
}
-}, gN = {
+}, hN = {
font: "sans",
size: "100",
color: "white",
@@ -32479,7 +32479,7 @@ var hN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, _N = "peach.caption-style.v1", Ule = {
+}, gN = "peach.caption-style.v1", Wle = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32488,7 +32488,7 @@ var hN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Wle = {
+}, Gle = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32496,28 +32496,28 @@ var hN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, Gle = {
+}, Kle = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function Kle() {
+function qle() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(_N) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(gN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(gN).map(([t, n]) => [t, hN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(hN).map(([t, n]) => [t, mN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function vN(e, t, n, r) {
- let i = Kle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function _N(e, t, n, r) {
+ let i = qle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${Ule[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Wle[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Gle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${Wle[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", Gle[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Kle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32533,15 +32533,15 @@ function vN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...gN,
+ ...hN,
...e.caption_style
};
- for (let e of Object.keys(gN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(hN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(_N);
+ e = !!localStorage.getItem(gN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32549,18 +32549,18 @@ function vN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- hN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ mN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(gN).forEach((e) => a.add(e)), i = { ...gN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(hN).forEach((e) => a.add(e)), i = { ...hN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = class {
+var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32588,7 +32588,7 @@ var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await yN.get(this.url)?.catch(() => {});
+ await vN.get(this.url)?.catch(() => {});
let e = await wn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32600,7 +32600,7 @@ var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (yN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (vN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32627,8 +32627,8 @@ var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = cl
this.changed();
}
});
- return yN.set(this.url, t), t.finally(() => {
- yN.get(this.url) === t && yN.delete(this.url);
+ return vN.set(this.url, t), t.finally(() => {
+ vN.get(this.url) === t && vN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32637,12 +32637,12 @@ var yN = /* @__PURE__ */ new Map(), bN = /* @__PURE__ */ new WeakMap(), qle = cl
} catch {}
}
};
-function xN(e) {
- let t = bN.get(e);
- return t || (t = new qle(e), bN.set(e, t)), t;
+function bN(e) {
+ let t = yN.get(e);
+ return t || (t = new Jle(e), yN.set(e, t)), t;
}
-function SN(e, t) {
- let n = xN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function xN(e, t) {
+ let n = bN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32655,7 +32655,7 @@ function SN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var CN = class {
+var SN = class {
player;
video;
changed;
@@ -32666,7 +32666,7 @@ var CN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = xN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = bN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32763,7 +32763,7 @@ var CN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, wN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", Jle = class {
+}, CN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", Yle = class {
player;
video;
panels;
@@ -32782,7 +32782,7 @@ var CN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = vN(e.el(), t, this.cleanup.signal, xN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = wN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = _N(e.el(), t, this.cleanup.signal, bN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = CN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32792,7 +32792,7 @@ var CN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new CN(e, t, () => {
+ }), this.session = new SN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32840,7 +32840,7 @@ var CN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(hN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(mN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32852,7 +32852,7 @@ var CN = class {
}
styleOptions(e) {
this.page = "style";
- let t = hN[e];
+ let t = mN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -32968,7 +32968,7 @@ var CN = class {
}
};
// src/player/timeline.ts
-function Yle(e, t) {
+function Xle(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -32980,8 +32980,8 @@ function Yle(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function TN(e, t) {
- let n = 0, r = !1, i = xN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function wN(e, t) {
+ let n = 0, r = !1, i = bN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33009,7 +33009,7 @@ function TN(e, t) {
};
}
// src/player/pip.ts
-function Xle(e, t, n, r) {
+function Zle(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33041,7 +33041,7 @@ function Xle(e, t, n, r) {
});
}
// src/player/controls.ts
-function EN(e, t, n = "") {
+function TN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33052,27 +33052,27 @@ function EN(e, t, n = "") {
};
return o(), o;
}
-function DN(e, t) {
+function EN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function Zle(e, t = !0) {
- let n = JM(), r = n.settings();
+function Qle(e, t = !0) {
+ let n = qM(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var ON = /* @__PURE__ */ new WeakMap();
-function kN(e) {
+var DN = /* @__PURE__ */ new WeakMap();
+function ON(e) {
if (!e) return;
- let t = JM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), ON.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = qM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), DN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function AN(e, t = !0) {
- let n = JM(), r = n.settings();
+function kN(e, t = !0) {
+ let n = qM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), kN(i?.querySelector("[data-player-theater]")), nN(eN());
+ i?.toggleAttribute("data-theater", r.theaterMode), ON(i?.querySelector("[data-player-theater]")), tN($M());
}
-function Qle(e) {
- let t = JM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function $le(e) {
+ let t = qM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33095,9 +33095,9 @@ function Qle(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (JM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (qM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && JM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && qM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33106,7 +33106,7 @@ function Qle(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function jN(e, t, n = 0, r = null) {
+function AN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33116,8 +33116,8 @@ function jN(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- EN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = TN(e, t), d = SN(e, t), f = xN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ TN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = wN(e, t), d = xN(e, t), f = bN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33156,11 +33156,11 @@ function jN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(cN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(sN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(cN, C);
+ document.addEventListener(sN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33176,15 +33176,15 @@ function jN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${JM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${qM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${wN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${CN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- Zle(!JM().settings().ambientMode), k();
+ Qle(!qM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33288,8 +33288,8 @@ function jN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(cN, C), w && clearTimeout(w);
- }), p = new Jle(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(sN, C), w && clearTimeout(w);
+ }), p = new Yle(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33298,21 +33298,21 @@ function jN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), $le(e, a), eue(e), (e) => {
+ }), y(), eue(e, a), tue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function $le(e, t) {
+function eue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = JM().settings().theaterMode, i = document.createElement("div");
+ let r = qM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- ON.set(a, EN(a, "影院模式", "T")), kN(a), a.onclick = (e) => {
- e.stopPropagation(), AN(!JM().settings().theaterMode);
+ DN.set(a, TN(a, "影院模式", "T")), ON(a), a.onclick = (e) => {
+ e.stopPropagation(), kN(!qM().settings().theaterMode);
};
}
-function eue(e) {
+function tue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33324,7 +33324,7 @@ function eue(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = EN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = TN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33335,7 +33335,7 @@ function eue(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = EN(p, "静音", "M"), g = () => {
+ let h = TN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33361,7 +33361,7 @@ function eue(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = EN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = TN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);
};
@@ -33373,10 +33373,10 @@ function eue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- EN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Xle(e, E, EN(E, "画中画"), (e) => JM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = EN(D, "全屏", "F"), A = () => {
+ TN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Zle(e, E, TN(E, "画中画"), (e) => qM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = TN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), nN(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), tN(e);
};
e.on([
"fullscreenchange",
@@ -33397,7 +33397,7 @@ function eue(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = EN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = TN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33409,7 +33409,7 @@ function eue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function MN(e, t, n = {}) {
+function jN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -33420,7 +33420,7 @@ function MN(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = Yle(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = Xle(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -33445,13 +33445,13 @@ function MN(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function tue(e, t) {
+function nue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(JM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(qM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33492,11 +33492,11 @@ function tue(e, t) {
} catch {}
});
}
-function NN(e) {
+function MN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function PN(e, t) {
+function NN(e, t) {
wn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33512,35 +33512,35 @@ function PN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var FN = "peach.playback-position.v1", IN = /* @__PURE__ */ new WeakMap();
-function LN(e) {
- IN.get(e)?.(), IN.delete(e);
+var PN = "peach.playback-position.v1", FN = /* @__PURE__ */ new WeakMap();
+function IN(e) {
+ FN.get(e)?.(), FN.delete(e);
}
-function RN(e, t, n = null) {
+function LN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function nue(e) {
+function rue(e) {
try {
- let t = localStorage.getItem(`${FN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${PN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function rue(e, t) {
- let n = nue(e);
+function iue(e, t) {
+ let n = rue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Kn(t.duration) : 0;
}
-function iue(e, t) {
- LN(t);
+function aue(e, t) {
+ IN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${FN}:${e}`, String(r));
+ localStorage.setItem(`${PN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33554,7 +33554,7 @@ function iue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), IN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), FN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33566,19 +33566,19 @@ function iue(e, t) {
});
}
// src/player/telemetry.ts
-var zN = /* @__PURE__ */ new WeakMap();
-function BN(e) {
- zN.get(e)?.(), zN.delete(e);
+var RN = /* @__PURE__ */ new WeakMap();
+function zN(e) {
+ RN.get(e)?.(), RN.delete(e);
}
-function VN(e, t, n, r) {
+function BN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), zN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), RN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function HN(e, t, n = {}) {
+function VN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = Kn(e.duration) || Kn(t.duration);
@@ -33619,11 +33619,11 @@ function HN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, VN(t, l, u, () => {
+ }, BN(t, l, u, () => {
a++;
}), c();
}
-function aue(e, t) {
+function oue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Kn(e.duration) || Kn(t.duration);
(r || n) && (wn("/api/follow/activity", {
@@ -33654,22 +33654,22 @@ function aue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, VN(t, o, s, () => {});
+ }, BN(t, o, s, () => {});
}
// src/player/dispose.ts
-function UN(e) {
+function HN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (LN(t), BN(t));
+ t && (IN(t), zN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function WN() {
+function UN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33677,23 +33677,23 @@ function WN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function GN() {
- return WN();
+function WN() {
+ return UN();
}
-function KN(e, t) {
+function GN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function oue(e) {
+function sue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function qN(e, t) {
- let n = oue(e);
+async function KN(e, t) {
+ let n = sue(e);
if (n) return n;
try {
let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33702,9 +33702,9 @@ async function qN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return KN(e, t);
+ return GN(e, t);
}
-function JN(e) {
+function qN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33713,22 +33713,22 @@ function JN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var YN = "";
+var JN = "";
+function YN() {
+ return JN;
+}
function XN() {
- return YN;
+ return JN ||= WN(), JN;
}
+var cue = (e) => GN(e, XN()), lue = (e) => KN(e, XN());
function ZN() {
- return YN ||= GN(), YN;
-}
-var sue = (e) => KN(e, ZN()), cue = (e) => qN(e, ZN());
-function QN() {
- let e = YN;
- e && (YN = "", JN(e));
+ let e = JN;
+ e && (JN = "", qN(e));
}
// src/player/v10-player.ts
-var $N = (e) => typeof e == "string" ? [e] : e, lue = (e, t) => {
+var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${WN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${UN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33823,9 +33823,9 @@ var $N = (e) => typeof e == "string" ? [e] : e, lue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => $N(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => $N(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => $N(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => QN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33880,7 +33880,7 @@ var $N = (e) => typeof e == "string" ? [e] : e, lue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, uue = "/vendor/videojs/10.2.0/", due = [
+}, due = "/vendor/videojs/10.2.0/", fue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33898,17 +33898,17 @@ var $N = (e) => typeof e == "string" ? [e] : e, lue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], eP = null;
-function tP() {
- return eP ??= Promise.all(due.map((e) => import(
+], $N = null;
+function eP() {
+ return $N ??= Promise.all(fue.map((e) => import(
/* @vite-ignore */
- `${uue}${e}`
-))).then(() => lue).catch((e) => {
- throw eP = null, e;
- }), eP;
+ `${due}${e}`
+))).then(() => uue).catch((e) => {
+ throw $N = null, e;
+ }), $N;
}
// src/player/immerse-player.ts
-var fue = {
+var pue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33920,45 +33920,45 @@ var fue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function pue(e, t) {
+function mue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([qN(n, r), tP().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([KN(n, r), eP().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = KN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = GN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, fue);
- i = t, t.peachItem = n, t.peachPlaybackKey = RN("item", n);
+ let t = s(e, pue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = LN("item", n);
let r = new AbortController();
- vN(t.el(), e, r.signal, xN(t)), TN(t, e), SN(t, e), t.on("dispose", () => r.abort()), new CN(t, e), PN(t, n.id), l && t.one("error", () => {
+ _N(t.el(), e, r.signal, bN(t)), wN(t, e), xN(t, e), t.on("dispose", () => r.abort()), new SN(t, e), NN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- HN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ VN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, JN(r), i ? UN(i) : (e.pause(), BN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, qN(r), i ? HN(i) : (e.pause(), zN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var nP = !1, rP = () => nP;
-function mue() {
- return nP = !0, () => {
- nP = !1;
+var tP = !1, nP = () => tP;
+function hue() {
+ return tP = !0, () => {
+ tP = !1;
};
}
// src/player/detail-player.ts
-var iP = /* @__PURE__ */ new WeakMap(), aP = null, oP = null, sP = null;
-function cP() {
- aP &&= (clearInterval(aP), null), oP &&= (clearInterval(oP), null), sP &&= (clearTimeout(sP), null);
+var rP = /* @__PURE__ */ new WeakMap(), iP = null, aP = null, oP = null;
+function sP() {
+ iP &&= (clearInterval(iP), null), aP &&= (clearInterval(aP), null), oP &&= (clearTimeout(oP), null);
}
-async function hue(e, t, n, r = {}) {
- let i = eN();
+async function gue(e, t, n, r = {}) {
+ let i = $M();
if (i && !i.isDisposed()) return i;
- let a = JM(), o = r.resume ?? null;
+ let a = qM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : cue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : lue(e), c;
try {
- c = await tP();
+ c = await eP();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -33984,7 +33984,7 @@ async function hue(e, t, n, r = {}) {
} }
}
});
- tN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || RN("item", e), zle(l), l.on("loadedmetadata", () => {
+ eN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || LN("item", e), Ble(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -33992,7 +33992,7 @@ async function hue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Vle(aN(f, e.duration)), m = 0, h = !1, g = () => eN() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Hle(iN(f, e.duration)), m = 0, h = !1, g = () => $M() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34003,15 +34003,15 @@ async function hue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- iP.set(l, y), y.updateStats = () => {
+ rP.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = XN(), h = s ? dN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = YN(), h = s ? uN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = pN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = fN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = rN(t);
- sN(d.speed, x), sN(d.activity, C), sN(d.buffer, w);
+ let w = nN(t);
+ oN(d.speed, x), oN(d.activity, C), oN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Yn(_) : "—"} · ${h.length} 请求`,
@@ -34029,17 +34029,17 @@ async function hue(e, t, n, r = {}) {
[
"连接速度",
D,
- lN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ cN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- lN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ cN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- lN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ cN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34055,15 +34055,15 @@ async function hue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = pN(l, e.id, XN(), r ? null : p), a = r ? mN(i) : Hle(i, rN(t));
+ let i = fN(l, e.id, YN(), r ? null : p), a = r ? pN(i) : Ule(i, nN(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), oP && clearInterval(oP), oP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), aP && clearInterval(aP), aP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (sP && clearTimeout(sP), sP = setTimeout(() => {
- e.hidden = !0, oP &&= (clearInterval(oP), null);
+ e && (oP && clearTimeout(oP), oP = setTimeout(() => {
+ e.hidden = !0, aP &&= (clearInterval(aP), null);
}, 1400));
};
return l.on([
@@ -34074,7 +34074,7 @@ async function hue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(sue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(cue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34082,13 +34082,13 @@ async function hue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = jN(l, t, e.height, r.qualities ?? null);
+ let n = AN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = aN(r, e.duration));
- }).catch(() => {}), MN(l, e, { thumbnail: !r.source }), r.guidePreview || tue(l, e), NN(l), r.source || PN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = iN(r, e.duration));
+ }).catch(() => {}), jN(l, e, { thumbnail: !r.source }), r.guidePreview || nue(l, e), MN(l), r.source || NN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34097,16 +34097,16 @@ async function hue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var gue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function lP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", gue), e.querySelector("#playerStatsBtn")) return;
+var _ue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function cP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", _ue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = uN();
+ n.innerHTML = lN();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function uP(e, t) {
- let n = iP.get(e);
+function lP(e, t) {
+ let n = rP.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34118,30 +34118,30 @@ function uP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), aP &&= (clearInterval(aP), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), iP &&= (clearInterval(iP), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(cN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), aP && clearInterval(aP), aP = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(sN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), iP && clearInterval(iP), iP = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(cN, t), s = () => document.removeEventListener(cN, t);
+ document.addEventListener(sN, t), s = () => document.removeEventListener(sN, t);
}
- let c = e.el().querySelector("video"), l = c ? Qle(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, cP()));
+ let c = e.el().querySelector("video"), l = c ? $le(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, sP()));
};
return e.one("dispose", d), d;
}
-function dP(e, t) {
- if (t.kind === "immerse") return pue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = rP(), c = JM(), l = t.chrome === !1 ? null : e.parentElement;
- l && lP(l, e);
- let u = RN(n, r, i?.index ?? null), d = {
+function uP(e, t) {
+ if (t.kind === "immerse") return mue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = nP(), c = qM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && cP(l, e);
+ let u = LN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: rue(u, r),
+ time: iue(u, r),
autoplay: !1
}
};
@@ -34161,36 +34161,36 @@ function dP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (LN(h), f ? (eN() === f && (tN(null), cP()), UN(f)) : BN(h));
+ m(), !(f && a?.(f)) && (IN(h), f ? ($M() === f && (eN(null), sP()), HN(f)) : zN(h));
};
- return hue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (iue(u, h), n === "follow" ? aue(r, h) : (h.addEventListener("play", () => {
+ return gue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (aue(u, h), n === "follow" ? oue(r, h) : (h.addEventListener("play", () => {
wn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), HN(r, h, {
+ }, { once: !0 }), VN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = uP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = lP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function fP(e) {
+function dP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function pP(e, t) {
+function fP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function _ue(e, t, n) {
+function vue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return tP().then((a) => {
+ return eP().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34215,30 +34215,30 @@ function _ue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (jN(o, e), MN(o, null, { thumbnail: !1 }), NN(o));
+ r || o.isDisposed() || (AN(o, e), jN(o, null, { thumbnail: !1 }), MN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, UN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, HN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function mP(e, t) {
+function pP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var vue = (e, t) => [
+var yue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], yue = (e, t) => [
+], bue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function bue(e, t, n, r, i) {
+async function xue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34248,22 +34248,22 @@ async function bue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var xue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Sue = (e, t) => {
+var Sue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Cue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function Cue(e) {
- let t = mP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function wue(e) {
+ let t = pP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: vue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => bue(t, e, n, r, i),
+ queryKey: yue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => xue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: xue(n)
+ getNextPageParam: Sue(n)
};
}
-function wue(e) {
+function Tue(e) {
return {
- queryKey: yue(e.entityKey || "", e.revision || 0),
+ queryKey: bue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34278,14 +34278,14 @@ function wue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Sue
+ getNextPageParam: Cue
};
}
-function hP(e) {
+function mP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function gP(e, t, n) {
+function hP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34300,24 +34300,24 @@ function gP(e, t, n) {
return !0;
}) : [...e];
}
-var _P = (e, t) => !!e && !!eo(e, t);
-function Tue(e, t) {
- let n = (e) => _P(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => _P(e, t)) || e[e.length - 1];
+var gP = (e, t) => !!e && !!eo(e, t);
+function Eue(e, t) {
+ let n = (e) => gP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => gP(e, t)) || e[e.length - 1];
}
-function Eue(e, { collapse: t, mix: n, javImage: r }) {
+function Due(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = gP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = hP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Tue(e, r);
+ let t = Eue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34330,16 +34330,16 @@ function Eue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Due(e, t, n) {
+function Oue(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Oue(e, t) {
+function kue(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function kue(e, t) {
+function Aue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34352,10 +34352,10 @@ function kue(e, t) {
strip: null
}), r;
}
-function vP(e, t) {
- yP((t) => t.id === e, t);
+function _P(e, t) {
+ vP((t) => t.id === e, t);
}
-function yP(e, t) {
+function vP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34385,34 +34385,34 @@ function yP(e, t) {
} : n)
});
}
-var bP = (e) => Math.min(Math.max(e || 0, 0), 100), xP = (e) => Math.round(bP(e) / 20), Aue = (e) => {
- let t = xP(e);
+var yP = (e) => Math.min(Math.max(e || 0, 0), 100), bP = (e) => Math.round(yP(e) / 20), jue = (e) => {
+ let t = bP(e);
return t ? `${t} 星` : "未评分";
-}, SP = (e, t) => t === xP(e) ? 0 : t * 20, CP = (e) => ["item", e], wP = (e) => [
+}, xP = (e, t) => t === bP(e) ? 0 : t * 20, SP = (e) => ["item", e], CP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], jue = (e, t) => [
+], Mue = (e, t) => [
"item-related",
e,
t
-], Mue = (e) => `/api/item?id=${e}`, Nue = (e, t) => `/api/related?id=${e}&limit=${t}`, TP = "/api/playlist", EP = "/api/feedback", DP = "/api/item-tag", OP = "/api/watch-later", kP = "/api/quality-goal", AP = "/api/preference", jP = class extends Error {};
-async function MP(e, t) {
- let n = await B(Mue(e), t);
- if (n.error) throw new jP(n.error);
+], Nue = (e) => `/api/item?id=${e}`, Pue = (e, t) => `/api/related?id=${e}&limit=${t}`, wP = "/api/playlist", TP = "/api/feedback", EP = "/api/item-tag", DP = "/api/watch-later", OP = "/api/quality-goal", kP = "/api/preference", AP = class extends Error {};
+async function jP(e, t) {
+ let n = await B(Nue(e), t);
+ if (n.error) throw new AP(n.error);
return n;
}
-async function NP(e, t, n) {
+async function MP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([MP(r, n), t.mixRelated(r)]);
- return H.setQueryData(CP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([jP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(SP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${jo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return PP(await B(`${TP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return NP(await B(`${wP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34423,19 +34423,19 @@ async function NP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var PP = (e) => ({
+var NP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), FP = (e) => e.disposal === "vanished";
-function IP(e, t) {
+}), PP = (e) => e.disposal === "vanished";
+function FP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !FP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !PP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Pue(e, t) {
+function Fue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34443,20 +34443,20 @@ function Pue(e, t) {
part_label: n
};
}
-function LP(e, t) {
+function IP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function RP(e, t) {
+async function LP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = wP(n);
+ let o = CP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => NP(n, e.helpers, t),
+ queryFn: () => MP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34468,21 +34468,21 @@ async function RP(e, t) {
return;
}
}
- let o = i ? IP(i, e.id) : e.id;
+ let o = i ? FP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(CP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(SP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: CP(o),
- queryFn: () => MP(o, t),
+ queryKey: SP(o),
+ queryFn: () => jP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof jP) {
+ if (e instanceof AP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34493,7 +34493,7 @@ async function RP(e, t) {
id: Number(s.follow_item_id)
});
}
-function Fue(e) {
+function Iue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Hn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34515,35 +34515,35 @@ function Fue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Iue(e, t) {
+function Lue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Hn(t.tagLabel(e.k)), i = n.get(r);
(!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var zP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), BP = (e, t) => ({
+var RP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), zP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))
-}), VP = (e, t) => zP(e, t.k) ? e : {
+}), BP = (e, t) => RP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, HP = "peach.recentTags";
-function UP() {
+}, VP = "peach.recentTags";
+function HP() {
try {
- let e = JSON.parse(localStorage.getItem(HP) || "[]");
+ let e = JSON.parse(localStorage.getItem(VP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function WP(e) {
+function UP(e) {
try {
- let t = UP().filter((t) => Hn(t) !== Hn(e));
- localStorage.setItem(HP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = HP().filter((t) => Hn(t) !== Hn(e));
+ localStorage.setItem(VP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Lue(e, t, n) {
+function Rue(e, t, n) {
let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {
k: e,
n: 0
@@ -34554,72 +34554,72 @@ function Lue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Rue = {
+var zue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, zue = {
+}, Bue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Bue(e) {
+function Vue(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: zue[e.kind],
+ title: Bue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var GP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Vue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(GP(e.part_label))}</small>` : "";
-function Hue(e, t, n, r) {
+var WP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Hue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(WP(e.part_label))}</small>` : "";
+function Uue(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Uue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Wue(e, t) {
+var Wue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Gue(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Gue(e) {
+function Kue(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function KP(e, t) {
+function GP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var Kue = (e, t, n) => [
+var que = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function que(e) {
+function Jue(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var Jue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Yue(e, t = Math.random) {
+var Yue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Xue(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Xue(e, t) {
- return Yue(((await B(`/api/items?${e}`)).items || []).filter((e) => Jue(e, t)));
+async function Zue(e, t) {
+ return Xue(((await B(`/api/items?${e}`)).items || []).filter((e) => Yue(e, t)));
}
-var qP = (e) => H.ensureQueryData({
- queryKey: CP(e),
- queryFn: ({ signal: t }) => MP(e, t)
+var KP = (e) => H.ensureQueryData({
+ queryKey: SP(e),
+ queryFn: ({ signal: t }) => jP(e, t)
});
-function Zue(e, t) {
+function Que(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Que(e) {
+function $ue(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34628,306 +34628,306 @@ function Que(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function $ue(e, t, n) {
+function ede(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function ede(e, t) {
+function tde(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var tde = 15e3, JP = {
+var nde = 15e3, qP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, YP = null, XP = null, ZP = JP, QP = /* @__PURE__ */ new Set(), $P = 0, eF = 0, tF = 0, nF = "", rF = [], iF = 0, aF = !1, oF = !1, sF = null, cF = /* @__PURE__ */ new Set(), lF = "", uF = null, dF = 0, fF = null, pF = !1;
-function mF() {
- if (!YP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return YP;
+}, JP = null, YP = null, XP = qP, ZP = /* @__PURE__ */ new Set(), QP = 0, $P = 0, eF = 0, tF = "", nF = [], rF = 0, iF = !1, aF = !1, oF = null, sF = /* @__PURE__ */ new Set(), cF = "", lF = null, uF = 0, dF = null, fF = !1;
+function pF() {
+ if (!JP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return JP;
}
-function nde(e) {
- return QP.add(e), () => {
- QP.delete(e);
+function rde(e) {
+ return ZP.add(e), () => {
+ ZP.delete(e);
};
}
-function rde() {
- for (let e of [...QP]) e();
+function ide() {
+ for (let e of [...ZP]) e();
}
-function hF() {
- (0, Lt.flushSync)(rde);
+function mF() {
+ (0, Lt.flushSync)(ide);
}
-function gF() {
- let e = uF ? fN(uF.id) : 0;
- return e ? `${lF} · ${mN(e)}` : lF;
+function hF() {
+ let e = lF ? dN(lF.id) : 0;
+ return e ? `${cF} · ${pN(e)}` : cF;
}
-function _F(e, t = null) {
- clearInterval(dF), dF = 0, e === null ? (ZP = {
- ...ZP,
+function gF(e, t = null) {
+ clearInterval(uF), uF = 0, e === null ? (XP = {
+ ...XP,
loading: null
- }, hF()) : (lF = e, uF = t, ZP = {
- ...ZP,
- loading: gF()
- }, hF(), dF = window.setInterval(() => {
- uF = rF[iF] ?? null, ZP = {
- ...ZP,
- loading: gF()
- }, hF();
+ }, mF()) : (cF = e, lF = t, XP = {
+ ...XP,
+ loading: hF()
+ }, mF(), uF = window.setInterval(() => {
+ lF = nF[rF] ?? null, XP = {
+ ...XP,
+ loading: hF()
+ }, mF();
}, 500));
}
-function ide(e) {
+function ade(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), XP.track.append(t);
- let r = GN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), YP.track.append(t);
+ let r = WN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => JN(r),
+ release: () => qN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return cF.add(a), a;
+ return sF.add(a), a;
}
-function ade(e, t) {
+function ode(e, t) {
return new Promise((n) => {
- e.release = dP(e.video, {
+ e.release = uP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- ZP.open && wF(1);
+ XP.open && CF(1);
}
}), e.gone.then(n);
});
}
-function vF(e) {
- e && !e.disposed && (e.disposed = !0, cF.delete(e), e.leave(), e.release(), e.el.remove(), sF === e && (sF = null));
+function _F(e) {
+ e && !e.disposed && (e.disposed = !0, sF.delete(e), e.leave(), e.release(), e.el.remove(), oF === e && (oF = null));
}
-var yF = [
+var vF = [
"loadeddata",
"canplay",
"error"
];
-function ode(e) {
+function sde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), yF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), vF.forEach((e) => t.removeEventListener(e, i)), n());
};
- yF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, tde);
+ vF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, nde);
e.gone.then(i);
});
}
-function bF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = $ue(e.videoWidth, e.videoHeight, n);
+function yF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = ede(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var xF = () => XP?.track.querySelectorAll("video").forEach(bF);
-function sde(e) {
- delete e.dataset.fit, e.readyState >= 1 ? bF(e) : e.addEventListener("loadedmetadata", () => bF(e), { once: !0 });
-}
+var bF = () => YP?.track.querySelectorAll("video").forEach(yF);
function cde(e) {
- ZP = {
- ...ZP,
+ delete e.dataset.fit, e.readyState >= 1 ? yF(e) : e.addEventListener("loadedmetadata", () => yF(e), { once: !0 });
+}
+function lde(e) {
+ XP = {
+ ...XP,
wide: e
- }, hF(), xF();
+ }, mF(), bF();
}
-var SF = () => {
- let e = nF;
+var xF = () => {
+ let e = tF;
return H.fetchQuery({
- queryKey: Kue(e, eF, tF),
- queryFn: () => Xue(e, mF().sourceOffline),
+ queryKey: que(e, $P, eF),
+ queryFn: () => Zue(e, pF().sourceOffline),
staleTime: Infinity
});
};
-function lde(e, t) {
+function ude(e, t) {
let n = () => Kn(e.duration) || Kn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && XP && (XP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), fF = {
+ t && YP && (YP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), dF = {
video: e,
duration: n
};
}
-async function CF(e = 0) {
- let t = rF[iF];
- if (!t || aF) return;
- let n = $P;
- mF().route(t.id), aF = !0, _F(e ? "切换中" : "加载中", t);
+async function SF(e = 0) {
+ let t = nF[rF];
+ if (!t || iF) return;
+ let n = QP;
+ pF().route(t.id), iF = !0, gF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await qP(t.id).catch((e) => {
- if (!(e instanceof jP)) throw e;
- }), n !== $P) return;
- let i = sF, a = !!(e && i);
- a || vF(i);
- let o = ide(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, sde(o.video), await ade(o, t), await ode(o), o.disposed || (cde(ede(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await KP(t.id).catch((e) => {
+ if (!(e instanceof AP)) throw e;
+ }), n !== QP) return;
+ let i = oF, a = !!(e && i);
+ a || _F(i);
+ let o = ade(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, cde(o.video), await ode(o, t), await sde(o), o.disposed || (lde(tde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), vF(i), o.el.style.transform = ""), o.disposed)) return;
- sF = o, r = null, o.video.play()?.catch(() => {}), ZP = {
- ...ZP,
+ })), await new Promise((e) => setTimeout(e, 210)), _F(i), o.el.style.transform = ""), o.disposed)) return;
+ oF = o, r = null, o.video.play()?.catch(() => {}), XP = {
+ ...XP,
idle: !1,
shown: {
item: t,
- index: iF,
- length: rF.length
+ index: rF,
+ length: nF.length
}
- }, lde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), _F(null);
+ }, ude(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), gF(null);
} catch {
- vF(r), n === $P && _F(null);
+ _F(r), n === QP && gF(null);
} finally {
- n === $P && (aF = !1);
+ n === QP && (iF = !1);
}
}
-async function wF(e) {
- if (aF || !ZP.open) return;
- let t = $P;
- if (iF += e, _F("切换中", rF[iF] ?? null), iF >= rF.length - 3 && !oF) {
- oF = !0;
+async function CF(e) {
+ if (iF || !XP.open) return;
+ let t = QP;
+ if (rF += e, gF("切换中", nF[rF] ?? null), rF >= nF.length - 3 && !aF) {
+ aF = !0;
try {
- tF += 1;
- let e = await SF();
- t === $P && (rF = Zue(rF, e));
+ eF += 1;
+ let e = await xF();
+ t === QP && (nF = Que(nF, e));
} catch {} finally {
- oF = !1;
+ aF = !1;
}
}
- t === $P && (iF >= rF.length && (iF = 0), iF < 0 && (iF = rF.length - 1), await CF(e));
+ t === QP && (rF >= nF.length && (rF = 0), rF < 0 && (rF = nF.length - 1), await SF(e));
}
-async function ude(e) {
- let t = ++$P;
- TF(), eF += 1, tF = 0, nF = que(mF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), ZP = {
- ...ZP,
+async function dde(e) {
+ let t = ++QP;
+ wF(), $P += 1, eF = 0, tF = Jue(pF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), XP = {
+ ...XP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), _F("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), gF("加载内容");
try {
- let n = await SF();
+ let n = await xF();
if (e && !n.some((t) => t.id === e)) {
- let t = await qP(e).catch((e) => {
- if (e instanceof jP) return null;
+ let t = await KP(e).catch((e) => {
+ if (e instanceof AP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== $P) return;
- if (rF = n, !rF.length) {
- EF(), mF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== QP) return;
+ if (nF = n, !nF.length) {
+ TF(), pF().warn("当前筛选下没有可直接播放的内容");
return;
}
- iF = Math.max(0, rF.findIndex((t) => t.id === e)), await CF();
+ rF = Math.max(0, nF.findIndex((t) => t.id === e)), await SF();
} catch {
- if (t !== $P) return;
- _F(null), EF();
+ if (t !== QP) return;
+ gF(null), TF();
}
}
-function TF() {
- clearInterval(dF), dF = 0, MF(), AF = null, fF = null, pF = !1, [...cF].forEach(vF), aF = !1;
+function wF() {
+ clearInterval(uF), uF = 0, jF(), kF = null, dF = null, fF = !1, [...sF].forEach(_F), iF = !1;
}
-function EF() {
- ZP.open && ($P++, TF(), ZP = JP, document.body.removeAttribute("data-immerse-open"), hF(), mF().closed());
+function TF() {
+ XP.open && (QP++, wF(), XP = qP, document.body.removeAttribute("data-immerse-open"), mF(), pF().closed());
}
-var DF = 0, OF = null, kF = 0, AF = null, jF = 0;
-function MF() {
- clearTimeout(DF), DF = 0, OF = null;
+var EF = 0, DF = null, OF = 0, kF = null, AF = 0;
+function jF() {
+ clearTimeout(EF), EF = 0, DF = null;
}
-function dde(e) {
- let t = sF?.video;
+function fde(e) {
+ let t = oF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- OF && OF.side === n && r - OF.at <= 280 ? (MF(), pP(t, mF().seekSeconds() * n)) : (DF && (clearTimeout(DF), DF = 0, fP(t)), OF = {
+ DF && DF.side === n && r - DF.at <= 280 ? (jF(), fP(t, pF().seekSeconds() * n)) : (EF && (clearTimeout(EF), EF = 0, dP(t)), DF = {
side: n,
at: r
- }, DF = window.setTimeout(() => {
- DF = 0, OF = null, ZP.open && fP(sF?.video);
+ }, EF = window.setTimeout(() => {
+ EF = 0, DF = null, XP.open && dP(oF?.video);
}, 280));
}
-function fde() {
- Date.now() < kF || fP(sF?.video);
+function pde() {
+ Date.now() < OF || dP(oF?.video);
}
-var NF = (e) => XP?.bar.toggleAttribute("data-scrubbing", e);
-function PF(e) {
- XP && (XP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var MF = (e) => YP?.bar.toggleAttribute("data-scrubbing", e);
+function NF(e) {
+ YP && (YP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function FF(e) {
+function PF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- AF = null;
+ kF = null;
return;
}
- let n = sF?.video;
- AF = {
+ let n = oF?.video;
+ kF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function IF(e) {
- if (!AF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - AF.x, n = e.touches[0].clientY - AF.y;
- if (!AF.axis) {
+function FF(e) {
+ if (!kF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - kF.x, n = e.touches[0].clientY - kF.y;
+ if (!kF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- AF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", AF.axis === "x" && NF(!0);
+ kF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", kF.axis === "x" && MF(!0);
}
- if (AF.axis !== "x") return;
- let r = sF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), AF.to = Math.min(i, Math.max(0, AF.from + t / window.innerWidth * i)), PF(AF.to / i));
+ if (kF.axis !== "x") return;
+ let r = oF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), kF.to = Math.min(i, Math.max(0, kF.from + t / window.innerWidth * i)), NF(kF.to / i));
}
-function LF(e) {
- if (!AF) return;
- let t = AF;
- if (AF = null, kF = Date.now() + 700, NF(!1), t.axis === "x") {
- let e = sF?.video;
+function IF(e) {
+ if (!kF) return;
+ let t = kF;
+ if (kF = null, OF = Date.now() + 700, MF(!1), t.axis === "x") {
+ let e = oF?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (MF(), wF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), dde(n.clientX));
+ Math.abs(i) > 60 ? (jF(), CF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), fde(n.clientX));
}
-function RF() {
- AF = null, NF(!1);
+function LF() {
+ kF = null, MF(!1);
}
-function zF(e) {
+function RF(e) {
let t = Date.now();
- t - jF < 260 || (jF = t, wF(e.deltaY > 0 ? 1 : -1));
+ t - AF < 260 || (AF = t, CF(e.deltaY > 0 ? 1 : -1));
}
-function BF(e) {
- let t = XP.bar.getBoundingClientRect();
+function zF(e) {
+ let t = YP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function pde(e) {
- fF?.duration() && (pF = !0, NF(!0), e.currentTarget.setPointerCapture(e.pointerId), PF(BF(e)), e.preventDefault());
-}
function mde(e) {
- pF && PF(BF(e));
+ dF?.duration() && (fF = !0, MF(!0), e.currentTarget.setPointerCapture(e.pointerId), NF(zF(e)), e.preventDefault());
}
function hde(e) {
- if (!pF) return;
- pF = !1, NF(!1);
- let t = fF?.duration();
- fF && t && (fF.video.currentTime = t * BF(e));
+ fF && NF(zF(e));
}
-function gde() {
- pF = !1, NF(!1);
+function gde(e) {
+ if (!fF) return;
+ fF = !1, MF(!1);
+ let t = dF?.duration();
+ dF && t && (dF.video.currentTime = t * zF(e));
}
-async function VF(e, t) {
- let n = await V(EP, {
+function _de() {
+ fF = !1, MF(!1);
+}
+async function BF(e, t) {
+ let n = await V(TP, {
id: e,
kind: t
- }), r = H.getQueryData(CP(e));
- if (!r) return vP(e, {
+ }), r = H.getQueryData(SP(e));
+ if (!r) return _P(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34936,7 +34936,7 @@ async function VF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(CP(e), i), vP(e, {
+ return H.setQueryData(SP(e), i), _P(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34944,7 +34944,7 @@ async function VF(e, t) {
o_count: i.o_count
}), n;
}
-var _de = [
+var vde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34961,31 +34961,31 @@ var _de = [
label: "记一次高潮"
}
];
-function HF(e) {
+function VF(e) {
return Pt({
- queryKey: CP(e ?? 0),
- queryFn: ({ signal: t }) => MP(e, t),
+ queryKey: SP(e ?? 0),
+ queryFn: ({ signal: t }) => jP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function vde({ kind: e, glyph: t, label: n, id: r }) {
- let i = HF(r), a = Ft({
+function yde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = VF(r), a = Ft({
mutationFn: async (t) => {
- let n = H.getQueryData(CP(t))?.feedback || null;
+ let n = H.getQueryData(SP(t))?.feedback || null;
return {
- result: await VF(t, e),
+ result: await BF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- mF().toast(KP(e, t), { undo: async () => {
- e === "o" ? await VF(r, "o-undo") : (t.feedback && await VF(r, t.feedback), n && await VF(r, n));
+ pF().toast(GP(e, t), { undo: async () => {
+ e === "o" ? await BF(r, "o-undo") : (t.feedback && await BF(r, t.feedback), n && await BF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- wF(1);
+ CF(1);
}, 260);
},
- onError: (e) => mF().failure("更新反馈", e)
+ onError: (e) => pF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35016,11 +35016,11 @@ function vde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function yde({ shown: e }) {
- let t = e?.item ?? null, n = HF(t?.id ?? null), r = n ? Que(n) : null, i = mF(), a = (e) => {
- e.preventDefault(), n && (EF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function bde({ shown: e }) {
+ let t = e?.item ?? null, n = VF(t?.id ?? null), r = n ? $ue(n) : null, i = pF(), a = (e) => {
+ e.preventDefault(), n && (TF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (EF(), i.openItem(t.id));
+ t && (TF(), i.openItem(t.id));
}, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35049,18 +35049,18 @@ function yde({ shown: e }) {
})]
});
}
-var bde = { __html: zs("媒体加载中") };
-function xde({ view: e }) {
+var xde = { __html: zs("媒体加载中") };
+function Sde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return XP = {
+ return YP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", FF, { passive: !0 }), e.addEventListener("touchmove", IF, { passive: !1 }), e.addEventListener("touchend", LF, { passive: !1 }), e.addEventListener("touchcancel", RF, { passive: !0 }), e.addEventListener("wheel", zF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", FF), e.removeEventListener("touchmove", IF), e.removeEventListener("touchend", LF), e.removeEventListener("touchcancel", RF), e.removeEventListener("wheel", zF), XP = null;
+ }, e.addEventListener("touchstart", PF, { passive: !0 }), e.addEventListener("touchmove", FF, { passive: !1 }), e.addEventListener("touchend", IF, { passive: !1 }), e.addEventListener("touchcancel", LF, { passive: !0 }), e.addEventListener("wheel", RF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", PF), e.removeEventListener("touchmove", FF), e.removeEventListener("touchend", IF), e.removeEventListener("touchcancel", LF), e.removeEventListener("wheel", RF), YP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35077,10 +35077,10 @@ function xde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: fde
+ onClick: pde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: _de.map((e) => /* @__PURE__ */ (0, I.jsx)(vde, {
+ children: vde.map((e) => /* @__PURE__ */ (0, I.jsx)(yde, {
...e,
id: a
}, e.kind))
@@ -35093,7 +35093,7 @@ function xde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: bde
+ dangerouslySetInnerHTML: xde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35101,7 +35101,7 @@ function xde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: EF,
+ onClick: TF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35110,41 +35110,41 @@ function xde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: pde,
- onPointerMove: mde,
- onPointerUp: hde,
- onPointerCancel: gde,
+ onPointerDown: mde,
+ onPointerMove: hde,
+ onPointerUp: gde,
+ onPointerCancel: _de,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(yde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(bde, { shown: e.shown })
]
});
}
-var Sde = {
- open: ude,
- close: EF,
- isOpen: () => ZP.open,
- activeVideo: () => ZP.open ? sF?.video ?? null : null
+var Cde = {
+ open: dde,
+ close: TF,
+ isOpen: () => XP.open,
+ activeVideo: () => XP.open ? oF?.video ?? null : null
};
-function Cde(e) {
- if (!ZP.open) return;
+function wde(e) {
+ if (!XP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && wF(1), e.key === "ArrowUp" && wF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && CF(1), e.key === "ArrowUp" && CF(-1));
}
-function wde(e) {
- let t = !YP;
- return YP = e, t && (document.addEventListener("keydown", Cde), addEventListener("resize", () => {
- ZP.open && xF();
+function Tde(e) {
+ let t = !JP;
+ return JP = e, t && (document.addEventListener("keydown", wde), addEventListener("resize", () => {
+ XP.open && bF();
}), addEventListener("pagehide", () => {
- cF.forEach((e) => JN(e.session));
- })), Sde;
+ sF.forEach((e) => qN(e.session));
+ })), Cde;
}
-function Tde() {
- let e = (0, F.useSyncExternalStore)(nde, () => ZP);
- return YP ? /* @__PURE__ */ (0, I.jsx)(xde, { view: e }) : null;
+function Ede() {
+ let e = (0, F.useSyncExternalStore)(rde, () => XP);
+ return JP ? /* @__PURE__ */ (0, I.jsx)(Sde, { view: e }) : null;
}
// src/manage-header.ts
-var UF = {
+var HF = {
...Jf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35152,47 +35152,47 @@ var UF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Ede = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Dde(e) {
- let t = UF[e.path] ? "cleanup" : e.section;
+}, Dde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Ode(e) {
+ let t = HF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Ode = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function WF(e) {
+var kde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function UF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = UF[e.path] ?? "";
+ let n = HF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Dde(e),
+ pressed: Ode(e),
crumb: n,
- compact: Ede.has(e.path) || e.section === "configuration",
+ compact: Dde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Ode(e.trash),
+ text: kde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var GF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var WF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), KF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${GF(e)}"/></svg>`, qF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function kde(e) {
- let t = WF(e);
+})[e]), GF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${WF(e)}"/></svg>`, KF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function Ade(e) {
+ let t = UF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${GF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${KF(r)}<span>${GF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${KF("chevron-right")}</li><li aria-current="true"><span>${GF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? qF : `<span data-lede-text="">${GF(t.lede.text)}</span>${t.lede.total ? Ade : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${GF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${WF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${GF(r)}<span>${WF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${GF("chevron-right")}</li><li aria-current="true"><span>${WF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? KF : `<span data-lede-text="">${WF(t.lede.text)}</span>${t.lede.total ? jde : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${WF(t.title)}</h2>` + i;
}
-var Ade = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var jde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function JF({ name: e }) {
+function qF({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35201,7 +35201,7 @@ function JF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function jde({ name: e }) {
+function Mde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35209,88 +35209,88 @@ function jde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Mde = (e, t) => {
+var Nde = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Nde = (e, t) => ({
+}, Pde = (e, t) => ({
classGroupId: e,
validator: t
-}), YF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), JF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), XF = "-", ZF = [], Pde = "arbitrary..", Fde = (e) => {
- let t = Lde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), YF = "-", XF = [], Fde = "arbitrary..", Ide = (e) => {
+ let t = Rde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Ide(e);
- let n = e.split(XF);
- return QF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Lde(e);
+ let n = e.split(YF);
+ return ZF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Mde(i, t) : t : i || ZF;
+ return t ? i ? Nde(i, t) : t : i || XF;
}
- return n[e] || ZF;
+ return n[e] || XF;
}
};
-}, QF = (e, t, n) => {
+}, ZF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = QF(e, t + 1, i);
+ let n = ZF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(XF) : e.slice(t).join(XF), s = a.length;
+ let o = t === 0 ? e.join(YF) : e.slice(t).join(YF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Ide = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Lde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Pde + r : void 0;
-})(), Lde = (e) => {
+ return r ? Fde + r : void 0;
+})(), Rde = (e) => {
let { theme: t, classGroups: n } = e;
- return Rde(n, t);
-}, Rde = (e, t) => {
- let n = YF();
+ return zde(n, t);
+}, zde = (e, t) => {
+ let n = JF();
for (let r in e) {
let i = e[r];
- $F(i, n, r, t);
+ QF(i, n, r, t);
}
return n;
-}, $F = (e, t, n, r) => {
+}, QF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- zde(i, t, n, r);
+ Bde(i, t, n, r);
}
-}, zde = (e, t, n, r) => {
- typeof e == "string" ? Bde(e, t, n) : typeof e == "function" ? Vde(e, t, n, r) : Hde(e, t, n, r);
-}, Bde = (e, t, n) => {
- let r = e === "" ? t : eI(t, e);
+}, Bde = (e, t, n, r) => {
+ typeof e == "string" ? Vde(e, t, n) : typeof e == "function" ? Hde(e, t, n, r) : Ude(e, t, n, r);
+}, Vde = (e, t, n) => {
+ let r = e === "" ? t : $F(t, e);
r.classGroupId = n;
-}, Vde = (e, t, n, r) => {
- Ude(e) ? $F(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Nde(n, e)));
}, Hde = (e, t, n, r) => {
+ Wde(e) ? QF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Pde(n, e)));
+}, Ude = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- $F(o, eI(t, a), n, r);
+ QF(o, $F(t, a), n, r);
}
-}, eI = (e, t) => {
- let n = e, r = t.split(XF), i = r.length;
+}, $F = (e, t) => {
+ let n = e, r = t.split(YF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = YF(), n.nextPart.set(t, i)), n = i;
+ i || (i = JF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Ude = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Wde = (e) => {
+}, Wde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Gde = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35308,19 +35308,19 @@ var Mde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, tI = "!", nI = ":", Gde = [], rI = (e, t, n, r, i) => ({
+}, eI = "!", tI = ":", Kde = [], nI = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Kde = (e) => {
+}), qde = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === nI) {
+ if (o === tI) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35332,13 +35332,13 @@ var Mde = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(tI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(tI) && (c = s.slice(1), l = !0);
+ s.endsWith(eI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(eI) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return rI(t, l, c, u);
+ return nI(t, l, c, u);
};
if (t) {
- let e = t + nI, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : rI(Gde, !1, t, void 0, !0);
+ let e = t + tI, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : nI(Kde, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35348,7 +35348,7 @@ var Mde = (e, t) => {
});
}
return r;
-}, qde = (e) => {
+}, Jde = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35360,18 +35360,18 @@ var Mde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Jde = (e) => ({
- cache: Wde(e.cacheSize),
- parseClassName: Kde(e),
- sortModifiers: qde(e),
- postfixLookupClassGroupIds: Yde(e),
- ...Fde(e)
-}), Yde = (e) => {
+}, Yde = (e) => ({
+ cache: Gde(e.cacheSize),
+ parseClassName: qde(e),
+ sortModifiers: Jde(e),
+ postfixLookupClassGroupIds: Xde(e),
+ ...Ide(e)
+}), Xde = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Xde = /\s+/, Zde = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Xde), l = "";
+}, Zde = /\s+/, Qde = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Zde), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35391,7 +35391,7 @@ var Mde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + tI : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + eI : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35402,34 +35402,34 @@ var Mde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Qde = (...e) => {
+}, $de = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = iI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = rI(n)) && (i && (i += " "), i += r);
return i;
-}, iI = (e) => {
+}, rI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = iI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = rI(e[r])) && (n && (n += " "), n += t);
return n;
-}, aI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Jde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, iI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Yde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Zde(e, n);
+ let a = Qde(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Qde(...e));
-}, $de = [], oI = (e) => {
- let t = (t) => t[e] || $de;
+ return a = o, (...e) => a($de(...e));
+}, efe = [], aI = (e) => {
+ let t = (t) => t[e] || efe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, sI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, cI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, efe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, tfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, rfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ife = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, afe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, lI = (e) => efe.test(e), uI = (e) => !!e && !Number.isNaN(Number(e)), dI = (e) => !!e && Number.isInteger(Number(e)), fI = (e) => e.endsWith("%") && uI(e.slice(0, -1)), pI = (e) => tfe.test(e), mI = () => !0, hI = (e) => nfe.test(e) && !rfe.test(e), gI = () => !1, _I = (e) => ife.test(e), vI = (e) => afe.test(e), yI = (e) => !SI(e) && !AI(e), bI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), xI = (e) => PI(e, RI, gI), SI = (e) => sI.test(e), CI = (e) => PI(e, zI, hI), wI = (e) => PI(e, ufe, uI), TI = (e) => PI(e, VI, mI), EI = (e) => PI(e, BI, gI), DI = (e) => PI(e, II, gI), OI = (e) => PI(e, LI, vI), kI = (e) => PI(e, HI, _I), AI = (e) => cI.test(e), jI = (e) => FI(e, zI), ofe = (e) => FI(e, BI), MI = (e) => FI(e, II), sfe = (e) => FI(e, RI), cfe = (e) => FI(e, LI), NI = (e) => FI(e, HI, !0), lfe = (e) => FI(e, VI, !0), PI = (e, t, n) => {
- let r = sI.exec(e);
+}, oI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, sI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, nfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ife = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, afe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ofe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, cI = (e) => tfe.test(e), lI = (e) => !!e && !Number.isNaN(Number(e)), uI = (e) => !!e && Number.isInteger(Number(e)), dI = (e) => e.endsWith("%") && lI(e.slice(0, -1)), fI = (e) => nfe.test(e), pI = () => !0, mI = (e) => rfe.test(e) && !ife.test(e), hI = () => !1, gI = (e) => afe.test(e), _I = (e) => ofe.test(e), vI = (e) => !xI(e) && !kI(e), yI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), bI = (e) => NI(e, LI, hI), xI = (e) => oI.test(e), SI = (e) => NI(e, RI, mI), CI = (e) => NI(e, dfe, lI), wI = (e) => NI(e, BI, pI), TI = (e) => NI(e, zI, hI), EI = (e) => NI(e, FI, hI), DI = (e) => NI(e, II, _I), OI = (e) => NI(e, VI, gI), kI = (e) => sI.test(e), AI = (e) => PI(e, RI), sfe = (e) => PI(e, zI), jI = (e) => PI(e, FI), cfe = (e) => PI(e, LI), lfe = (e) => PI(e, II), MI = (e) => PI(e, VI, !0), ufe = (e) => PI(e, BI, !0), NI = (e, t, n) => {
+ let r = oI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, FI = (e, t, n = !1) => {
- let r = cI.exec(e);
+}, PI = (e, t, n = !1) => {
+ let r = sI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, II = (e) => e === "position" || e === "percentage", LI = (e) => e === "image" || e === "url", RI = (e) => e === "length" || e === "size" || e === "bg-size", zI = (e) => e === "length", ufe = (e) => e === "number", BI = (e) => e === "family-name", VI = (e) => e === "number" || e === "weight", HI = (e) => e === "shadow", UI = () => {
- let e = oI("color"), t = oI("font"), n = oI("text"), r = oI("font-weight"), i = oI("tracking"), a = oI("leading"), o = oI("breakpoint"), s = oI("container"), c = oI("spacing"), l = oI("radius"), u = oI("shadow"), d = oI("inset-shadow"), f = oI("text-shadow"), p = oI("drop-shadow"), m = oI("blur"), h = oI("perspective"), g = oI("aspect"), _ = oI("ease"), v = oI("animate"), y = () => [
+}, FI = (e) => e === "position" || e === "percentage", II = (e) => e === "image" || e === "url", LI = (e) => e === "length" || e === "size" || e === "bg-size", RI = (e) => e === "length", dfe = (e) => e === "number", zI = (e) => e === "family-name", BI = (e) => e === "number" || e === "weight", VI = (e) => e === "shadow", HI = () => {
+ let e = aI("color"), t = aI("font"), n = aI("text"), r = aI("font-weight"), i = aI("tracking"), a = aI("leading"), o = aI("breakpoint"), s = aI("container"), c = aI("spacing"), l = aI("radius"), u = aI("shadow"), d = aI("inset-shadow"), f = aI("text-shadow"), p = aI("drop-shadow"), m = aI("blur"), h = aI("perspective"), g = aI("aspect"), _ = aI("ease"), v = aI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35454,8 +35454,8 @@ var Mde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- AI,
- SI
+ kI,
+ xI
], S = () => [
"auto",
"hidden",
@@ -35467,43 +35467,43 @@ var Mde = (e, t) => {
"contain",
"none"
], w = () => [
- AI,
- SI,
+ kI,
+ xI,
c
], T = () => [
- lI,
+ cI,
"full",
"auto",
...w()
], E = () => [
- dI,
+ uI,
"none",
"subgrid",
- AI,
- SI
+ kI,
+ xI
], D = () => [
"auto",
{ span: [
"full",
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
] },
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
], O = () => [
- dI,
+ uI,
"auto",
- AI,
- SI
+ kI,
+ xI
], k = () => [
"auto",
"min",
"max",
"fr",
- AI,
- SI
+ kI,
+ xI
], A = () => [
"start",
"end",
@@ -35523,7 +35523,7 @@ var Mde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- lI,
+ cI,
"auto",
"full",
"dvw",
@@ -35538,7 +35538,7 @@ var Mde = (e, t) => {
...w()
], N = () => [
s,
- lI,
+ cI,
"screen",
"full",
"dvw",
@@ -35549,7 +35549,7 @@ var Mde = (e, t) => {
"fit",
...w()
], te = () => [
- lI,
+ cI,
"screen",
"full",
"lh",
@@ -35562,13 +35562,13 @@ var Mde = (e, t) => {
...w()
], P = () => [
e,
- AI,
- SI
+ kI,
+ xI
], ne = () => [
...b(),
- MI,
- DI,
- { position: [AI, SI] }
+ jI,
+ EI,
+ { position: [kI, xI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35579,25 +35579,25 @@ var Mde = (e, t) => {
"auto",
"cover",
"contain",
- sfe,
- xI,
- { size: [AI, SI] }
+ cfe,
+ bI,
+ { size: [kI, xI] }
], I = () => [
- fI,
- jI,
- CI
+ dI,
+ AI,
+ SI
], ie = () => [
"",
"none",
"full",
l,
- AI,
- SI
+ kI,
+ xI
], ae = () => [
"",
- uI,
- jI,
- CI
+ lI,
+ AI,
+ SI
], oe = () => [
"solid",
"dashed",
@@ -35621,32 +35621,32 @@ var Mde = (e, t) => {
"color",
"luminosity"
], ce = () => [
- uI,
- fI,
- MI,
- DI
+ lI,
+ dI,
+ jI,
+ EI
], le = () => [
"",
"none",
m,
- AI,
- SI
+ kI,
+ xI
], ue = () => [
"none",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
], de = () => [
"none",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
], fe = () => [
- uI,
- AI,
- SI
- ], pe = () => [
lI,
+ kI,
+ xI
+ ], pe = () => [
+ cI,
"full",
...w()
];
@@ -35660,17 +35660,17 @@ var Mde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [pI],
- breakpoint: [pI],
- color: [mI],
- container: [pI],
- "drop-shadow": [pI],
+ blur: [fI],
+ breakpoint: [fI],
+ color: [pI],
+ container: [fI],
+ "drop-shadow": [fI],
ease: [
"in",
"out",
"in-out"
],
- font: [yI],
+ font: [vI],
"font-weight": [
"thin",
"extralight",
@@ -35682,7 +35682,7 @@ var Mde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [pI],
+ "inset-shadow": [fI],
leading: [
"none",
"tight",
@@ -35699,11 +35699,11 @@ var Mde = (e, t) => {
"distant",
"none"
],
- radius: [pI],
- shadow: [pI],
- spacing: ["px", uI],
- text: [pI],
- "text-shadow": [pI],
+ radius: [fI],
+ shadow: [fI],
+ spacing: ["px", lI],
+ text: [fI],
+ "text-shadow": [fI],
tracking: [
"tighter",
"tight",
@@ -35717,9 +35717,9 @@ var Mde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- lI,
- SI,
- AI,
+ cI,
+ xI,
+ kI,
g
] }],
container: ["container"],
@@ -35727,15 +35727,15 @@ var Mde = (e, t) => {
"",
"normal",
"size",
- AI,
- SI
+ kI,
+ xI
] }],
- "container-named": [bI],
+ "container-named": [yI],
columns: [{ columns: [
- uI,
+ lI,
"auto",
- SI,
- AI,
+ xI,
+ kI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35832,13 +35832,13 @@ var Mde = (e, t) => {
"collapse"
],
z: [{ z: [
- dI,
+ uI,
"auto",
- AI,
- SI
+ kI,
+ xI
] }],
basis: [{ basis: [
- lI,
+ cI,
"full",
"auto",
s,
@@ -35856,32 +35856,32 @@ var Mde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- uI,
lI,
+ cI,
"auto",
"initial",
"none",
- SI
+ xI
] }],
grow: [{ grow: [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
shrink: [{ shrink: [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
order: [{ order: [
- dI,
+ uI,
"first",
"last",
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -35988,15 +35988,15 @@ var Mde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- jI,
- CI
+ AI,
+ SI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- lfe,
- TI
+ ufe,
+ wI
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36008,15 +36008,15 @@ var Mde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- fI,
- SI
+ dI,
+ xI
] }],
"font-family": [{ font: [
- ofe,
- EI,
+ sfe,
+ TI,
t
] }],
- "font-features": [{ "font-features": [SI] }],
+ "font-features": [{ "font-features": [xI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36025,14 +36025,14 @@ var Mde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- AI,
- SI
+ kI,
+ xI
] }],
"line-clamp": [{ "line-clamp": [
- uI,
+ lI,
"none",
- AI,
- wI
+ kI,
+ CI
] }],
leading: [{ leading: [
"none",
@@ -36041,16 +36041,16 @@ var Mde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"text-alignment": [{ text: [
"left",
@@ -36070,18 +36070,18 @@ var Mde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- uI,
+ lI,
"from-font",
"auto",
- AI,
- CI
+ kI,
+ SI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- uI,
+ lI,
"auto",
- AI,
- SI
+ kI,
+ xI
] }],
"text-transform": [
"uppercase",
@@ -36102,9 +36102,9 @@ var Mde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36115,8 +36115,8 @@ var Mde = (e, t) => {
"text-bottom",
"sub",
"super",
- AI,
- SI
+ kI,
+ xI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36144,8 +36144,8 @@ var Mde = (e, t) => {
] }],
content: [{ content: [
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36180,24 +36180,24 @@ var Mde = (e, t) => {
"l",
"tl"
] },
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
],
radial: [
"",
- AI,
- SI
+ kI,
+ xI
],
conic: [
"",
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
]
},
- cfe,
- OI
+ lfe,
+ DI
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36264,15 +36264,15 @@ var Mde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"outline-w": [{ outline: [
"",
- uI,
- jI,
- CI
+ lI,
+ AI,
+ SI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36280,35 +36280,35 @@ var Mde = (e, t) => {
"inner",
"none",
u,
- NI,
- kI
+ MI,
+ OI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- NI,
- kI
+ MI,
+ OI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [uI, CI] }],
+ "ring-offset-w": [{ "ring-offset": [lI, SI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- NI,
- kI
+ MI,
+ OI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36330,7 +36330,7 @@ var Mde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [uI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [lI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36359,7 +36359,7 @@ var Mde = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [AI, SI] }],
+ "mask-image-radial": [{ "mask-radial": [kI, xI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36370,7 +36370,7 @@ var Mde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [uI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [lI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36394,111 +36394,111 @@ var Mde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- AI,
- SI
+ kI,
+ xI
] }],
filter: [{ filter: [
"",
"none",
- AI,
- SI
+ kI,
+ xI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
contrast: [{ contrast: [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- NI,
- kI
+ MI,
+ OI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"hue-rotate": [{ "hue-rotate": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
invert: [{ invert: [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
saturate: [{ saturate: [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
sepia: [{ sepia: [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36514,39 +36514,39 @@ var Mde = (e, t) => {
"shadow",
"transform",
"none",
- AI,
- SI
+ kI,
+ xI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- uI,
+ lI,
"initial",
- AI,
- SI
+ kI,
+ xI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- AI,
- SI
+ kI,
+ xI
] }],
delay: [{ delay: [
- uI,
- AI,
- SI
+ lI,
+ kI,
+ xI
] }],
animate: [{ animate: [
"none",
v,
- AI,
- SI
+ kI,
+ xI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- AI,
- SI
+ kI,
+ xI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36562,8 +36562,8 @@ var Mde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- AI,
- SI,
+ kI,
+ xI,
"",
"none",
"gpu",
@@ -36577,9 +36577,9 @@ var Mde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- dI,
- AI,
- SI
+ uI,
+ kI,
+ xI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36629,8 +36629,8 @@ var Mde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- AI,
- SI
+ kI,
+ xI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36716,15 +36716,15 @@ var Mde = (e, t) => {
"scroll",
"contents",
"transform",
- AI,
- SI
+ kI,
+ xI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- uI,
- jI,
- CI,
- wI
+ lI,
+ AI,
+ SI,
+ CI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -36982,16 +36982,16 @@ var Mde = (e, t) => {
"selection"
]
};
-}, dfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (WI(e, "cacheSize", t), WI(e, "prefix", n), WI(e, "experimentalParseClassName", r), GI(e.theme, a.theme), GI(e.classGroups, a.classGroups), GI(e.conflictingClassGroups, a.conflictingClassGroups), GI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), WI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), WI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), KI(e.theme, i.theme), KI(e.classGroups, i.classGroups), KI(e.conflictingClassGroups, i.conflictingClassGroups), KI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), qI(e, i, "postfixLookupClassGroups"), qI(e, i, "orderSensitiveModifiers"), e), WI = (e, t, n) => {
+}, ffe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (UI(e, "cacheSize", t), UI(e, "prefix", n), UI(e, "experimentalParseClassName", r), WI(e.theme, a.theme), WI(e.classGroups, a.classGroups), WI(e.conflictingClassGroups, a.conflictingClassGroups), WI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), UI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), UI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), GI(e.theme, i.theme), GI(e.classGroups, i.classGroups), GI(e.conflictingClassGroups, i.conflictingClassGroups), GI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), KI(e, i, "postfixLookupClassGroups"), KI(e, i, "orderSensitiveModifiers"), e), UI = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, WI = (e, t) => {
+ if (t) for (let n in t) UI(e, n, t[n]);
}, GI = (e, t) => {
- if (t) for (let n in t) WI(e, n, t[n]);
-}, KI = (e, t) => {
- if (t) for (let n in t) qI(e, t, n);
-}, qI = (e, t, n) => {
+ if (t) for (let n in t) KI(e, t, n);
+}, KI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, ffe = (e, ...t) => typeof e == "function" ? aI(UI, e, ...t) : aI(() => dfe(UI(), e), ...t), pfe = [
+}, pfe = (e, ...t) => typeof e == "function" ? iI(HI, e, ...t) : iI(() => ffe(HI(), e), ...t), mfe = [
"large-title",
"display-1",
"display-2",
@@ -37005,17 +37005,17 @@ var Mde = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], mfe = [
+], hfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = ffe({ extend: { classGroups: { "font-size": [{ text: pfe.flatMap((e) => mfe.map((t) => `${e}-${t}`)) }] } } });
-function JI(e) {
+], q = pfe({ extend: { classGroups: { "font-size": [{ text: mfe.flatMap((e) => hfe.map((t) => `${e}-${t}`)) }] } } });
+function qI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var hfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, YI = JI({
+var gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, JI = qI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37037,9 +37037,9 @@ var hfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, YI = JI({
gray: "text-text-primary"
}
});
-function XI({ children: e, className: t, ref: n, container: r, ...i }) {
+function YI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- hfe(() => {
+ gfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37075,7 +37075,7 @@ function XI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", YI.radius[o.variant], YI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", JI.radius[o.variant], JI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37092,37 +37092,37 @@ function XI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Lt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var ZI = null, QI = null, $I = /* @__PURE__ */ new Set();
-function gfe(e) {
- return $I.add(e), () => {
- $I.delete(e);
+var XI = null, ZI = null, QI = /* @__PURE__ */ new Set();
+function _fe(e) {
+ return QI.add(e), () => {
+ QI.delete(e);
};
}
-function _fe() {
- for (let e of [...$I]) e();
+function vfe() {
+ for (let e of [...QI]) e();
}
-var vfe = { render(e) {
- QI = e, (0, Lt.flushSync)(_fe);
+var yfe = { render(e) {
+ ZI = e, (0, Lt.flushSync)(vfe);
} };
-function yfe(e) {
- return ZI = e, QI = null, vfe;
+function bfe(e) {
+ return XI = e, ZI = null, yfe;
}
-function bfe() {
- let e = (0, F.useSyncExternalStore)(gfe, () => QI);
- return ZI && e ? /* @__PURE__ */ (0, I.jsx)(xfe, {
- host: ZI,
+function xfe() {
+ let e = (0, F.useSyncExternalStore)(_fe, () => ZI);
+ return XI && e ? /* @__PURE__ */ (0, I.jsx)(Sfe, {
+ host: XI,
props: e
}) : null;
}
-function xfe({ host: e, props: t }) {
- let n = WF(t);
+function Sfe({ host: e, props: t }) {
+ let n = UF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Sfe, {
+ /* @__PURE__ */ (0, I.jsx)(Cfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Cfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(wfe, {
host: e,
label: n.crumb
}) : null,
@@ -37131,13 +37131,13 @@ function xfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(wfe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Tfe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Sfe({ host: e, pressed: t, menu: n }) {
+function Cfe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37147,7 +37147,7 @@ function Sfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(XI, {
+ children: /* @__PURE__ */ (0, I.jsx)(YI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37161,13 +37161,13 @@ function Sfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Cfe({ host: e, label: t }) {
+function wfe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37177,20 +37177,20 @@ function Cfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function wfe({ host: e, lede: t }) {
+function Tfe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: qF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Tfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: KF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Efe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37200,7 +37200,7 @@ function wfe({ host: e, lede: t }) {
}) : null] })
});
}
-function Tfe({ text: e }) {
+function Efe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
qs(t.current, e);
@@ -37210,29 +37210,29 @@ function Tfe({ text: e }) {
});
}
// src/core/text-lang.ts
-var Efe = /[぀-ヿㇰ-ㇿヲ-゚]/, Dfe = /[㐀-鿿豈-﫿]/, Ofe = /[A-Za-z]/;
-function eL(e) {
+var Dfe = /[぀-ヿㇰ-ㇿヲ-゚]/, Ofe = /[㐀-鿿豈-﫿]/, kfe = /[A-Za-z]/;
+function $I(e) {
let t = String(e ?? "");
- if (Efe.test(t)) return "ja";
- if (!Dfe.test(t) && Ofe.test(t)) return "en";
+ if (Dfe.test(t)) return "ja";
+ if (!Ofe.test(t) && kfe.test(t)) return "en";
}
-var kfe = (e) => {
- let t = eL(e);
+var Afe = (e) => {
+ let t = $I(e);
return t ? ` lang="${t}"` : "";
-}, Afe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, jfe = (e, t = e?.name) => {
+}, jfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Mfe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Afe, "") : n;
-}, Mfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Nfe = (e) => {
+ return e?.is_jav ? n.replace(jfe, "") : n;
+}, Nfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Pfe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Mfe) || t[0] || "";
+ return t.find(Nfe) || t[0] || "";
};
-function tL(e, t = e?.name) {
- let n = jfe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function eL(e, t = e?.name) {
+ let n = Mfe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Nfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Pfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37243,23 +37243,23 @@ function tL(e, t = e?.name) {
badges: f
};
}
-var nL = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = tL(e, t);
+var tL = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = eL(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function rL(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = tL(e, t);
+function nL(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = eL(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${kfe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Afe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var iL = "/api/tasks", aL = ["tasks"];
-function Pfe(e, t) {
+var rL = "/api/tasks", iL = ["tasks"];
+function Ffe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37270,7 +37270,7 @@ function Pfe(e, t) {
settled: n - r
};
}
-function Ffe(e) {
+function Ife(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37281,11 +37281,11 @@ function Ffe(e) {
}
return [...t.values()];
}
-var Ife = (e, t) => B(`${iL}?${new URLSearchParams({
+var Lfe = (e, t) => B(`${rL}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Lfe(...e) {
+function Rfe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37293,26 +37293,26 @@ function Lfe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Rfe = 2e3, zfe = 1e4, oL = (e) => e?.running?.length ? Rfe : zfe, sL = (e) => B(iL, e), Bfe = (e, t, n) => V(`${iL}/${e}/control`, { action: t }, "POST", n);
-async function Vfe(e) {
+var zfe = 2e3, Bfe = 1e4, aL = (e) => e?.running?.length ? zfe : Bfe, oL = (e) => B(rL, e), Vfe = (e, t, n) => V(`${rL}/${e}/control`, { action: t }, "POST", n);
+async function Hfe(e) {
await H.fetchQuery({
- queryKey: aL,
- queryFn: () => sL(e)
+ queryKey: iL,
+ queryFn: () => oL(e)
});
}
-var Hfe = {
+var Ufe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Ufe = {
+}, Wfe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Wfe = (e) => Ufe[e] || e, cL = {
+}, Gfe = (e) => Wfe[e] || e, sL = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37389,7 +37389,7 @@ var Hfe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Gfe = [
+}, Kfe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37411,14 +37411,14 @@ var Hfe = {
"paused_count",
"miss",
"incomplete"
-], Kfe = ["face_match_unavailable"], lL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Kfe.some((t) => e.result_summary?.[t] === !0) || Gfe.some((t) => Number(e.result_summary?.[t]) > 0);
-function qfe(e) {
+], qfe = ["face_match_unavailable"], cL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || qfe.some((t) => e.result_summary?.[t] === !0) || Kfe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Jfe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var uL = /* @__PURE__ */ new Set(["library-processing"]);
-function Jfe(e, t = !0) {
- if (!lL(e) && e.status !== "failed" || uL.has(e.task_key) && !t) return null;
+var lL = /* @__PURE__ */ new Set(["library-processing"]);
+function Yfe(e, t = !0) {
+ if (!cL(e) && e.status !== "failed" || lL.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37436,19 +37436,19 @@ function Jfe(e, t = !0) {
label: n[1]
} : null;
}
-function Yfe(e) {
+function Xfe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function Xfe(e) {
+function Zfe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) uL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) lL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function Zfe(e) {
+function Qfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37457,7 +37457,7 @@ function Zfe(e) {
}
return t;
}
-function Qfe(e, t) {
+function $fe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37479,12 +37479,12 @@ function Qfe(e, t) {
}
return n;
}
-var $fe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !lL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), dL = (e) => e.status === "pending" || e.status === "running";
-function epe(e) {
+var epe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !cL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), uL = (e) => e.status === "pending" || e.status === "running";
+function tpe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, mL(e.error) || spe(o) || (dL(e) && i > 0 ? `${pL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, pL(e.error) || cpe(o) || (uL(e) && i > 0 ? `${fL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function fL(e) {
+function dL(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37493,19 +37493,19 @@ function fL(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function pL(e, t) {
+function fL(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function tpe(e) {
+function npe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function mL(e) {
- let t = tpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function pL(e) {
+ let t = npe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? bn(n[1]) : t;
}
-var npe = {
+var rpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37523,11 +37523,11 @@ var npe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, hL = {
+}, mL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, rpe = {
+}, ipe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37538,8 +37538,8 @@ var npe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, ipe = (e) => npe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${hL[t.toLowerCase()]} 资料页` : `已保存来自 ${hL[t.toLowerCase()]} 的资料`);
-function gL(e) {
+}, ape = (e) => rpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${mL[t.toLowerCase()]} 资料页` : `已保存来自 ${mL[t.toLowerCase()]} 的资料`);
+function hL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37549,7 +37549,7 @@ function gL(e) {
minute: "2-digit"
});
}
-var ape = /* @__PURE__ */ new Set([
+var ope = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37558,20 +37558,20 @@ var ape = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function _L(e) {
- let t = ope(e);
+function gL(e) {
+ let t = spe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function ope(e) {
- return Object.entries(e || {}).filter(([e, t]) => !ape.has(e) && (e in cL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? mL(String(t)) : e === "outcome" || e === "result" ? ipe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${cL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${rpe[String(t)] || "批量操作"}` : `${cL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function spe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !ope.has(e) && (e in sL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? pL(String(t)) : e === "outcome" || e === "result" ? ape(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${sL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${ipe[String(t)] || "批量操作"}` : `${sL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var spe = (e) => _L(e).join(" · ");
+var cpe = (e) => gL(e).join(" · ");
// src/react/use-entity-names.ts
-function vL() {
+function _L() {
return (0, F.useSyncExternalStore)(Jt, qt, qt);
}
// src/react/components/async-text.tsx
-function yL({ text: e, busy: t, placeholder: n }) {
+function vL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && uc(r.current) : i.current = e;
@@ -37592,7 +37592,7 @@ function yL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var bL = JI({
+var yL = qI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37603,20 +37603,20 @@ var bL = JI({
small: "size-4 shrink-0"
}
});
-function xL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function bL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(bL.base, bL.size[t], n),
+ className: q(yL.base, yL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: bL.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function SL() {
+function xL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37630,7 +37630,7 @@ function SL() {
});
}
// src/react/components/use-stuck.ts
-function CL(e) {
+function SL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37647,7 +37647,7 @@ function CL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function wL(e, t = !0) {
+function CL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37661,17 +37661,17 @@ function wL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var cpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var lpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: zs("正在处理") }
});
-function TL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(xL, {
+function wL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(bL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? cpe : t,
+ icon: n && r === "spinner" ? lpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37681,9 +37681,9 @@ function TL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function lpe({ title: e, children: t }) {
+function upe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return CL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return SL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37696,13 +37696,13 @@ function lpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(SL, {})
+ /* @__PURE__ */ (0, I.jsx)(xL, {})
]
});
}
-function EL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = wL(), p = wL(u);
- return CL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function TL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = CL(), p = CL(u);
+ return SL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37727,27 +37727,27 @@ function EL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(SL, {})
+ /* @__PURE__ */ (0, I.jsx)(xL, {})
]
});
}
-var upe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function DL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var dpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function EL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(upe, r),
+ className: q(dpe, r),
onClick: n,
children: e
});
}
-var dpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function OL({ children: e, onPress: t, busy: n = !1 }) {
+var fpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function DL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: dpe,
+ className: fpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37757,13 +37757,13 @@ function OL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var kL = (e, t) => [
+var OL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function AL(e, t, n) {
+function kL(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37787,17 +37787,17 @@ function AL(e, t, n) {
h: e.offsetHeight
};
}
-function jL(e, t, n, r, { axis: i = "x" } = {}) {
+function AL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? AL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? kL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Uc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && kL(f, d)) && Vc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && OL(f, d)) && Vc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37818,8 +37818,8 @@ function jL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? AL(o, r, i) : null, l = a.current;
- s && l && kL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? kL(o, r, i) : null, l = a.current;
+ s && l && OL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37850,7 +37850,7 @@ function jL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var ML = JI({
+var jL = qI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37883,52 +37883,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(ML.base, ML.size[t], ML.variant[e], n && ML.iconOnlySize[t], o),
+ className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: ML.icon[t],
+ className: jL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: ML.label[t],
+ className: jL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: ML.icon[t],
+ className: jL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function NL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function ML({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(ML.base, ML.size[t], ML.variant[e], n && ML.iconOnlySize[t], o),
+ className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: ML.icon[t],
+ className: jL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: ML.label[t],
+ className: jL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: ML.icon[t],
+ className: jL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var PL = Symbol("default");
-function FL({ values: e, children: t }) {
+var NL = Symbol("default");
+function PL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function IL(e) {
+function FL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -37962,11 +37962,11 @@ function IL(e) {
c
]);
}
-function LL(e, t) {
+function IL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || PL;
+ let e = t || NL;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -37975,8 +37975,8 @@ function LL(e, t) {
}
return n;
}
-function RL(e, t, n) {
- let { ref: r, ...i } = LL(n, e.slot) || {}, a = $C((0, F.useMemo)(() => WC(t, r), [t, r])), o = K(i, e);
+function LL(e, t, n) {
+ let { ref: r, ...i } = IL(n, e.slot) || {}, a = QC((0, F.useMemo)(() => UC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -37994,7 +37994,7 @@ function RL(e, t, n) {
...e.style
}), [o, a];
}
-function zL(e = !0) {
+function RL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -38002,13 +38002,13 @@ function zL(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function BL(e) {
+function zL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function fpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => WC(n, a), [n, a]);
+function ppe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => UC(n, a), [n, a]);
VS(() => {}, [e, r]);
let s = {
...i,
@@ -38016,19 +38016,19 @@ function fpe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var VL = {}, HL = new Proxy({}, { get(e, t) {
+var BL = {}, VL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = VL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(fpe.bind(null, t)), VL[t] = n), n;
-} }), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = {
+ let n = BL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(ppe.bind(null, t)), BL[t] = n), n;
+} }), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return qL(e, null, t);
+ return KL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return qL(e, t, n);
+ return KL(e, t, n);
}
};
-function qL(e, t, n) {
+function KL(e, t, n) {
return CS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -38039,11 +38039,11 @@ function qL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, ppe(e, t, n));
+ }), r, mpe(e, t, n));
}
});
}
-function ppe(e, t, n) {
+function mpe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38062,24 +38062,24 @@ function ppe(e, t, n) {
}
return s;
}
-var JL = /*#__PURE__*/ (0, F.createContext)(KL);
-function YL(e) {
+var qL = /*#__PURE__*/ (0, F.createContext)(GL);
+function JL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, XL);
- let { elementType: n = "label", ...r } = e, i = HL[n];
+var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, YL);
+ let { elementType: n = "label", ...r } = e, i = VL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), mpe = /*#__PURE__*/ (0, F.createContext)(null), QL = /*#__PURE__*/ (0, F.createContext)({}), $L = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, QL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Poe(e, t);
- i = gpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = MD(e), { hoverProps: l, isHovered: u } = ID({
+}), hpe = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)({}), QL = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, ZL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Foe(e, t);
+ i = _pe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = jD(e), { hoverProps: l, isHovered: u } = FD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38089,24 +38089,24 @@ var XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ iw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = IL({
+ }, f = FL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = HC(i.id), m = HC(), h = i["aria-labelledby"];
+ }), p = VC(i.id), m = VC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && NT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && MT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Kw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(HL.button, {
+ let _ = Gw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(VL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38120,61 +38120,61 @@ var XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ iw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(mpe.Provider, { value: { id: m } }, f.children));
-}), hpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function gpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(hpe.Provider, { value: { id: m } }, f.children));
+}), gpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function _pe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !hpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !gpe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var eR = /*#__PURE__*/ (0, F.createContext)({}), tR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, eR);
- let { children: n, level: r = 3, className: i, ...a } = e, o = HL[`h${r}`];
+var $L = /*#__PURE__*/ (0, F.createContext)({}), eR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, $L);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = VL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), nR = /*#__PURE__*/ (0, F.createContext)({}), _pe = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, nR);
- let { elementType: n = "span", ...r } = e, i = HL[n];
+}), tR = /*#__PURE__*/ (0, F.createContext)({}), vpe = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, tR);
+ let { elementType: n = "span", ...r } = e, i = VL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null), oR = /*#__PURE__*/ (0, F.createContext)(null), vpe = /*#__PURE__*/ (0, F.createContext)(null), sR = /*#__PURE__*/ (0, F.createContext)(null);
-function ype(e, t) {
- let { validationBehavior: n } = LL(iR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(vpe), a = $C((0, F.useMemo)(() => WC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...BL(e),
+}), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null), ype = /*#__PURE__*/ (0, F.createContext)(null), oR = /*#__PURE__*/ (0, F.createContext)(null);
+function bpe(e, t) {
+ let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(ype), a = QC((0, F.useMemo)(() => UC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...zL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? rse(o, i, a) : eE(o, aE(e), a), a];
+ return [i ? ise(o, i, a) : $T(o, iE(e), a), a];
}
-var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = RL(r, t, aR);
- let [i, a] = ype(e, n);
- return /*#__PURE__*/ F.createElement(sR.Provider, { value: {
+ [e, t] = LL(r, t, iR);
+ let [i, a] = bpe(e, n);
+ return /*#__PURE__*/ F.createElement(oR.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(xpe, {
+ } }, /*#__PURE__*/ F.createElement(Spe, {
...e,
ref: t
}));
-}), xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(sR), { isFocused: p, isFocusVisible: m, focusProps: h } = MD(), g = a || o, { hoverProps: _, isHovered: v } = ID({
+}), Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(oR), { isFocused: p, isFocusVisible: m, focusProps: h } = jD(), g = a || o, { hoverProps: _, isHovered: v } = FD({
...e,
isDisabled: g
- }), y = IL({
+ }), y = FL({
...e,
defaultClassName: u,
values: {
@@ -38189,8 +38189,8 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Kw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(HL.label, {
+ }), b = Gw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38204,20 +38204,20 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), cR = /*#__PURE__*/ (0, F.createContext)({}), lR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, cR);
+}), sR = /*#__PURE__*/ (0, F.createContext)({}), cR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, sR);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = ID({
+ let { hoverProps: l, isHovered: u } = FD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = MD({ within: !0 }), m = IL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = jD({ within: !0 }), m = FL({
...e,
values: {
isHovered: u,
@@ -38228,7 +38228,7 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(VL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38241,18 +38241,18 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), uR = /*#__PURE__*/ (0, F.createContext)({}), Spe = (e) => {
+}), lR = /*#__PURE__*/ (0, F.createContext)({}), Cpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Cpe = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, uR);
- let { hoverProps: n, isHovered: r } = ID({
+}, wpe = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, lR);
+ let { hoverProps: n, isHovered: r } = FD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = MD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = jD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = IL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
...e,
values: {
isHovered: r,
@@ -38263,8 +38263,8 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(HL.input, {
- ...K(Spe(e), o, n),
+ return /*#__PURE__*/ F.createElement(VL.input, {
+ ...K(Cpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38273,24 +38273,24 @@ var bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), wpe = 0, Tpe = 100, Epe = 1;
-function Dpe(e) {
- let { isDisabled: t = !1, minValue: n = wpe, maxValue: r = Tpe, numberFormatter: i, step: a = Epe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Tpe = 0, Epe = 100, Dpe = 1;
+function Ope(e) {
+ let { isDisabled: t = !1, minValue: n = Tpe, maxValue: r = Epe, numberFormatter: i, step: a = Dpe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = cE(e, 0, e + a, a), Math.max(e, a);
+ return e = sE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => cE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => sE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(fR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(fR(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(dR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(dR(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = pR(e.value, e.defaultValue, e.onChange), f = pR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = iE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = fR(e.value, e.defaultValue, e.onChange), f = fR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = rE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38313,15 +38313,15 @@ function Dpe(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = cE(n, r, i, a);
- let o = dR(x.current, e, n);
+ n = sE(n, r, i, a);
+ let o = uR(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = dR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = uR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38342,15 +38342,15 @@ function Dpe(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return oE(te(e * (r - n) + n), n, r);
+ return aE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, cE(p[e] + i, n, r, a));
+ A(e, sE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, cE(p[e] - i, n, r, a));
+ A(e, sE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38379,31 +38379,31 @@ function Dpe(e) {
isDisabled: t
};
}
-function dR(e, t, n) {
+function uR(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function fR(e) {
+function dR(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function pR(e, t, n) {
+function fR(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.createContext)(null), hR = /*#__PURE__*/ (0, F.createContext)(null), kpe = /*#__PURE__*/ (0, F.createContext)(null), Ape = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, Ope);
- let n = (0, F.useRef)(null), r = cse(e.formatOptions), i = Dpe({
+var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.createContext)(null), Ape = /*#__PURE__*/ (0, F.createContext)(null), jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, kpe);
+ let n = (0, F.useRef)(null), r = lse(e.formatOptions), i = Ope({
...e,
numberFormatter: r
- }), [a, o] = zL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = lse({
+ }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = use({
...e,
label: o
- }, i, n), d = IL({
+ }, i, n), d = FL({
...e,
values: {
orientation: i.orientation,
@@ -38411,32 +38411,32 @@ var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Kw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(FL, { values: [
- [mR, i],
- [hR, {
+ }), f = Gw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(PL, { values: [
+ [pR, i],
+ [mR, {
...c,
ref: n
}],
- [kpe, u],
- [XL, {
+ [Ape, u],
+ [YL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(HL.div, {
+ ] }, /*#__PURE__*/ F.createElement(VL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, hR);
- let n = (0, F.useContext)(mR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ID({
+}), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, mR);
+ let n = (0, F.useContext)(pR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = FD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = IL({
+ }), l = FL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38446,7 +38446,7 @@ var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(VL.div, {
...K(o, s),
...l,
ref: t,
@@ -38454,14 +38454,14 @@ var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(mR), { ref: i } = LL(hR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = zL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = use({
+}), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(pR), { ref: i } = IL(mR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = RL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = dse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = MD(), { hoverProps: v, isHovered: y } = ID(e), b = IL({
+ }, r), { focusProps: g, isFocusVisible: _ } = jD(), { hoverProps: v, isHovered: y } = FD(e), b = FL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38472,8 +38472,8 @@ var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Kw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(HL.div, {
+ }), x = Gw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(VL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38486,330 +38486,330 @@ var Ope = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(mE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(pE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(FL, { values: [[XL, {
+ })), /*#__PURE__*/ F.createElement(PL, { values: [[YL, {
...f,
ref: c
}]] }, b.children));
-}), gR = {};
-gR = {
+}), hR = {};
+hR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var _R = {};
-_R = {
+var gR = {};
+gR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var vR = {};
-vR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var yR = {};
-yR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var bR = {};
-bR = {
+var yR = {};
+yR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var xR = {};
-xR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var SR = {};
-SR = {
+var xR = {};
+xR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var CR = {};
-CR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var wR = {};
-wR = {
+var CR = {};
+CR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var TR = {};
-TR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var ER = {};
-ER = {
+var TR = {};
+TR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var DR = {};
-DR = {
+var ER = {};
+ER = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var OR = {};
-OR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var kR = {};
-kR = {
+var OR = {};
+OR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var AR = {};
-AR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var jR = {};
-jR = {
+var AR = {};
+AR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var MR = {};
-MR = {
+var jR = {};
+jR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var NR = {};
-NR = {
+var MR = {};
+MR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var PR = {};
-PR = {
+var NR = {};
+NR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var FR = {};
-FR = {
+var PR = {};
+PR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var IR = {};
-IR = {
+var FR = {};
+FR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var LR = {};
-LR = {
+var IR = {};
+IR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var RR = {};
-RR = {
+var LR = {};
+LR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var zR = {};
-zR = {
+var RR = {};
+RR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var BR = {};
-BR = {
+var zR = {};
+zR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var VR = {};
-VR = {
+var BR = {};
+BR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var HR = {};
-HR = {
+var VR = {};
+VR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var UR = {};
-UR = {
+var HR = {};
+HR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var WR = {};
-WR = {
+var UR = {};
+UR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var GR = {};
-GR = {
+var WR = {};
+WR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var KR = {};
-KR = {
+var GR = {};
+GR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var qR = {};
-qR = {
+var KR = {};
+KR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var JR = {};
-JR = {
+var qR = {};
+qR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var YR = {};
-YR = {
+var JR = {};
+JR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var XR = {};
-XR = {
- "ar-AE": gR,
- "bg-BG": _R,
- "cs-CZ": vR,
- "da-DK": yR,
- "de-DE": bR,
- "el-GR": xR,
- "en-US": SR,
- "es-ES": CR,
- "et-EE": wR,
- "fi-FI": TR,
- "fr-FR": ER,
- "he-IL": DR,
- "hr-HR": OR,
- "hu-HU": kR,
- "it-IT": AR,
- "ja-JP": jR,
- "ko-KR": MR,
- "lt-LT": NR,
- "lv-LV": PR,
- "nb-NO": FR,
- "nl-NL": IR,
- "pl-PL": LR,
- "pt-BR": RR,
- "pt-PT": zR,
- "ro-RO": BR,
- "ru-RU": VR,
- "sk-SK": HR,
- "sl-SI": UR,
- "sr-SP": WR,
- "sv-SE": GR,
- "tr-TR": KR,
- "uk-UA": qR,
- "zh-CN": JR,
- "zh-TW": YR
+var YR = {};
+YR = {
+ "ar-AE": hR,
+ "bg-BG": gR,
+ "cs-CZ": _R,
+ "da-DK": vR,
+ "de-DE": yR,
+ "el-GR": bR,
+ "en-US": xR,
+ "es-ES": SR,
+ "et-EE": CR,
+ "fi-FI": wR,
+ "fr-FR": TR,
+ "he-IL": ER,
+ "hr-HR": DR,
+ "hu-HU": OR,
+ "it-IT": kR,
+ "ja-JP": AR,
+ "ko-KR": jR,
+ "lt-LT": MR,
+ "lv-LV": NR,
+ "nb-NO": PR,
+ "nl-NL": FR,
+ "pl-PL": IR,
+ "pt-BR": LR,
+ "pt-PT": RR,
+ "ro-RO": zR,
+ "ru-RU": BR,
+ "sk-SK": VR,
+ "sl-SI": HR,
+ "sr-SP": UR,
+ "sv-SE": WR,
+ "tr-TR": GR,
+ "uk-UA": KR,
+ "zh-CN": qR,
+ "zh-TW": JR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var ZR = /*#__PURE__*/ (0, F.createContext)({}), QR = /*#__PURE__*/ (0, F.createContext)(null), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(QR);
+var XR = /*#__PURE__*/ (0, F.createContext)({}), ZR = /*#__PURE__*/ (0, F.createContext)(null), Ppe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(ZR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function $R(e, t) {
+function QR(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Npe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Ppe, { target: e });
}, [
t?.target,
r,
@@ -38817,7 +38817,7 @@ function $R(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function ez(e, t, n) {
+function $R(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38838,13 +38838,13 @@ function ez(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var tz = /*#__PURE__*/ (0, F.createContext)({}), Ppe = /*#__PURE__*/ (0, F.createContext)(null);
-function nz(e) {
+var ez = /*#__PURE__*/ (0, F.createContext)({}), Fpe = /*#__PURE__*/ (0, F.createContext)(null);
+function tz(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(Ppe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(Fpe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var rz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), iz = /*#__PURE__*/ (0, F.createContext)({}), Fpe = /*#__PURE__*/ fw(class extends hS {
+var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE__*/ (0, F.createContext)({}), Ipe = /*#__PURE__*/ dw(class extends hS {
static {
this.type = "separator";
}
@@ -38857,14 +38857,14 @@ var rz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), iz = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = RL(e, t, iz);
+ [e, t] = LL(e, t, rz);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = HL[c], { separatorProps: u } = hce({
+ let l = VL[c], { separatorProps: u } = gce({
...s,
elementType: n,
orientation: r
- }), d = Kw(e, { global: !0 });
+ }), d = Gw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38875,12 +38875,12 @@ var rz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), iz = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function az(e) {
+function iz(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var oz = class {
+var az = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -38924,19 +38924,19 @@ var oz = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, sz = class e extends Set {
+}, oz = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Ipe(e, t) {
+function Lpe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function cz(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = iE((0, F.useMemo)(() => lz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => lz(e.defaultSelectedKeys, new sz()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function sz(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = rE((0, F.useMemo)(() => cz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => cz(e.defaultSelectedKeys, new oz()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -38963,17 +38963,17 @@ function cz(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Ipe(e, d)) && f(e);
+ (r || !Lpe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function lz(e, t) {
- return e ? e === "all" ? "all" : new sz(e) : t;
+function cz(e, t) {
+ return e ? e === "all" ? "all" : new oz(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var uz = class e {
+var lz = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -39029,7 +39029,7 @@ var uz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && bD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && yD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39037,7 +39037,7 @@ var uz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && bD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && yD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39056,10 +39056,10 @@ var uz = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new sz([t], t, t);
+ if (this.state.selectedKeys === "all") n = new oz([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new sz(e, r, t);
+ n = new oz(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -39067,7 +39067,7 @@ var uz = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? bD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? yD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39093,19 +39093,19 @@ var uz = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new sz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new oz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new sz([t], t, t) : new sz();
+ let n = this.canSelectItem(t) ? new oz([t], t, t) : new oz();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new sz();
+ let t = new oz();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39117,7 +39117,7 @@ var uz = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(_D(gD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(gD(hD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39128,7 +39128,7 @@ var uz = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new sz());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new oz());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39169,9 +39169,9 @@ var uz = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Lpe = class {
+}, Rpe = class {
build(e, t) {
- return this.context = t, dz(() => this.iterateCollection(e));
+ return this.context = t, uz(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39253,10 +39253,10 @@ var uz = class e {
...a,
key: l,
index: s,
- wrapper: Rpe(e.wrapper, a.wrapper)
+ wrapper: zpe(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${fz(t.type)}> in <${fz(r?.type ?? "unknown parent type")}>. Only <${fz(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${dz(t.type)}> in <${dz(r?.type ?? "unknown parent type")}>. Only <${dz(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39278,7 +39278,7 @@ var uz = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: dz(function* () {
+ childNodes: uz(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39297,7 +39297,7 @@ var uz = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function dz(e) {
+function uz(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39305,17 +39305,17 @@ function dz(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Rpe(e, t) {
+function zpe(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function fz(e) {
+function dz(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function pz(e, t, n) {
- let r = (0, F.useMemo)(() => new Lpe(), []), { children: i, items: a, collection: o } = e;
+function fz(e, t, n) {
+ let r = (0, F.useMemo)(() => new Rpe(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39329,27 +39329,27 @@ function pz(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function mz(e) {
- let { filter: t, layoutDelegate: n } = e, r = cz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = pz(e, (0, F.useCallback)((e) => t ? new oz(t(e)) : new oz(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new uz(a, r, { layoutDelegate: n }), [
+function pz(e) {
+ let { filter: t, layoutDelegate: n } = e, r = sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = fz(e, (0, F.useCallback)((e) => t ? new az(t(e)) : new az(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new lz(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return hz(a, o), {
+ return mz(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function zpe(e, t) {
+function Bpe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return hz(n, r), {
+ return mz(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function hz(e, t) {
+function mz(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39376,15 +39376,15 @@ function hz(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function gz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Aw((e) => {
+function hz(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = kw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
VS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: IT(t?.current),
+ root: FT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39399,42 +39399,42 @@ function gz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ (0, F.createContext)(null), Bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, _z);
- let n = (0, F.useContext)(vz);
- return n ? /*#__PURE__*/ F.createElement(yz, {
+var gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, gz);
+ let n = (0, F.useContext)(_z);
+ return n ? /*#__PURE__*/ F.createElement(vz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(lw, { content: /*#__PURE__*/ F.createElement(gw, e) }, (n) => /*#__PURE__*/ F.createElement(Vpe, {
+ }) : /*#__PURE__*/ F.createElement(cw, { content: /*#__PURE__*/ F.createElement(hw, e) }, (n) => /*#__PURE__*/ F.createElement(Hpe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Vpe({ props: e, listBoxRef: t, collection: n }) {
+function Hpe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(JL), i = mz({
+ let { layoutDelegate: r } = (0, F.useContext)(qL), i = pz({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(yz, {
+ return /*#__PURE__*/ F.createElement(vz, {
state: i,
props: e,
listBoxRef: t
});
}
-function yz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = RL(t, n, UL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = zpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Rw(), { disabledBehavior: p, disabledKeys: m } = l, h = TD({
+function vz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = LL(t, n, HL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Bpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Lw(), { disabledBehavior: p, disabledKeys: m } = l, h = wD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(JL), b = (0, F.useMemo)(() => t.keyboardDelegate || new DE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(qL), b = (0, F.useMemo)(() => t.keyboardDelegate || new EE({
collection: c,
collator: h,
ref: n,
@@ -39455,7 +39455,7 @@ function yz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Lse({
+ ]), { listBoxProps: x } = Rse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39487,7 +39487,7 @@ function yz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = MD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = jD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39495,7 +39495,7 @@ function yz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = IL({
+ }, ee = FL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39505,8 +39505,8 @@ function yz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Kw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(HL.div, {
+ let te = Gw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39517,60 +39517,60 @@ function yz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [_z, t],
- [vz, s],
- [ZR, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [gz, t],
+ [_z, s],
+ [XR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [iz, { elementType: "div" }],
- [QR, { render: Wpe }],
- [GL, {
+ [rz, { elementType: "div" }],
+ [ZR, { render: Gpe }],
+ [WL, {
name: "ListBoxSection",
- render: Hpe
+ render: Upe
}]
- ] }, /*#__PURE__*/ F.createElement(nz, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: ez(l, r, C),
- renderDropIndicator: $R(r, C)
+ persistedKeys: $R(l, r, C),
+ renderDropIndicator: QR(r, C)
}))), N, E));
}
-function Hpe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(vz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(ZR), { CollectionBranch: s } = (0, F.useContext)(JL), [c, l] = zL(), { headingProps: u, groupProps: d } = Rse({
+function Upe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(_z), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(XR), { CollectionBranch: s } = (0, F.useContext)(qL), [c, l] = RL(), { headingProps: u, groupProps: d } = zse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = IL({
+ }), f = FL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Kw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(HL.section, {
+ }), p = Gw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(VL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(tz.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(ez.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: $R(a, o)
+ renderDropIndicator: QR(a, o)
})));
}
-var Upe = /*#__PURE__*/ fw(vS, function(e, t, n) {
- let r = $C(t), i = (0, F.useContext)(vz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(ZR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = zse({
+var Wpe = /*#__PURE__*/ dw(vS, function(e, t, n) {
+ let r = QC(t), i = (0, F.useContext)(_z), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Bse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = ID({
+ }, i, r), { hoverProps: p, isHovered: m } = FD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = QC(e), { focusProps: g } = JC(e), _ = null;
+ }), { keyboardProps: h } = ZC(e), { focusProps: g } = qC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39581,7 +39581,7 @@ var Upe = /*#__PURE__*/ fw(vS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = IL({
+ let y = o && o.isDragging(n.key), b = FL({
...e,
id: void 0,
children: e.children,
@@ -39599,7 +39599,7 @@ var Upe = /*#__PURE__*/ fw(vS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? HL.a : HL.div, S = Kw(e, { global: !0 });
+ let x = e.href ? VL.a : VL.div, S = Gw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39613,29 +39613,29 @@ var Upe = /*#__PURE__*/ fw(vS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(FL, { values: [[nR, { slots: {
- [PL]: u,
+ }, /*#__PURE__*/ F.createElement(PL, { values: [[tR, { slots: {
+ [NL]: u,
label: u,
description: d
- } }], [rz, { isSelected: f.isSelected }]] }, b.children));
+ } }], [nz, { isSelected: f.isSelected }]] }, b.children));
});
-function Wpe(e, t) {
- t = $C(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(ZR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Kpe, {
+function Gpe(e, t) {
+ t = QC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(qpe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Gpe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = IL({
+function Kpe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = FL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
...n,
...a,
role: "option",
@@ -39643,10 +39643,10 @@ function Gpe(e, t) {
"data-drop-target": r || void 0
}));
}
-var Kpe = /*#__PURE__*/ (0, F.forwardRef)(Gpe);
-fw(_S, function(e, t, n) {
- let r = (0, F.useContext)(vz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- gz((0, F.useMemo)(() => ({
+var qpe = /*#__PURE__*/ (0, F.forwardRef)(Kpe);
+dw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(_z), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ hz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39656,7 +39656,7 @@ fw(_S, function(e, t, n) {
o,
r?.collection
]), c);
- let l = IL({
+ let l = FL({
...s,
id: void 0,
children: n.rendered,
@@ -39669,7 +39669,7 @@ fw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: az(!0)
+ inert: iz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39678,18 +39678,18 @@ fw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(HL.div, {
- ...K(Kw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
+ ...K(Gw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var qpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Jpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function bz(e) {
- let [t, n] = iE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function yz(e) {
+ let [t, n] = rE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39707,15 +39707,15 @@ function bz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function xz(e, t = !0, n) {
+function bz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
return VS(() => {
- if (!t && e.current) return RC(AS(e.current, "opacity", "0"), AS(e.current, "clip", "rect(0 0 0 0)"), AS(e.current, "clip-path", "inset(50%)"), AS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ if (!t && e.current) return LC(AS(e.current, "opacity", "0"), AS(e.current, "clip", "rect(0 0 0 0)"), AS(e.current, "clip-path", "inset(50%)"), AS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), VS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), Cz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), Sz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function Sz(e, t, n) {
+function xz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39725,12 +39725,12 @@ function Sz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return Cz(e, a, n, (0, F.useCallback)(() => {
+ return Sz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function Cz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Aw(n);
+function Sz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = kw(n);
VS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
@@ -39756,9 +39756,9 @@ function Cz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, wz);
- let n = (0, F.useContext)(Rz), r = bz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Sz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = aw(), { direction: c } = Rw();
+var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, Cz);
+ let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = xz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = iw(), { direction: c } = Lw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39769,7 +39769,7 @@ var wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Jpe, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Ype, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39778,13 +39778,13 @@ var wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(Tz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = uce({
+function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(wz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = dce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = xz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = IL({
+ }, e), g = i.popoverRef, _ = bz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = FL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39797,7 +39797,7 @@ function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
VS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || EC() !== "pointer") && g.current && !FS(g.current) && LC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || TC() !== "pointer") && g.current && !FS(g.current) && IC(g.current);
}, [
x,
g,
@@ -39805,12 +39805,12 @@ function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [wz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [Cz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- VS(E, [E]), PO({
+ VS(E, [E]), NO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39820,9 +39820,9 @@ function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- VS(() => Ck(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(HL.div, {
- ...K(Kw(i, { global: !0 }), d),
+ VS(() => Sk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(VL.div, {
+ ...K(Gw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39837,17 +39837,17 @@ function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(gk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(qpe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(hk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Jpe.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(gk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(AD, {
+ } }, C), /*#__PURE__*/ F.createElement(hk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(kD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(AD, {
+ }, O) : /*#__PURE__*/ F.createElement(kD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39862,13 +39862,13 @@ function Jpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(Tz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(wz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Ype = /*#__PURE__*/ (0, F.createContext)({});
+var Xpe = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function Dz(e) {
- let t = bz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function Ez(e) {
+ let t = yz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -39893,7 +39893,7 @@ function Dz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Xpe = class {
+var Zpe = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -39936,8 +39936,8 @@ var Xpe = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Oz(e) {
- let { onExpandedChange: t } = e, [n, r] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = cz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = pz(e, (0, F.useCallback)((e) => new Xpe(e, { expandedKeys: n }), [n]), null);
+function Dz(e) {
+ let { onExpandedChange: t } = e, [n, r] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = sz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = fz(e, (0, F.useCallback)((e) => new Zpe(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39945,31 +39945,31 @@ function Oz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Zpe(n, e));
+ r(Qpe(n, e));
},
setExpandedKeys: r,
- selectionManager: new uz(o, i)
+ selectionManager: new lz(o, i)
};
}
-function Zpe(e, t) {
+function Qpe(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null);
-function Qpe(e) {
- let t = Dz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = dD({
+var Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.createContext)(null);
+function $pe(e) {
+ let t = Ez(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = uD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return aw() ? null : /*#__PURE__*/ F.createElement(FL, { values: [
- [kz, {
+ return iw() ? null : /*#__PURE__*/ F.createElement(PL, { values: [
+ [Oz, {
...i,
ref: a
}],
- [Rz, t],
- [jz, t],
- [wz, {
+ [Lz, t],
+ [Az, t],
+ [Cz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -39977,13 +39977,13 @@ function Qpe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Sse, {
+ ] }, /*#__PURE__*/ F.createElement(Cse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var $pe = /*#__PURE__*/ (0, F.createContext)(null);
+var eme = /*#__PURE__*/ (0, F.createContext)(null);
(class extends hS {
static {
this.type = "submenutrigger";
@@ -39997,24 +39997,24 @@ var $pe = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = RL(e, t, kz), /*#__PURE__*/ F.createElement(lw, { content: /*#__PURE__*/ F.createElement(gw, e) }, (n) => /*#__PURE__*/ F.createElement(tme, {
+var tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = LL(e, t, Oz), /*#__PURE__*/ F.createElement(cw, { content: /*#__PURE__*/ F.createElement(hw, e) }, (n) => /*#__PURE__*/ F.createElement(nme, {
props: e,
collection: n,
menuRef: t
}));
});
-function tme({ props: e, collection: t, menuRef: n }) {
- [e, n] = RL(e, n, UL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Oz({
+function nme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = LL(e, n, HL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Dz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(jz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(JL), { menuProps: u } = Bse({
+ }), s = (0, F.useContext)(Az), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(qL), { menuProps: u } = Vse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = IL({
+ }, o, n), d = FL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40024,36 +40024,36 @@ function tme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(HL.div, {
+ let p = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [Az, o],
- [iz, { elementType: "div" }],
- [GL, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [kz, o],
+ [rz, { elementType: "div" }],
+ [WL, {
name: "MenuSection",
- render: Nz
+ render: Mz
}],
- [$pe, {
+ [eme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [Fz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [HL, null],
[UL, null],
- [WL, null],
- [Mz, o.selectionManager],
- [jz, s ?? Dz({})]
- ] }, /*#__PURE__*/ F.createElement(nz, null, /*#__PURE__*/ F.createElement(l, {
+ [jz, o.selectionManager],
+ [Az, s ?? Ez({})]
+ ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: YL(o.selectionManager.focusedKey),
+ persistedKeys: JL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var nme = class extends uz {
+var rme = class extends lz {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40073,11 +40073,11 @@ var nme = class extends uz {
return this.parent.childFocusStrategy;
}
};
-function Nz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(Az), { CollectionBranch: a } = (0, F.useContext)(JL), [o, s] = zL(), { headingProps: c, groupProps: l } = Hse({
+function Mz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(kz), { CollectionBranch: a } = (0, F.useContext)(qL), [o, s] = RL(), { headingProps: c, groupProps: l } = Use({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = IL({
+ }), u = FL({
...e,
id: void 0,
children: void 0,
@@ -40085,31 +40085,31 @@ function Nz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(Mz), f = cz(e), p = e.selectionMode == null ? d : new nme(d, f), m = LL(Fz)?.shouldCloseOnSelect, h = Kw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(HL.section, {
+ }), d = (0, F.useContext)(jz), f = sz(e), p = e.selectionMode == null ? d : new rme(d, f), m = IL(Pz)?.shouldCloseOnSelect, h = Gw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(VL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [tz, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [ez, {
...c,
ref: o
}],
- [Mz, p],
- [Fz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [jz, p],
+ [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var Pz = /*#__PURE__*/ pw(tae, Nz), Fz = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ fw(vS, function(e, t, n) {
- [e, t] = RL(e, t, Fz);
- let r = LL(Fz)?.id, i = (0, F.useContext)(Az), a = $C(t), o = (0, F.useContext)(Mz), { isVirtualized: s } = (0, F.useContext)(JL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Vse({
+var Nz = /*#__PURE__*/ fw(tae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ dw(vS, function(e, t, n) {
+ [e, t] = LL(e, t, Pz);
+ let r = IL(Pz)?.id, i = (0, F.useContext)(kz), a = QC(t), o = (0, F.useContext)(jz), { isVirtualized: s } = (0, F.useContext)(qL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Hse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = ID({ isDisabled: f.isDisabled }), h = IL({
+ }, i, a), { hoverProps: p, isHovered: m } = FD({ isDisabled: f.isDisabled }), h = FL({
...e,
id: void 0,
children: n.rendered,
@@ -40123,7 +40123,7 @@ var Pz = /*#__PURE__*/ pw(tae, Nz), Fz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? HL.a : HL.div, _ = Kw(e, { global: !0 });
+ }), g = e.href ? VL.a : VL.div, _ = Gw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40136,19 +40136,19 @@ var Pz = /*#__PURE__*/ pw(tae, Nz), Fz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [nR, { slots: {
- [PL]: l,
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [tR, { slots: {
+ [NL]: l,
label: l,
description: u
} }],
- [Ype, d],
- [rz, { isSelected: f.isSelected }]
+ [Xpe, d],
+ [nz, { isSelected: f.isSelected }]
] }, h.children));
});
-fw(_S, function(e, t, n) {
- let r = (0, F.useContext)(Az), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- gz((0, F.useMemo)(() => ({
+dw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(kz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ hz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40158,7 +40158,7 @@ fw(_S, function(e, t, n) {
o,
r?.collection
]), c);
- let l = IL({
+ let l = FL({
...s,
id: void 0,
children: n.rendered,
@@ -40171,7 +40171,7 @@ fw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: az(!0)
+ inert: iz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40180,89 +40180,89 @@ fw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(HL.div, {
- ...K(Kw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
+ ...K(Gw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Lz = /*#__PURE__*/ (0, F.createContext)(null), Rz = /*#__PURE__*/ (0, F.createContext)(null), zz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), Rz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = RL(e, t, Lz);
- let { dialogProps: r, titleProps: i, contentProps: a } = wse({
+ [e, t] = LL(e, t, Iz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Tse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Rz);
+ }, t), o = (0, F.useContext)(Lz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = IL({
+ let s = FL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(HL.section, {
+ }), c = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(VL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [eR, { slots: {
- [PL]: {},
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [$L, { slots: {
+ [NL]: {},
title: {
...i,
level: 2
}
} }],
- [nR, { slots: {
- [PL]: {},
+ [tR, { slots: {
+ [NL]: {},
description: a
} }],
- [QL, { slots: {
- [PL]: {},
+ [ZL, { slots: {
+ [NL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Bz = typeof document < "u" && window.visualViewport;
-function rme() {
- let e = uC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), zz = typeof document < "u" && window.visualViewport;
+function ime() {
+ let e = lC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Vz());
+ } : Bz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Bz && Bz.scale > 1 || e(Vz());
+ zz && zz.scale > 1 || e(Bz());
}, i = (n) => {
- Bz && Bz.scale > 1 || Dw(G(n)) && (t.current = Ck((t) => {
+ zz && zz.scale > 1 || Ew(G(n)) && (t.current = Sk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Vz()), ZS() && QS() && window.addEventListener("blur", i, !0), Bz ? Bz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), ZS() && QS() && window.removeEventListener("blur", i, !0), Bz ? Bz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Bz()), ZS() && QS() && window.addEventListener("blur", i, !0), zz ? zz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), ZS() && QS() && window.removeEventListener("blur", i, !0), zz ? zz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Vz() {
+function Bz() {
return {
- width: Bz ? Math.min(Bz.width * Bz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Bz ? Bz.height * Bz.scale : document.documentElement.clientHeight
+ width: zz ? Math.min(zz.width * zz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: zz ? zz.height * zz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var ime = /*#__PURE__*/ (0, F.createContext)(null), Hz = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Hz)) return /*#__PURE__*/ F.createElement(Wz, {
+var ame = /*#__PURE__*/ (0, F.createContext)(null), Vz = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Vz)) return /*#__PURE__*/ F.createElement(Uz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Uz, {
+ return /*#__PURE__*/ F.createElement(Hz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40272,15 +40272,15 @@ var ime = /*#__PURE__*/ (0, F.createContext)(null), Hz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Wz, {
+ }, /*#__PURE__*/ F.createElement(Uz, {
...f,
modalRef: t
}, s));
});
-function ome(e, t) {
- [e, t] = RL(e, t, ime);
- let n = (0, F.useContext)(Rz), r = bz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = $C(t), o = (0, F.useRef)(null), s = Sz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = Sz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = uC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(sme, {
+function sme(e, t) {
+ [e, t] = LL(e, t, ame);
+ let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = QC(t), o = (0, F.useRef)(null), s = xz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = xz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = lC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(cme, {
...e,
state: i,
isExiting: u,
@@ -40289,12 +40289,12 @@ function ome(e, t) {
onExitRef: c
});
}
-var Uz = /*#__PURE__*/ (0, F.forwardRef)(ome);
-function sme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = xz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = $se({
+var Hz = /*#__PURE__*/ (0, F.forwardRef)(sme);
+function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = bz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = ece({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Lz), f = t ? cme(d, { isEntering: c }) : d, p = IL({
+ }, i, r), d = (0, F.useContext)(Iz), f = t ? lme(d, { isEntering: c }) : d, p = FL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40302,9 +40302,9 @@ function sme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = rme(), h, g;
+ }), m = ime(), h, g;
if (typeof document < "u") {
- let e = FT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = PT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40314,18 +40314,18 @@ function sme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return VS(() => Ck(() => o(!0)), []), /*#__PURE__*/ F.createElement(AD, {
+ return VS(() => Sk(() => o(!0)), []), /*#__PURE__*/ F.createElement(kD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(HL.div, {
- ...K(Kw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(VL.div, {
+ ...K(Gw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [Hz, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [Vz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40333,11 +40333,11 @@ function sme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Rz, i],
- [Lz, f]
+ [Lz, i],
+ [Iz, f]
] }, p.children)));
}
-function cme(e, t) {
+function lme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40354,8 +40354,8 @@ function cme(e, t) {
...t
};
}
-function Wz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Hz), s = (0, F.useContext)(Rz), c = $C((0, F.useMemo)(() => WC(e.modalRef, n), [e.modalRef, n])), l = xz(c, o, e.onEnter), u = IL({
+function Uz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Vz), s = (0, F.useContext)(Lz), c = QC((0, F.useMemo)(() => UC(e.modalRef, n), [e.modalRef, n])), l = bz(c, o, e.onEnter), u = FL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40366,18 +40366,18 @@ function Wz(e) {
});
return VS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(HL.div, {
- ...K(Kw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(VL.div, {
+ ...K(Gw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(gk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(hk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var lme = Math.round(Math.random() * 1e10), ume = 0;
-function dme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${lme}-${++ume}`, [e.name]), [n, r] = iE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = YT({
+var ume = Math.round(Math.random() * 1e10), dme = 0;
+function fme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${ume}-${++dme}`, [e.name]), [n, r] = rE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = JT({
...e,
value: n
}), c = (t) => {
@@ -40399,16 +40399,16 @@ function dme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var fme = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.createContext)(null), Gz = /*#__PURE__*/ (0, F.createContext)(null), Kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, fme);
- let { validationBehavior: n } = LL(iR) || {}, r = e.validationBehavior ?? n ?? "native", i = dme({
+var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.createContext)(null), Wz = /*#__PURE__*/ (0, F.createContext)(null), Gz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, pme);
+ let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = fme({
...e,
validationBehavior: r
- }), [a, o] = zL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = fce({
+ }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = pce({
...e,
label: o,
validationBehavior: r
- }, i), f = IL({
+ }, i), f = FL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40419,8 +40419,8 @@ var fme = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(HL.div, {
+ }), p = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(VL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40429,39 +40429,39 @@ var fme = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [Gz, i],
- [XL, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [Wz, i],
+ [YL, {
...c,
ref: a,
elementType: "span"
}],
- [nR, { slots: {
+ [tR, { slots: {
description: l,
errorMessage: u
} }],
- [rR, d]
- ] }, /*#__PURE__*/ F.createElement(nz, null, f.children)));
-}), qz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [nR, d]
+ ] }, /*#__PURE__*/ F.createElement(tz, null, f.children)));
+}), Kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = RL(r, t, pme);
- let i = F.useContext(Gz), a = $C((0, F.useMemo)(() => WC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = dce({
- ...BL(e),
+ [e, t] = LL(r, t, mme);
+ let i = F.useContext(Wz), a = QC((0, F.useMemo)(() => UC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = fce({
+ ...zL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Jz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(qz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(mme, {
+ } }, /*#__PURE__*/ F.createElement(hme, {
...e,
ref: t
}));
-}), Jz = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Jz), l = F.useContext(Gz), { isFocused: u, isFocusVisible: d, focusProps: f } = MD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ID({
+}), qz = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(qz), l = F.useContext(Wz), { isFocused: u, isFocusVisible: d, focusProps: f } = jD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = FD({
...e,
isDisabled: p
- }), g = IL({
+ }), g = FL({
...e,
defaultClassName: s,
values: {
@@ -40475,8 +40475,8 @@ var fme = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Kw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(HL.label, {
+ }), _ = Gw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(VL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40488,18 +40488,18 @@ var fme = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function hme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = bz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function gme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = yz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = iE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = rE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40511,12 +40511,12 @@ function hme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = mz({
+ }, d = pz({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => gme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => _me(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40526,7 +40526,7 @@ function hme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = YT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = JT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40553,15 +40553,15 @@ function hme(e) {
setFocused: g
};
}
-function gme(e) {
+function _me(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function _me(e) {
+function vme(e) {
return e && e.__esModule ? e.default : e;
}
-var Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), vme = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, Yz);
+var Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, Jz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40576,24 +40576,24 @@ var Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(lw, { content: o }, (n) => /*#__PURE__*/ F.createElement(bme, {
+ return /*#__PURE__*/ F.createElement(cw, { content: o }, (n) => /*#__PURE__*/ F.createElement(xme, {
props: e,
collection: n,
selectRef: t
}));
-}), yme = [
- XL,
- QL,
- nR
+}), bme = [
+ YL,
+ ZL,
+ tR
];
-function bme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = LL(iR) || {}, i = e.validationBehavior ?? r ?? "native", a = hme({
+function xme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = IL(rR) || {}, i = e.validationBehavior ?? r ?? "native", a = gme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = MD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = zL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Jk({
- ...BL(e),
+ }), { isFocusVisible: o, focusProps: s } = jD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = RL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = qk({
+ ...zL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40610,48 +40610,48 @@ function bme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = IL({
+ ]), b = FL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Kw(e, { global: !0 });
+ }), x = Gw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(FL, { values: [
- [Yz, e],
- [Xz, a],
- [Zz, p],
- [XL, {
+ return /*#__PURE__*/ F.createElement(PL, { values: [
+ [Jz, e],
+ [Yz, a],
+ [Xz, p],
+ [YL, {
...d,
ref: l,
elementType: "span"
}],
- [QL, {
+ [ZL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Rz, a],
- [wz, {
+ [Lz, a],
+ [Cz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: yme
+ clearContexts: bme
}],
- [_z, {
+ [gz, {
...m,
ref: S
}],
- [vz, a],
- [nR, { slots: {
+ [_z, a],
+ [tR, { slots: {
description: h,
errorMessage: g
} }],
- [rR, v]
- ] }, /*#__PURE__*/ F.createElement(HL.div, {
+ [nR, v]
+ ] }, /*#__PURE__*/ F.createElement(VL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40661,14 +40661,14 @@ function bme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(mce, {
+ }, b.children, /*#__PURE__*/ F.createElement(hce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, Zz);
- let n = (0, F.useContext)(Xz), { placeholder: r } = LL(Yz), i = n.selectedItems.map((e) => {
+for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, Xz);
+ let n = (0, F.useContext)(Yz), { placeholder: r } = IL(Jz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40680,7 +40680,7 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Tse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Ese(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40695,7 +40695,7 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
a,
o,
i
- ]), u = Ww(_me(XR), "react-aria-components"), d = IL({
+ ]), u = Uw(vme(YR), "react-aria-components"), d = FL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40706,33 +40706,33 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(HL.span, {
+ }), f = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(VL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(nR.Provider, { value: void 0 }, d.children));
-}), Sme = /*#__PURE__*/ (0, F.createContext)(null), Qz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(tR.Provider, { value: void 0 }, d.children));
+}), Cme = /*#__PURE__*/ (0, F.createContext)(null), Zz = /*#__PURE__*/ (0, F.createContext)(null), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = RL(r, t, Sme);
- let i = $C((0, F.useMemo)(() => WC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = aE(e), o = gce({
- ...BL(e),
+ [e, t] = LL(r, t, Cme);
+ let i = QC((0, F.useMemo)(() => UC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = iE(e), o = _ce({
+ ...zL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(FL, { values: [[Qz, a], [$z, {
+ return /*#__PURE__*/ F.createElement(PL, { values: [[Zz, a], [Qz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(wme, {
+ }]] }, /*#__PURE__*/ F.createElement(Tme, {
...e,
ref: t
}));
-}), $z = /*#__PURE__*/ (0, F.createContext)(null), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)($z), { isFocused: f, isFocusVisible: p, focusProps: m } = MD(), h = a || o, g = (0, F.useContext)(Qz), { hoverProps: _, isHovered: v } = ID({
+}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Qz), { isFocused: f, isFocusVisible: p, focusProps: m } = jD(), h = a || o, g = (0, F.useContext)(Zz), { hoverProps: _, isHovered: v } = FD({
...e,
isDisabled: h
- }), y = IL({
+ }), y = FL({
...e,
defaultClassName: u,
values: {
@@ -40747,8 +40747,8 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
isRequired: d || !1,
state: g
}
- }), b = Kw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(HL.label, {
+ }), b = Gw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40761,11 +40761,11 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(pE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), eB = 10, tB = 5, nB = class {
+}), $z = 10, eB = 5, tB = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40775,7 +40775,7 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > tB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > eB && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > eB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > $z && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40854,11 +40854,11 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > tB && i) {
+ if (Math.abs(r - c.lastSwitchY) > eB && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > eB && a) {
+ if (l > $z && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -40873,7 +40873,7 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
boundaryContext: null
};
}
-}, Tme = class {
+}, Eme = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -40943,8 +40943,8 @@ for (var Zz = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ iw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, rB = "row-header-column-" + Math.random().toString(36).slice(2), iB = "row-header-column-" + Math.random().toString(36).slice(2); rB === iB;) iB = "row-header-column-" + Math.random().toString(36).slice(2);
-function aB(e, t) {
+}, nB = "row-header-column-" + Math.random().toString(36).slice(2), rB = "row-header-column-" + Math.random().toString(36).slice(2); nB === rB;) rB = "row-header-column-" + Math.random().toString(36).slice(2);
+function iB(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41028,13 +41028,13 @@ function aB(e, t) {
textValue: ""
}));
}
-var Eme = class extends Tme {
+var Dme = class extends Eme {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: rB,
+ key: nB,
value: null,
textValue: "",
level: 0,
@@ -41049,7 +41049,7 @@ var Eme = class extends Tme {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: iB,
+ key: rB,
value: null,
textValue: "",
level: 0,
@@ -41076,7 +41076,7 @@ var Eme = class extends Tme {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = aB(s, a);
+ let l = iB(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41102,10 +41102,10 @@ var Eme = class extends Tme {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return _D(this.body.childNodes)?.key ?? null;
+ return gD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return yD(this.body.childNodes)?.key ?? null;
+ return vD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41136,15 +41136,15 @@ var Eme = class extends Tme {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function Dme(e) {
+function Ome(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function Ome(e) {
+function kme(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function oB(e, t) {
+function aB(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41152,19 +41152,19 @@ function oB(e, t) {
}
return e;
}
-function sB(e, t) {
- return e == null ? 2 ** 53 - 1 : oB(e, t);
+function oB(e, t) {
+ return e == null ? 2 ** 53 - 1 : aB(e, t);
}
-function cB(e, t) {
- return e == null ? 0 : oB(e, t);
+function sB(e, t) {
+ return e == null ? 0 : aB(e, t);
}
-function kme(e, t, n, r, i) {
+function Ame(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- Dme(o) ? (l = oB(o, e), s = !0) : (u = Ome(o), u <= 0 && (s = !0));
- let f = cB(t.minWidth ?? i?.(a) ?? 0, e), p = sB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Ome(o) ? (l = aB(o, e), s = !0) : (u = kme(o), u <= 0 && (s = !0));
+ let f = sB(t.minWidth ?? i?.(a) ?? 0, e), p = oB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41198,14 +41198,14 @@ function kme(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = Ame(l);
+ let u = jme(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function Ame(e) {
+function jme(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41213,7 +41213,7 @@ function Ame(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var jme = class {
+var Mme = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41242,18 +41242,18 @@ var jme = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), kme(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ame(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, cB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, sB(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, sB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, oB(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function Mme(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new jme({
+function Nme(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Mme({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41304,19 +41304,19 @@ function Mme(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Nme(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || cz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Pme(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = gD(n, t);
- e = r === "last" ? yD(i)?.key ?? null : _D(i)?.key ?? null;
+ let i = hD(n, t);
+ e = r === "last" ? vD(i)?.key ?? null : gD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new uz(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new lz(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41336,7 +41336,7 @@ function Nme(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...gD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...hD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41354,11 +41354,11 @@ function Nme(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var Pme = {
+var Fme = {
ascending: "descending",
descending: "ascending"
};
-function Fme(e) {
+function Ime(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41369,11 +41369,11 @@ function Fme(e) {
i,
r,
a
- ]), c = pz(e, (0, F.useCallback)((e) => new Eme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Nme({
+ ]), c = fz(e, (0, F.useCallback)((e) => new Dme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Pme({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41385,7 +41385,7 @@ function Fme(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Pme[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Fme[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41398,7 +41398,7 @@ function Fme(e) {
treeColumn: o
};
}
-function Ime(e, t) {
+function Lme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41407,10 +41407,10 @@ function Ime(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function Lme(e) {
+function Rme(e) {
return e && e.__esModule ? e.default : e;
}
-var Rme = class extends yS {
+var zme = class extends yS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41425,7 +41425,7 @@ var Rme = class extends yS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new _B(-2);
+ return new gB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41451,7 +41451,7 @@ var Rme = class extends yS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = aB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = iB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41532,15 +41532,15 @@ var Rme = class extends yS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new pB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new fB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, lB = /*#__PURE__*/ (0, F.createContext)(null), zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = $C(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+}, cB = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = QC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
VS(() => {
let e = r.current;
- for (; e && e !== n.current && !FT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !PT(e);) e = e.parentElement;
i.current = e;
- }, [n]), PO({
+ }, [n]), NO({
ref: i,
box: "border-box",
onResize() {
@@ -41553,7 +41553,7 @@ var Rme = class extends yS {
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Mme,
+ useTableColumnResizeState: Nme,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41564,17 +41564,17 @@ var Rme = class extends yS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(VL.div, {
render: e.render,
- ...Kw(e, { global: !0 }),
+ ...Gw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(lB.Provider, { value: s }, e.children));
-}), Bme = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, Bme);
- let n = cz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(cB.Provider, { value: s }, e.children));
+}), Vme = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, Vme);
+ let n = sz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41584,26 +41584,26 @@ var Rme = class extends yS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Wme.Provider, { value: s }, /*#__PURE__*/ F.createElement(gw, e));
- return /*#__PURE__*/ F.createElement(lw, {
+ ]), c = /*#__PURE__*/ F.createElement(Gme.Provider, { value: s }, /*#__PURE__*/ F.createElement(hw, e));
+ return /*#__PURE__*/ F.createElement(cw, {
content: c,
- createCollection: () => new Rme()
- }, (r) => /*#__PURE__*/ F.createElement(Ume, {
+ createCollection: () => new zme()
+ }, (r) => /*#__PURE__*/ F.createElement(Wme, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}), Ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.table, {
+ }) : /*#__PURE__*/ F.createElement(VL.table, {
...e,
ref: t
});
-}), fB = {
+}), dB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41613,26 +41613,26 @@ var Rme = class extends yS {
rtl: "ArrowRight"
}
};
-function Ume({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = RL(e, t, UL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(lB);
- t = $C((0, F.useMemo)(() => WC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = LL(e, t, HL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(cB);
+ t = QC((0, F.useMemo)(() => UC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = rE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Fme({
+ let d = Ime({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Ime(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(JL), { dragAndDropHooks: _ } = e, { gridProps: v } = xce({
+ }), f = Lme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(qL), { dragAndDropHooks: _ } = e, { gridProps: v } = Sce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Rw(), [k] = (0, F.useState)(() => new nB());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Lw(), [k] = (0, F.useState)(() => new tB());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41647,7 +41647,7 @@ function Ume({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new DE({
+ let e = new EE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41667,12 +41667,12 @@ function Ume({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === fB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === fB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === dB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === dB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = MD(), ee = IL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = jD(), ee = FL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41688,19 +41688,19 @@ function Ume({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(FL, { values: [
- [uB, f],
- [dB, P],
- [ZR, {
+ let ne = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(PL, { values: [
+ [lB, f],
+ [uB, P],
+ [XR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [QR, { render: ehe }],
- [UL, null],
- [WL, null]
- ] }, /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(Hme, {
+ [ZR, { render: the }],
+ [HL, null],
+ [UL, null]
+ ] }, /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(Ume, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41710,55 +41710,55 @@ function Ume({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(nz, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: ez(y, _, C)
+ persistedKeys: $R(y, _, C)
})))), E);
}
-var Wme = /*#__PURE__*/ (0, F.createContext)(null), pB = class extends hS {
+var Gme = /*#__PURE__*/ (0, F.createContext)(null), fB = class extends hS {
static {
this.type = "tableheader";
}
-}, Gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}, Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.thead, {
+ }) : /*#__PURE__*/ F.createElement(VL.thead, {
...e,
ref: t
});
-}), mB = /*#__PURE__*/ pw(pB, (e, t) => {
- let n = (0, F.useContext)(uB).collection, r = CS({
+}), pB = /*#__PURE__*/ fw(fB, (e, t) => {
+ let n = (0, F.useContext)(lB).collection, r = CS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(qme, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Jme, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = VA(), { hoverProps: a, isHovered: o } = ID({
+ }), { rowGroupProps: i } = BA(), { hoverProps: a, isHovered: o } = FD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = IL({
+ }), s = FL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(Gme, {
- ...K(Kw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(Kme, {
+ ...K(Gw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(gw, {
+}, (e) => /*#__PURE__*/ F.createElement(hw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
+}, e.children)), qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41767,41 +41767,41 @@ var Wme = /*#__PURE__*/ (0, F.createContext)(null), pB = class extends hS {
ref: t
});
});
-function qme({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(uB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(JL), { rowProps: a } = Dce({
+function Jme({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(lB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(qL), { rowProps: a } = Oce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Pce(n);
- return /*#__PURE__*/ F.createElement(Kme, {
+ }, n, t), { checkboxProps: o } = Fce(n);
+ return /*#__PURE__*/ F.createElement(qme, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(FL, { values: [[aR, { slots: { selection: o } }], [oR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [[iR, { slots: { selection: o } }], [aR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Jme = class extends hS {
+var Yme = class extends hS {
static {
this.type = "column";
}
-}, Yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}, Xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.th, {
+ }) : /*#__PURE__*/ F.createElement(VL.th, {
...e,
ref: t
});
-}), hB = /*#__PURE__*/ fw(Jme, (e, t, n) => {
- let r = $C(t), i = (0, F.useContext)(uB), { isVirtualized: a } = (0, F.useContext)(JL), { columnHeaderProps: o, isPressed: s } = wce({
+}), mB = /*#__PURE__*/ dw(Yme, (e, t, n) => {
+ let r = QC(t), i = (0, F.useContext)(lB), { isVirtualized: a } = (0, F.useContext)(qL), { columnHeaderProps: o, isPressed: s } = Tce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = MD(), d = (0, F.useContext)(dB), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = jD(), d = (0, F.useContext)(uB), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = ID({ isDisabled: !e.allowsSorting }), h = IL({
+ let { hoverProps: p, isHovered: m } = FD({ isDisabled: !e.allowsSorting }), h = FL({
...e,
id: void 0,
children: n.rendered,
@@ -41827,8 +41827,8 @@ var Jme = class extends hS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Kw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Yme, {
+ let _ = Gw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Xme, {
...K(_, o, u, p),
...h,
style: g,
@@ -41840,29 +41840,29 @@ var Jme = class extends hS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [[gB, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [[hB, {
column: n,
triggerRef: r
- }], [JL, KL]] }, h.children));
-}), gB = /*#__PURE__*/ (0, F.createContext)(null), Xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(dB);
+ }], [qL, GL]] }, h.children));
+}), hB = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(uB);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Ww(Lme(XR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(lB), { column: s, triggerRef: c } = (0, F.useContext)(gB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Ece({
+ let r = Uw(Rme(YR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(cB), { column: s, triggerRef: c } = (0, F.useContext)(hB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Dce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = MD(), { hoverProps: _, isHovered: v } = ID(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Rw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = jD(), { hoverProps: _, isHovered: v } = FD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Lw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = $C(t), [w, T] = (0, F.useState)("");
+ let C = QC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = IL({
+ let E = FL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41872,8 +41872,8 @@ var Jme = class extends hS {
isHovered: v,
resizableDirection: S
}
- }), D = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(HL.div, {
+ }), D = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(VL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -41896,24 +41896,24 @@ var Jme = class extends hS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), _B = class extends gS {
+}), gB = class extends gS {
static {
this.type = "tablebody";
}
-}, Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}, Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(VL.tbody, {
...e,
ref: t
});
-}), vB = /*#__PURE__*/ pw(_B, (e, t, n) => {
- let r = (0, F.useContext)(uB), { isVirtualized: i } = (0, F.useContext)(JL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(JL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(ZR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), _B = /*#__PURE__*/ fw(gB, (e, t, n) => {
+ let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(qL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(XR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = IL({
+ }, p = FL({
...e,
id: void 0,
children: void 0,
@@ -41922,25 +41922,25 @@ var Jme = class extends hS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(bB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(yB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(SB, {
+ }, /*#__PURE__*/ F.createElement(xB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = VA(), _ = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Zme, {
+ let { rowGroupProps: g } = BA(), _ = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(Qme, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(ahe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(ohe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: $R(s, c)
+ renderDropIndicator: QR(s, c)
}), m);
});
(class extends gS {
@@ -41948,7 +41948,7 @@ var Jme = class extends hS {
this.type = "tablefooter";
}
});
-var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qme = class extends hS {
+var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $me = class extends hS {
static {
this.type = "item";
}
@@ -41960,31 +41960,31 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
}
return null;
}
-}, bB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}, yB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.tr, {
+ }) : /*#__PURE__*/ F.createElement(VL.tr, {
...e,
ref: t
});
-}), xB = /*#__PURE__*/ pw(Qme, (e, t, n) => {
- let r = $C(t), i = (0, F.useContext)(uB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(ZR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(JL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ace({
+}), bB = /*#__PURE__*/ fw($me, (e, t, n) => {
+ let r = QC(t), i = (0, F.useContext)(lB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(qL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = jce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = MD(), { isFocusVisible: _, focusProps: v } = MD({ within: !0 }), { hoverProps: y, isHovered: b } = ID({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = jD(), { isFocusVisible: _, focusProps: v } = jD({ within: !0 }), { hoverProps: y, isHovered: b } = FD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Nce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Pce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = pE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = fE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -41994,7 +41994,7 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = IL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = FL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42015,11 +42015,11 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
isExpanded: j,
level: n.level + 1
}
- }), ee = Kw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(bB, {
+ }), ee = Gw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(yB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(SB, {
+ }, /*#__PURE__*/ F.createElement(xB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42028,7 +42028,7 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(bB, {
+ }))), /*#__PURE__*/ F.createElement(yB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42044,17 +42044,17 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [aR, { slots: {
- [PL]: {},
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [iR, { slots: {
+ [NL]: {},
selection: x
} }],
- [oR, { slots: {
- [PL]: {},
+ [aR, { slots: {
+ [NL]: {},
selection: x
} }],
- [QL, { slots: {
- [PL]: {},
+ [ZL, { slots: {
+ [NL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42062,8 +42062,8 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
style: { pointerEvents: "none" }
}
} }],
- [rz, { isSelected: p.isSelected }],
- [yB, { isFocusVisibleWithinRow: _ }]
+ [nz, { isSelected: p.isSelected }],
+ [vB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42071,34 +42071,34 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(gw, {
+ return /*#__PURE__*/ F.createElement(hw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), $me = class extends hS {
+}), ehe = class extends hS {
static {
this.type = "cell";
}
-}, SB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}, xB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.td, {
+ }) : /*#__PURE__*/ F.createElement(VL.td, {
...e,
ref: t
});
-}), CB = /*#__PURE__*/ fw($me, (e, t, n) => {
- let r = $C(t), i = (0, F.useContext)(uB), { dragState: a } = (0, F.useContext)(ZR), { isVirtualized: o } = (0, F.useContext)(JL);
+}), SB = /*#__PURE__*/ dw(ehe, (e, t, n) => {
+ let r = QC(t), i = (0, F.useContext)(lB), { dragState: a } = (0, F.useContext)(XR), { isVirtualized: o } = (0, F.useContext)(qL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Sce({
+ let { gridCellProps: s, isPressed: c } = Cce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = MD(), { hoverProps: f, isHovered: p } = ID({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(yB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = IL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = jD(), { hoverProps: f, isHovered: p } = FD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(vB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = FL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42117,8 +42117,8 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Kw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(SB, {
+ }), S = Gw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(xB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42132,14 +42132,14 @@ var yB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Qm
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(JL.Provider, { value: KL }, x.children));
+ }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, x.children));
});
-function ehe(e, t) {
- t = $C(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(ZR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function the(e, t) {
+ t = QC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(ihe, {
+ return /*#__PURE__*/ F.createElement(ahe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42148,40 +42148,40 @@ function ehe(e, t) {
ref: t
});
}
-var the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+var nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.tr, {
+ }) : /*#__PURE__*/ F.createElement(VL.tr, {
...e,
ref: t
});
-}), nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(JL);
- return n ? /*#__PURE__*/ F.createElement(HL.div, {
+}), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(qL);
+ return n ? /*#__PURE__*/ F.createElement(VL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(HL.td, {
+ }) : /*#__PURE__*/ F.createElement(VL.td, {
...e,
ref: t
});
});
-function rhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(uB), { visuallyHiddenProps: c } = pE(), l = IL({
+function ihe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(lB), { visuallyHiddenProps: c } = fE(), l = FL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(the, {
- ...Kw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(nhe, {
+ ...Gw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(nhe, {
+ }, /*#__PURE__*/ F.createElement(rhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42192,14 +42192,14 @@ function rhe(e, t) {
ref: i
}), l.children));
}
-var ihe = /*#__PURE__*/ (0, F.forwardRef)(rhe);
-function ahe() {
- let e = (0, F.useContext)(uB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(ZR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = pE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(bB, {
+var ahe = /*#__PURE__*/ (0, F.forwardRef)(ihe);
+function ohe() {
+ let e = (0, F.useContext)(lB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(XR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = fE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(yB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(SB, {
+ }, /*#__PURE__*/ F.createElement(xB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42210,9 +42210,9 @@ function ahe() {
ref: r
})));
}
-fw(_S, function(e, t, n) {
- let r = (0, F.useContext)(uB), { isVirtualized: i } = (0, F.useContext)(JL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- gz((0, F.useMemo)(() => ({
+dw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ hz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42222,7 +42222,7 @@ fw(_S, function(e, t, n) {
s,
r?.collection
]), u);
- let d = IL({
+ let d = FL({
...c,
id: void 0,
children: n.rendered,
@@ -42230,10 +42230,10 @@ fw(_S, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(bB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(yB, {
style: { height: 0 },
- inert: az(!0)
- }, /*#__PURE__*/ F.createElement(SB, { style: {
+ inert: iz(!0)
+ }, /*#__PURE__*/ F.createElement(xB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42244,22 +42244,22 @@ fw(_S, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(bB, {
- ...K(Kw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(yB, {
+ ...K(Gw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(SB, {
+ }, /*#__PURE__*/ F.createElement(xB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function ohe(e) {
- let [t, n] = iE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = mz({
+function she(e) {
+ let [t, n] = rE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = pz({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42281,24 +42281,24 @@ function ohe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function she(e) {
- let t = ohe({
+function che(e) {
+ let t = she({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? wB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? CB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = wB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = CB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function wB(e, t) {
+function CB(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42307,24 +42307,24 @@ function wB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var TB = /*#__PURE__*/ (0, F.createContext)(null), EB = /*#__PURE__*/ (0, F.createContext)(null), che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, TB);
+var wB = /*#__PURE__*/ (0, F.createContext)(null), TB = /*#__PURE__*/ (0, F.createContext)(null), lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, wB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(lw, { content: n }, (n) => /*#__PURE__*/ F.createElement(lhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(cw, { content: n }, (n) => /*#__PURE__*/ F.createElement(uhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function lhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = she({
+function uhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = che({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = MD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = jD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42332,12 +42332,12 @@ function lhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = IL({
+ ]), l = FL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(HL.div, {
+ }), u = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(VL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42345,20 +42345,20 @@ function lhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [[TB, e], [EB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, e], [TB, i]] }, l.children));
}
-var DB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(EB) ? /*#__PURE__*/ F.createElement(uhe, {
+var EB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(TB) ? /*#__PURE__*/ F.createElement(dhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(gw, e);
+ }) : /*#__PURE__*/ F.createElement(hw, e);
});
-function uhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(EB), { CollectionRoot: r } = (0, F.useContext)(JL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = LL(TB), o = $C(t), { tabListProps: s } = Lce({
+function dhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(TB), { CollectionRoot: r } = (0, F.useContext)(qL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = IL(wB), o = QC(t), { tabListProps: s } = Rce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = IL({
+ }, n, o), c = FL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42366,30 +42366,30 @@ function uhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Kw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(HL.div, {
+ }), l = Gw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(VL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(nz, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: YL(n.selectionManager.focusedKey)
+ persistedKeys: JL(n.selectionManager.focusedKey)
})));
}
-var dhe = /*#__PURE__*/ fw(class extends hS {
+var fhe = /*#__PURE__*/ dw(class extends hS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(EB), i = $C(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Fce({
+ let r = (0, F.useContext)(TB), i = QC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ice({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = MD(), { hoverProps: f, isHovered: p } = ID({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = jD(), { hoverProps: f, isHovered: p } = FD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = IL({
+ }), m = FL({
...e,
id: void 0,
children: n.rendered,
@@ -42402,7 +42402,7 @@ var dhe = /*#__PURE__*/ fw(class extends hS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? HL.a : HL.div, g = Kw(e, { global: !0 });
+ }), h = n.props.href ? VL.a : VL.div, g = Gw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42412,54 +42412,54 @@ var dhe = /*#__PURE__*/ fw(class extends hS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(rz.Provider, { value: { isSelected: o } }, m.children));
-}), fhe = /*#__PURE__*/ iw(function(e, t) {
- let n = (0, F.useContext)(EB), r = $C(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(nz.Provider, { value: { isSelected: o } }, m.children));
+}), phe = /*#__PURE__*/ rw(function(e, t) {
+ let n = (0, F.useContext)(TB), r = QC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = Sz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(phe, {
+ let s = xz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(mhe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function phe(e) {
- let t = (0, F.useContext)(EB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Rce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = MD(), d = t.selectedKey === e.id, f = xz(r) && !i, p = IL({
+function mhe(e) {
+ let t = (0, F.useContext)(TB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = jD(), d = t.selectedKey === e.id, f = bz(r) && !i, p = FL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: az(!d),
+ isInert: iz(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Kw(o, { global: !0 });
+ }), m = Gw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(VL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: az(!d || e.inert),
+ inert: iz(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [[TB, null], [EB, null]] }, /*#__PURE__*/ F.createElement(JL.Provider, { value: KL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, null], [TB, null]] }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
+var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, hhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = RL(e, t, OB);
- let { hoverProps: n, isHovered: r } = ID(e), { isFocused: i, isFocusVisible: a, focusProps: o } = MD({
+}, ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = LL(e, t, DB);
+ let { hoverProps: n, isHovered: r } = FD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = jD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = IL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
...e,
values: {
isHovered: r,
@@ -42470,8 +42470,8 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(HL.textarea, {
- ...K(mhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(VL.textarea, {
+ ...K(hhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42480,18 +42480,18 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), ghe = /*#__PURE__*/ (0, F.createContext)(null), _he = /*#__PURE__*/ iw(function(e, t) {
- [e, t] = RL(e, t, ghe);
- let { validationBehavior: n } = LL(iR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = RL(e, i, WL);
- let [a, o] = zL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = sse({
- ...BL(e),
+}), _he = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ rw(function(e, t) {
+ [e, t] = LL(e, t, _he);
+ let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = LL(e, i, UL);
+ let [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = cse({
+ ...zL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = IL({
+ }, [i]), h = FL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42500,8 +42500,8 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Kw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(HL.div, {
+ }), g = Gw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(VL.div, {
...g,
...h,
ref: t,
@@ -42510,31 +42510,31 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [XL, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [YL, {
...l,
ref: a
}],
- [uR, {
+ [lR, {
...u,
ref: m
}],
- [OB, {
+ [DB, {
...u,
ref: m
}],
- [cR, {
+ [sR, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [nR, { slots: {
+ [tR, { slots: {
description: d,
errorMessage: f
} }],
- [rR, p]
+ [nR, p]
] }, h.children));
-}), vhe = class e extends yS {
+}), yhe = class e extends yS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42606,16 +42606,16 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, yhe = /*#__PURE__*/ (0, F.createContext)(null), kB = /*#__PURE__*/ (0, F.createContext)(null), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = RL(e, t, yhe), /*#__PURE__*/ F.createElement(lw, {
- content: /*#__PURE__*/ F.createElement(gw, e),
- createCollection: () => new vhe()
- }, (n) => /*#__PURE__*/ F.createElement(xhe, {
+}, bhe = /*#__PURE__*/ (0, F.createContext)(null), OB = /*#__PURE__*/ (0, F.createContext)(null), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = LL(e, t, bhe), /*#__PURE__*/ F.createElement(cw, {
+ content: /*#__PURE__*/ F.createElement(hw, e),
+ createCollection: () => new yhe()
+ }, (n) => /*#__PURE__*/ F.createElement(She, {
props: e,
collection: n,
treeRef: t
}));
-}), AB = {
+}), kB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42625,17 +42625,17 @@ var OB = /*#__PURE__*/ (0, F.createContext)({}), mhe = (e) => {
rtl: "ArrowRight"
}
};
-function xhe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Rw(), a = TD({
+function She({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Lw(), a = wD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(JL), [y, b] = iE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- Ohe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = Oz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(qL), [y, b] = rE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ khe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = Dz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42643,7 +42643,7 @@ function xhe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = zce({
+ }), { gridProps: O } = Bce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42657,7 +42657,7 @@ function xhe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new nB());
+ let [te] = (0, F.useState)(() => new tB());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42665,7 +42665,7 @@ function xhe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new DE({
+ let t = new EE({
collection: D.collection,
collator: a,
ref: n,
@@ -42687,12 +42687,12 @@ function xhe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === AB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === AB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === kB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === kB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = MD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = jD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42700,7 +42700,7 @@ function xhe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = IL({
+ }, ae = FL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42717,8 +42717,8 @@ function xhe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Kw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(HL.div, {
+ let se = Gw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(hT, null, /*#__PURE__*/ F.createElement(VL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42728,54 +42728,54 @@ function xhe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [kB, D],
- [ZR, {
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [OB, D],
+ [XR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [QR, { render: whe }]
- ] }, s && /*#__PURE__*/ F.createElement(Dhe, null), /*#__PURE__*/ F.createElement(nz, null, /*#__PURE__*/ F.createElement(h, {
+ [ZR, { render: The }]
+ ] }, s && /*#__PURE__*/ F.createElement(Ohe, null), /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: ez(D.selectionManager, r, A),
+ persistedKeys: $R(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: $R(r, A)
+ renderDropIndicator: QR(r, A)
}))), oe)), ee);
}
-var She = /*#__PURE__*/ fw(class extends hS {
+var Che = /*#__PURE__*/ dw(class extends hS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(jB), n = IL({
+ let t = (0, F.useContext)(AB), n = FL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(JL.Provider, { value: KL }, n.children);
-}), jB = /*#__PURE__*/ (0, F.createContext)(null), Che = /*#__PURE__*/ pw(class extends hS {
+ return /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, n.children);
+}), AB = /*#__PURE__*/ (0, F.createContext)(null), whe = /*#__PURE__*/ fw(class extends hS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(kB);
- t = $C(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(ZR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Tj({
+ let r = (0, F.useContext)(OB);
+ t = QC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(XR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = wj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = ID({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = FD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = MD(), { isFocusVisible: b, focusProps: x } = MD({ within: !0 }), { checkboxProps: S } = Ise({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = jD(), { isFocusVisible: b, focusProps: x } = jD({ within: !0 }), { checkboxProps: S } = Lse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = pE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = fE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42814,7 +42814,7 @@ var She = /*#__PURE__*/ fw(class extends hS {
A,
M,
j
- ]), N = IL({
+ ]), N = FL({
...e,
id: void 0,
children: n.rendered,
@@ -42841,7 +42841,7 @@ var She = /*#__PURE__*/ fw(class extends hS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = HC(), re = Kw(e, { global: !0 });
+ }), ne = VC(), re = Gw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42864,7 +42864,7 @@ var She = /*#__PURE__*/ fw(class extends hS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(HL.div, {
+ }))), /*#__PURE__*/ F.createElement(VL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -42884,17 +42884,17 @@ var She = /*#__PURE__*/ fw(class extends hS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(FL, { values: [
- [aR, { slots: {
- [PL]: {},
+ }, /*#__PURE__*/ F.createElement(PL, { values: [
+ [iR, { slots: {
+ [NL]: {},
selection: S
} }],
- [oR, { slots: {
- [PL]: {},
+ [aR, { slots: {
+ [NL]: {},
selection: S
} }],
- [QL, { slots: {
- [PL]: {},
+ [ZL, { slots: {
+ [NL]: {},
chevron: {
...u,
ref: T
@@ -42905,13 +42905,13 @@ var She = /*#__PURE__*/ fw(class extends hS {
style: { pointerEvents: "none" }
}
} }],
- [jB, { ...ee }],
- [rz, { isSelected: f.isSelected }]
+ [AB, { ...ee }],
+ [nz, { isSelected: f.isSelected }]
] }, P))));
});
-fw(_S, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(JL), i = (0, F.useContext)(kB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- gz((0, F.useMemo)(() => ({
+dw(_S, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(qL), i = (0, F.useContext)(OB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ hz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -42920,11 +42920,11 @@ fw(_S, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = $C(t);
- let { rowProps: u, gridCellProps: d } = Tj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = QC(t);
+ let { rowProps: u, gridCellProps: d } = wj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = IL({
+ }, m = FL({
...c,
id: void 0,
children: n.rendered,
@@ -42937,7 +42937,7 @@ fw(_S, function(e, t, n) {
width: 0,
height: 0
},
- inert: az(!0)
+ inert: iz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -42946,9 +42946,9 @@ fw(_S, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(HL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(VL.div, {
ref: t,
- ...K(Kw(e), p),
+ ...K(Gw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -42956,12 +42956,12 @@ fw(_S, function(e, t, n) {
style: h
}, m.children)));
});
-function whe(e, t) {
- t = $C(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(ZR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function The(e, t) {
+ t = QC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Ehe, {
+ return /*#__PURE__*/ F.createElement(Dhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42970,8 +42970,8 @@ function whe(e, t) {
level: c
});
}
-function The(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = pE(), c = IL({
+function Ehe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = fE(), c = FL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -42980,7 +42980,7 @@ function The(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(HL.div, {
+ return /*#__PURE__*/ F.createElement(VL.div, {
...c,
role: "row",
"aria-level": a,
@@ -42993,9 +42993,9 @@ function The(e, t) {
ref: i
}), c.children));
}
-var Ehe = /*#__PURE__*/ (0, F.forwardRef)(The);
-function Dhe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(ZR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = pE();
+var Dhe = /*#__PURE__*/ (0, F.forwardRef)(Ehe);
+function Ohe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(XR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = fE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43007,13 +43007,13 @@ function Dhe() {
ref: n
})));
}
-function Ohe(e, t) {
+function khe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43021,7 +43021,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43029,7 +43029,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43037,7 +43037,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43045,7 +43045,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43053,7 +43053,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43061,7 +43061,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43069,7 +43069,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43077,7 +43077,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43085,7 +43085,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43093,7 +43093,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43101,7 +43101,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43109,7 +43109,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43117,7 +43117,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43125,7 +43125,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), Rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43133,7 +43133,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43141,7 +43141,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43149,7 +43149,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43157,7 +43157,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43165,7 +43165,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), Bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), Vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43173,7 +43173,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43181,7 +43181,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43189,7 +43189,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43197,7 +43197,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43205,7 +43205,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43213,7 +43213,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43221,7 +43221,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43229,7 +43229,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Whe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43237,7 +43237,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43245,7 +43245,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43253,7 +43253,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43261,7 +43261,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43269,7 +43269,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43277,7 +43277,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43285,7 +43285,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43293,7 +43293,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43301,7 +43301,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43309,7 +43309,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43317,7 +43317,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43325,7 +43325,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43333,7 +43333,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43341,7 +43341,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43349,7 +43349,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43357,7 +43357,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43365,7 +43365,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43373,7 +43373,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43381,7 +43381,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43389,7 +43389,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43397,7 +43397,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43405,7 +43405,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43413,7 +43413,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43421,7 +43421,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43429,7 +43429,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43437,7 +43437,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43445,7 +43445,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), tV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43453,7 +43453,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), nV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), tV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43461,7 +43461,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43469,7 +43469,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), rV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), nV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43477,7 +43477,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43485,7 +43485,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43493,7 +43493,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), iV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), rV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43501,7 +43501,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), aV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), iV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43509,7 +43509,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), oV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), aV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43517,7 +43517,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43525,7 +43525,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), sV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), oV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43533,7 +43533,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43541,7 +43541,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), cV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), sV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43549,7 +43549,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43557,7 +43557,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43565,7 +43565,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43573,7 +43573,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43581,7 +43581,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), lV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), cV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43589,7 +43589,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43597,7 +43597,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), uV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), lV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43605,7 +43605,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), dV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), uV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43613,7 +43613,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), fV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), dV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43621,7 +43621,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43629,7 +43629,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), pV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), fV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43637,7 +43637,7 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43647,8 +43647,8 @@ var khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "remixicon " + (n || "")
}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));
// src/react/boardui/components/base/input/label.tsx
-function mV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(ZL, {
+function pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(XL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43659,7 +43659,7 @@ function mV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(ege, {
+ n && /* @__PURE__ */ (0, I.jsx)(tge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43667,23 +43667,23 @@ function mV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function hV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(_pe, {
+function mV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(vpe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var gV = (0, F.createContext)({});
-function _V({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(gV.Provider, {
+var hV = (0, F.createContext)({});
+function gV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(hV.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(_he, {
+ children: /* @__PURE__ */ (0, I.jsx)(vhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43691,8 +43691,8 @@ function _V({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-_V.displayName = "TextField";
-var vV = JI({
+gV.displayName = "TextField";
+var _V = qI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43707,44 +43707,44 @@ var vV = JI({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function yV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(gV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(lR, {
+function vV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(hV), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(cR, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(vV.field, d ? vV.fieldWithAddonSize[u] : vV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(_V.field, d ? _V.fieldWithAddonSize[u] : _V.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: vV.content,
+ className: _V.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: vV.leftSection,
+ className: _V.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: vV.icon,
+ className: _V.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(Cpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(wpe, {
ref: o,
...c,
- className: q(vV.input, l.inputClassName, a)
+ className: q(_V.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: vV.icon,
+ className: _V.icon,
"aria-hidden": !0
}) : null]
})
});
}
-yV.displayName = "InputBase";
-function bV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, I.jsx)(_V, {
+vV.displayName = "InputBase";
+function yV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(gV, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(mV, {
+ e && /* @__PURE__ */ (0, I.jsx)(pV, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(yV, {
+ /* @__PURE__ */ (0, I.jsx)(vV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43753,25 +43753,25 @@ function bV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(hV, {
+ t && /* @__PURE__ */ (0, I.jsx)(mV, {
isInvalid: d,
children: t
})
] })
});
}
-bV.displayName = "Input";
+yV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var vge = {
+var yge = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl",
tutorial: "max-w-2xl"
};
-function xV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = kC();
- return /* @__PURE__ */ (0, I.jsx)(Uz, {
+function bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = OC();
+ return /* @__PURE__ */ (0, I.jsx)(Hz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43779,11 +43779,11 @@ function xV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(ame, {
+ children: /* @__PURE__ */ (0, I.jsx)(ome, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", vge[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(zz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", yge[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Rz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43791,7 +43791,7 @@ function xV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function SV({ children: e }) {
+function xV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -43799,7 +43799,7 @@ function SV({ children: e }) {
});
}
// src/react/components/note.tsx
-function CV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function SV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -43847,11 +43847,11 @@ function CV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var yge = {
+var bge = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function bge({ target: e, children: t }) {
+function xge({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -43859,11 +43859,11 @@ function bge({ target: e, children: t }) {
children: t
});
}
-function wV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function CV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${yge[i]}`,
+ className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${bge[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -43889,9 +43889,9 @@ function wV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var TV = /* @__PURE__ */ new Map();
-function EV(e) {
- let t = TV.get(e);
+var wV = /* @__PURE__ */ new Map();
+function TV(e) {
+ let t = wV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Sn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -43907,10 +43907,10 @@ function EV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, TV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, wV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function DV({ label: e, id: t, onPress: n }) {
+function EV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -43925,60 +43925,60 @@ function DV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function OV(e) {
+function DV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var kV = ["library-shortcuts"], AV = "/api/library-shortcuts";
-function jV(e = !0) {
+var OV = ["library-shortcuts"], kV = "/api/library-shortcuts";
+function AV(e = !0) {
return Pt({
- queryKey: kV,
- queryFn: ({ signal: e }) => B(AV, e),
+ queryKey: OV,
+ queryFn: ({ signal: e }) => B(kV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function MV() {
+function jV() {
return Ft({
- mutationKey: kV,
- mutationFn: (e) => V(AV, e),
+ mutationKey: OV,
+ mutationFn: (e) => V(kV, e),
onSuccess: (e, t) => {
- H.setQueryData(kV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(OV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function NV(e, t) {
+function MV(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function xge(e) {
+function Sge(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Nn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var PV = EV("star"), Sge = EV("bookmark-plus"), FV = EV("chevron-right"), IV = {
+var NV = TV("star"), Cge = TV("bookmark-plus"), PV = TV("chevron-right"), FV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, LV = {
- all: EV("star"),
- performer: EV("user-round"),
- creator: EV("user-round"),
- studio: EV("clapperboard"),
- series: EV("film"),
- agency: EV("briefcase"),
- tag: EV("tags"),
- filters: EV("list-filter")
-}, RV = [
+}, IV = {
+ all: TV("star"),
+ performer: TV("user-round"),
+ creator: TV("user-round"),
+ studio: TV("clapperboard"),
+ series: TV("film"),
+ agency: TV("briefcase"),
+ tag: TV("tags"),
+ filters: TV("list-filter")
+}, LV = [
["all", "全部"],
- ...Object.entries(IV),
+ ...Object.entries(FV),
["filters", "保存的筛选"]
];
-function zV({ label: e, children: t, ...n }) {
+function RV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -43988,20 +43988,20 @@ function zV({ label: e, children: t, ...n }) {
children: t
});
}
-function BV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(Cge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function zV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(wge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function Cge({ item: e }) {
- vL();
- let t = jV(!1), n = (0, F.useRef)(t.data), r = MV(), i = t.data && t.data !== n.current ? NV(t.data.favorites || [], e) : e.favorite ?? (t.data ? NV(t.data.favorites || [], e) : !1);
+function wge({ item: e }) {
+ _L();
+ let t = AV(!1), n = (0, F.useRef)(t.data), r = jV(), i = t.data && t.data !== n.current ? MV(t.data.favorites || [], e) : e.favorite ?? (t.data ? MV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(RV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${tn(e.kind, e.name, e.entity_id)}`,
- ...OV(r.isPending),
+ ...DV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44012,9 +44012,9 @@ function Cge({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(PV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(NV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(r.error)
}) : null,
@@ -44028,38 +44028,38 @@ function Cge({ item: e }) {
]
});
}
-function VV({ currentHref: e, kind: t }) {
+function BV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(TL, {
+ children: /* @__PURE__ */ (0, I.jsx)(wL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: PV,
+ icon: NV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(xV, {
+ }), /* @__PURE__ */ (0, I.jsx)(bV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(wge, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Tge, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function wge({ currentHref: e, kind: t, close: n }) {
- vL();
- let r = jV(), i = MV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Tge({ currentHref: e, kind: t, close: n }) {
+ _L();
+ let r = AV(), i = jV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = jL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = AL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Lo(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44072,7 +44072,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = RV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = LV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -44095,7 +44095,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44125,8 +44125,8 @@ function wge({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- RV.map(([e, t]) => {
- let n = LV[e] || PV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ LV.map(([e, t]) => {
+ let n = IV[e] || NV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44158,17 +44158,17 @@ function wge({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(PV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(NV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(FV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(PV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(Sge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Cge, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(FV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(PV, { "aria-hidden": !0 })
]
})]
})]
@@ -44187,7 +44187,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44196,16 +44196,16 @@ function wge({ currentHref: e, kind: t, close: n }) {
}),
children: cr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(wV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: EV("list-filter"),
+ icon: TV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(NL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/",
onClick: n,
@@ -44224,7 +44224,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...OV(i.isPending),
+ ...DV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44239,7 +44239,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44248,7 +44248,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...OV(i.isPending),
+ ...DV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44259,16 +44259,16 @@ function wge({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: EV("search"),
+ leadingIcon: TV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(wV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: PV,
+ icon: NV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44278,7 +44278,7 @@ function wge({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(NL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/",
onClick: n,
@@ -44292,25 +44292,25 @@ function wge({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: xge(e),
+ href: Sge(e),
"aria-label": tn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(Tge, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(Ege, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: tn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : IV[e.kind]
+ children: e.scope === "online" ? "在线标签" : FV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${tn(e.kind, e.name, e.entity_id)}`,
- ...OV(i.isPending),
+ ...DV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44328,8 +44328,8 @@ function wge({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Tge({ item: e }) {
- let t = LV[e.kind] || PV;
+function Ege({ item: e }) {
+ let t = IV[e.kind] || NV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44347,11 +44347,11 @@ function Tge({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function Ege(e) {
+function Dge(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function Dge(e) {
+function Oge(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44365,7 +44365,7 @@ function Dge(e) {
})
});
}
-function Oge(e) {
+function kge(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44379,7 +44379,7 @@ function Oge(e) {
})
});
}
-function HV(e) {
+function VV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44392,7 +44392,7 @@ function HV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function kge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function Age({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
@@ -44400,14 +44400,14 @@ function kge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(Oge, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(kge, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function UV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function HV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
@@ -44420,7 +44420,7 @@ function UV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Ege, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Dge, {
href: n,
className: s,
children: o
@@ -44433,14 +44433,14 @@ function UV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function WV() {
- return Rw().direction;
+function UV() {
+ return Lw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var GV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", Age = "w-[266px]", jge = "flex w-full flex-col gap-1 outline-none", KV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", qV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var WV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", jge = "w-[266px]", Mge = "flex w-full flex-col gap-1 outline-none", GV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", KV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function Mge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = WV(), l = (0, F.useContext)(JL), u = l === KL && !s.dragAndDropHooks ? YV : l;
+function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = UV(), l = (0, F.useContext)(qL), u = l === GL && !s.dragAndDropHooks ? JV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44457,23 +44457,23 @@ function Mge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(JL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(qL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(bhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(xhe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === YV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === JV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function JV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = WV();
- return /* @__PURE__ */ (0, I.jsxs)(Che, {
+function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = UV();
+ return /* @__PURE__ */ (0, I.jsxs)(whe, {
...u,
ref: l,
textValue: t,
@@ -44482,10 +44482,10 @@ function JV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(She, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? qB : GB : Ghe);
+ children: [/* @__PURE__ */ (0, I.jsx)(Che, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? KB : WB : Khe);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Pge, {
+ /* @__PURE__ */ (0, I.jsx)(Fge, {
state: l,
id: u,
level: c,
@@ -44495,11 +44495,11 @@ function JV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)($L, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(QL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(PB, {
+ children: /* @__PURE__ */ (0, I.jsx)(NB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44523,24 +44523,24 @@ function JV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var YV = {
- ...KL,
- CollectionRoot: Nge
+var JV = {
+ ...GL,
+ CollectionRoot: Pge
};
-function Nge({ collection: e, ...t }) {
- let n = (0, F.useContext)(kB);
+function Pge({ collection: e, ...t }) {
+ let n = (0, F.useContext)(OB);
return n ? /* @__PURE__ */ (0, I.jsx)(Mx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Fge, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Ige, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(KL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(GL.CollectionRoot, {
collection: e,
...t
});
}
-function Pge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function Fge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -44599,7 +44599,7 @@ function Pge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Fge({ state: e, children: t }) {
+function Ige({ state: e, children: t }) {
let n = kx(), r = nS(), [i, a] = (0, F.useState)(e);
return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(mS.div, {
role: "presentation",
@@ -44640,14 +44640,14 @@ function Fge({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(kB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(OB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var XV = {
+var YV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44661,8 +44661,8 @@ var XV = {
gap: "gap-1.5"
}
};
-function ZV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = XV[t], c = n || r, l = o && !a;
+function XV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = YV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -44688,13 +44688,13 @@ function ZV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function QV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = XV[n];
- return /* @__PURE__ */ (0, I.jsx)(bpe, {
+function ZV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = YV[n];
+ return /* @__PURE__ */ (0, I.jsx)(xpe, {
ref: r,
...i,
className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ZV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(XV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44704,7 +44704,7 @@ function QV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function $V() {
+function QV() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44716,43 +44716,43 @@ function $V() {
}, []), e;
}
// src/react/providers.tsx
-var eH = null;
-function Ige() {
- return eH?.isConnected || (eH = document.createElement("div"), eH.className = "peach-react", eH.dataset.reactOverlays = "", document.body.append(eH)), eH;
+var $V = null;
+function Lge() {
+ return $V?.isConnected || ($V = document.createElement("div"), $V.className = "peach-react", $V.dataset.reactOverlays = "", document.body.append($V)), $V;
}
-function tH({ children: e }) {
+function eH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
children: /* @__PURE__ */ (0, I.jsx)(qre, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(DD, {
- getContainer: Ige,
+ children: /* @__PURE__ */ (0, I.jsx)(ED, {
+ getContainer: Lge,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function Lge(e) {
+function Rge(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var Rge = (e) => {
+var zge = (e) => {
switch (e) {
- case "success": return Vge;
- case "info": return Uge;
- case "warning": return Hge;
- case "error": return Wge;
+ case "success": return Hge;
+ case "info": return Wge;
+ case "warning": return Uge;
+ case "error": return Gge;
default: return null;
}
-}, zge = Array(12).fill(0), Bge = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, Bge = Array(12).fill(0), Vge = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, zge.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, Bge.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Vge = /*#__PURE__*/ F.createElement("svg", {
+})))), Hge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44763,7 +44763,7 @@ var Rge = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), Hge = /*#__PURE__*/ F.createElement("svg", {
+})), Uge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44774,7 +44774,7 @@ var Rge = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), Uge = /*#__PURE__*/ F.createElement("svg", {
+})), Wge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44785,7 +44785,7 @@ var Rge = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), Wge = /*#__PURE__*/ F.createElement("svg", {
+})), Gge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44796,7 +44796,7 @@ var Rge = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), Gge = /*#__PURE__*/ F.createElement("svg", {
+})), Kge = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44817,7 +44817,7 @@ var Rge = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), Kge = () => {
+})), qge = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -44825,7 +44825,7 @@ var Rge = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, qge = 1, Jge = 100, nH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : qge++, rH = new class {
+}, Jge = 1, Yge = 100, tH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Jge++, nH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44835,10 +44835,10 @@ var Rge = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - Jge;
+ let e = this.toasts.length - Yge;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = nH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = tH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44913,7 +44913,7 @@ var Rge = (e) => {
type: "default",
message: e
});
- else if (Xge(e) && !e.ok) {
+ else if (Zge(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -44957,7 +44957,7 @@ var Rge = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = nH(t);
+ let n = tH(t);
return this.create({
...t,
jsx: e(n),
@@ -44966,34 +44966,34 @@ var Rge = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), Yge = (e, t) => rH.message(e, t), Xge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", iH = Object.assign(Yge, {
- success: rH.success,
- info: rH.info,
- warning: rH.warning,
- error: rH.error,
- custom: rH.custom,
- message: rH.message,
- promise: rH.promise,
- dismiss: rH.dismiss,
- loading: rH.loading
+}(), Xge = (e, t) => nH.message(e, t), Zge = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rH = Object.assign(Xge, {
+ success: nH.success,
+ info: nH.info,
+ warning: nH.warning,
+ error: nH.error,
+ custom: nH.custom,
+ message: nH.message,
+ promise: nH.promise,
+ dismiss: nH.dismiss,
+ loading: nH.loading
}, {
- getHistory: () => rH.toasts,
- getToasts: () => rH.getActiveToasts()
+ getHistory: () => nH.toasts,
+ getToasts: () => nH.getActiveToasts()
});
-Lge("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function aH(e) {
+Rge("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function iH(e) {
return e.label !== void 0;
}
-var Zge = 3, Qge = "24px", $ge = "16px", oH = 4e3, e_e = 356, t_e = 14, n_e = 45, r_e = 200;
-function sH(...e) {
+var Qge = 3, $ge = "24px", e_e = "16px", aH = 4e3, t_e = 356, n_e = 14, r_e = 45, i_e = 200;
+function oH(...e) {
return e.filter(Boolean).join(" ");
}
-function i_e(e) {
+function a_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var a_e = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || oH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || oH, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Kge(), ke = F.useMemo(() => e.swipeDirections ?? i_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var o_e = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || aH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || aH, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = qge(), ke = F.useMemo(() => e.swipeDirections ?? a_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {
ce.current = be;
}, [be]), F.useEffect(() => {
@@ -45034,7 +45034,7 @@ var a_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, r_e);
+ }, i_e);
}, [
n,
d,
@@ -45065,18 +45065,18 @@ var a_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: sH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: oH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(Bge, {
- className: sH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(Vge, {
+ className: oH(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || Rge(pe);
+ let Pe = n.icon || w?.[pe] || zge(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: sH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: oH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -45119,7 +45119,7 @@ var a_e = (e) => {
if (P || !he) return;
we.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= n_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= r_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -45158,46 +45158,46 @@ var a_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: sH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? Gge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: oH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? Kge) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: sH(C?.icon, n?.classNames?.icon)
+ className: oH(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {
"data-content": "",
- className: sH(C?.content, n?.classNames?.content)
+ className: oH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: sH(C?.title, n?.classNames?.title)
+ className: oH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
"data-description": "",
- className: sH(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && aH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: oH(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && iH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- aH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ iH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: sH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && aH(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: oH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && iH(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- aH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ iH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: sH(C?.actionButton, n?.classNames?.actionButton)
+ className: oH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function cH() {
+function sH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function o_e(e, t) {
+function s_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? $ge : Qge;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? e_e : $ge;
function o(e) {
[
"top",
@@ -45218,11 +45218,11 @@ function o_e(e, t) {
}) : o(a);
}), n;
}
-var lH = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Zge, toastOptions: g, dir: _ = cH(), gap: v = t_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || rH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Qge, toastOptions: g, dir: _ = sH(), gap: v = n_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || nH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => rH.subscribe((e) => {
+ return F.useEffect(() => nH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45291,7 +45291,7 @@ var lH = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? cH() : _,
+ dir: _ === "auto" ? sH() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45301,10 +45301,10 @@ var lH = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${e_e}px`,
+ "--width": `${t_e}px`,
"--gap": `${v}px`,
...m,
- ...o_e(l, u)
+ ...s_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45322,7 +45322,7 @@ var lH = /*#__PURE__*/ F.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(a_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(o_e, {
key: n.id,
icons: y,
index: i,
@@ -45352,35 +45352,35 @@ var lH = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), uH = "/api/library-processing", dH = ["library-processing"], s_e = (e, t, n) => {
+}), lH = "/api/library-processing", uH = ["library-processing"], c_e = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${uH}?${r}`, t);
-}, c_e = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${lH}?${r}`, t);
+}, l_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function fH(e) {
+function dH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = c_e[e.current_action || ""];
+ let t = l_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function pH({ what: e, source: t }) {
+function fH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var mH = (e) => !!e && [
+var pH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), hH = (e) => e?.status === "failed" && e.outcome === "partial", gH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", _H = "/?loc=&thumb=0";
-function vH(e) {
- if (!mH(e)) return "";
+].includes(e.status), mH = (e) => e?.status === "failed" && e.outcome === "partial", hH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", gH = "/?loc=&thumb=0";
+function _H(e) {
+ if (!pH(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45391,30 +45391,30 @@ function vH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var yH = (e) => B(uH, e);
-async function bH(e) {
+var vH = (e) => B(lH, e);
+async function yH(e) {
await H.fetchQuery({
- queryKey: dH,
- queryFn: () => yH(e)
+ queryKey: uH,
+ queryFn: () => vH(e)
});
}
-var l_e = 2e3, u_e = 1e4, xH = "连接中断,正在重新读取处理进度", d_e = {
+var u_e = 2e3, d_e = 1e4, bH = "连接中断,正在重新读取处理进度", f_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function f_e(e, t) {
+function p_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function p_e(e) {
- let t = d_e[e.trigger || ""];
+function m_e(e) {
+ let t = f_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function SH(e, t) {
- return mH(e) ? l_e : t ? u_e : !1;
+function xH(e, t) {
+ return pH(e) ? u_e : t ? d_e : !1;
}
-var m_e = {
+var h_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45423,25 +45423,25 @@ var m_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, CH = {
+}, SH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function h_e(e) {
- let t = Object.entries(e).filter(([e, t]) => CH[e] && t > 0).map(([e, t]) => `${CH[e]} ${t.toLocaleString()} 部`);
+function g_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => SH[e] && t > 0).map(([e, t]) => `${SH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function g_e(e) {
+function __e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = m_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${fL(e.waited_seconds)}` : "";
+ let t = h_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${dL(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function __e(e) {
- let t = e.total ? `${pL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return g_e(e) + (t ? ` · ${t}` : "");
-}
function v_e(e) {
+ let t = e.total ? `${fL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return __e(e) + (t ? ` · ${t}` : "");
+}
+function y_e(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45455,22 +45455,22 @@ function v_e(e) {
log: e.issues_log || ""
} : null;
}
-var wH = "peach.library-processing.announced", y_e = 120;
-function TH(e) {
+var CH = "peach.library-processing.announced", b_e = 120;
+function wH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < y_e;
+ return !!e.job_id && t >= 0 && t < b_e;
}
-function b_e(e, t, n) {
- if (e.status === "complete" && (n || TH(e))) {
+function x_e(e, t, n) {
+ if (e.status === "complete" && (n || wH(e))) {
try {
- if (e.job_id && localStorage.getItem(wH) === e.job_id) return;
- e.job_id && localStorage.setItem(wH, e.job_id);
+ if (e.job_id && localStorage.getItem(CH) === e.job_id) return;
+ e.job_id && localStorage.setItem(CH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var EH = JI({
+var TH = qI({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45487,15 +45487,15 @@ var EH = JI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function DH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(EH.base, EH.size[t], EH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(TH.base, TH.size[t], TH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: EH.icon[t],
+ className: TH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: EH.icon[t],
+ className: TH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45521,7 +45521,7 @@ function DH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function OH(e = "") {
+function DH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45546,10 +45546,10 @@ function OH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function kH({ state: e }) {
- let t = OH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(uH, e, "POST", t), (e) => {
- H.setQueryData(dH, e), H.invalidateQueries({ queryKey: dH });
+function OH({ state: e }) {
+ let t = DH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(lH, e, "POST", t), (e) => {
+ H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45561,7 +45561,7 @@ function kH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...OV(t.busy === "skip_current"),
+ ...DV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45585,25 +45585,25 @@ function kH({ state: e }) {
]
});
}
-function x_e({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(CV, {
+function S_e({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(kH, { state: e }),
- children: pH(t)
+ action: /* @__PURE__ */ (0, I.jsx)(OH, { state: e }),
+ children: fH(t)
});
}
-function S_e({ state: e, slow: t }) {
+function C_e({ state: e, slow: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: pH(t)
- }), /* @__PURE__ */ (0, I.jsx)(kH, { state: e })]
+ children: fH(t)
+ }), /* @__PURE__ */ (0, I.jsx)(OH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var C_e = {
+var w_e = {
selection: {
type: Mg,
duration: .16,
@@ -45615,7 +45615,7 @@ var C_e = {
bounce: 0
}
};
-function AH(e) {
+function kH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45636,7 +45636,7 @@ function AH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = eae(n, { transform: [r, E] }, C_e[e]);
+ l = eae(n, { transform: [r, E] }, w_e[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45672,24 +45672,24 @@ function AH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function jH(e) {
- let t = AH("hover");
- return /* @__PURE__ */ (0, I.jsx)(zz, {
+function AH(e) {
+ let t = kH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Rz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var MH = [
+var jH = [
"low",
"standard",
"high"
-], NH = [
+], MH = [
"低占用",
"标准",
"全速"
-], PH = EV("snail"), FH = EV("zap");
-function IH({ className: e }) {
+], NH = TV("snail"), PH = TV("zap");
+function FH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45720,12 +45720,12 @@ function IH({ className: e }) {
]
});
}
-var w_e = [
+var T_e = [
+ NH,
PH,
- FH,
- IH
+ FH
];
-function T_e({ animate: e }) {
+function E_e({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45757,8 +45757,8 @@ function T_e({ animate: e }) {
} }, t))]
});
}
-function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, MH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, jH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45769,7 +45769,7 @@ function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), NH[a]]
+ }), MH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45777,19 +45777,19 @@ function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(PH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(NH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(FH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(PH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(IH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(FH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Ape, {
+ /* @__PURE__ */ (0, I.jsxs)(jpe, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45798,10 +45798,10 @@ function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(MH[e]);
+ e !== i && n(jH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(ZL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45821,11 +45821,11 @@ function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(T_e, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(jpe, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(E_e, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Mpe, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(Mpe, {
- "aria-label": NH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(Npe, {
+ "aria-label": MH[a],
className: "processing-effort-thumb"
})
})
@@ -45839,8 +45839,8 @@ function LH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function E_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, MH.indexOf(e));
+function D_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, jH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45848,28 +45848,28 @@ function E_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${NH[s]}`,
+ "aria-label": `处理速度:${MH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: w_e[s],
- trailingIcon: MB,
+ leadingIcon: T_e[s],
+ trailingIcon: jB,
onClick: () => {
t || o(!a);
},
- children: NH[s]
+ children: MH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(Ez, {
+ }), /* @__PURE__ */ (0, I.jsx)(Tz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: GV,
- children: /* @__PURE__ */ (0, I.jsx)(jH, {
+ className: WV,
+ children: /* @__PURE__ */ (0, I.jsx)(AH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(LH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
value: e,
busy: t,
onChange: n,
@@ -45879,10 +45879,10 @@ function E_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function RH({ state: e, disabled: t = !1 }) {
- let n = OH(), r = (0, F.useRef)(!1), i = mH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
- t || n.busy || n.run(e.action, (t) => V(uH, e, "POST", t), (e) => {
- H.setQueryData(dH, e), H.invalidateQueries({ queryKey: dH });
+function LH({ state: e, disabled: t = !1 }) {
+ let n = DH(), r = (0, F.useRef)(!1), i = pH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(lH, e, "POST", t), (e) => {
+ H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
});
}, l = () => {
let i = e.job_id;
@@ -45906,7 +45906,7 @@ function RH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(E_e, {
+ /* @__PURE__ */ (0, I.jsx)(D_e, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45920,11 +45920,11 @@ function RH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? tV : $B,
+ leadingIcon: e.status === "paused" ? eV : QB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...OV(n.busy === "pause" || n.busy === "resume"),
+ ...DV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -45936,11 +45936,11 @@ function RH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: cV,
+ leadingIcon: sV,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...OV(n.busy === "cancel"),
+ ...DV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -45952,11 +45952,11 @@ function RH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function zH({ toast: e, mode: t, monitor: n }) {
+function RH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Pt({
- queryKey: dH,
- queryFn: ({ signal: e }) => yH(e),
- refetchInterval: (e) => SH(e.state.data, r)
+ queryKey: uH,
+ queryFn: ({ signal: e }) => vH(e),
+ refetchInterval: (e) => xH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -45967,8 +45967,8 @@ function zH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !mH(c);
- r && o(c), (r || t === "notice") && b_e(c, e, r);
+ ].includes(n) && !pH(c);
+ r && o(c), (r || t === "notice") && x_e(c, e, r);
}, [
c,
t,
@@ -45980,38 +45980,38 @@ function zH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/card.tsx
-var D_e = "min-w-0", O_e = {
+var O_e = "min-w-0", k_e = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, k_e = {
+}, A_e = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, A_e = {
+}, j_e = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, j_e = {
+}, M_e = {
none: "",
default: "p-5"
-}, M_e = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", N_e = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function BH(e = {}) {
+}, N_e = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", P_e = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function zH(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- D_e,
- O_e[t],
- k_e[s],
- j_e[n],
- a ? A_e[a] : "",
- r ? M_e : "",
- i ? N_e : "",
+ O_e,
+ k_e[t],
+ A_e[s],
+ M_e[n],
+ a ? j_e[a] : "",
+ r ? N_e : "",
+ i ? P_e : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/components/loading-dots.tsx
-function VH({ label: e }) {
+function BH({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -46030,21 +46030,21 @@ function VH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var HH = 100, P_e = .4;
-function UH({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * HH;
+var VH = 100, F_e = .4;
+function HH({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * VH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${HH} 1`,
+ viewBox: `0 0 ${VH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: HH,
+ width: VH,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -46055,7 +46055,7 @@ function UH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: o(e),
- width: P_e,
+ width: F_e,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46063,26 +46063,26 @@ function UH({ label: e, value: t, max: n = 100, stops: r = [] }) {
});
}
// src/react/components/task-progress.tsx
-function WH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function UH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : BH({
+ className: r ? "flex flex-col gap-1.5" : zH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(UH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HH, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(VH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(BH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function GH(e) {
+function WH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46098,17 +46098,17 @@ function GH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return __e(a ? {
+ return v_e(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function F_e({ state: e }) {
- return GH(e);
-}
function I_e({ state: e }) {
- let t = GH(e);
- return /* @__PURE__ */ (0, I.jsx)(WH, {
+ return WH(e);
+}
+function L_e({ state: e }) {
+ let t = WH(e);
+ return /* @__PURE__ */ (0, I.jsx)(UH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46116,7 +46116,7 @@ function I_e({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function KH({ open: e, children: t, ...n }) {
+function GH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46127,7 +46127,7 @@ function KH({ open: e, children: t, ...n }) {
children: t
});
}
-function qH(e) {
+function KH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46142,19 +46142,19 @@ function qH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function JH({ className: e, children: t }) {
+function qH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function YH({ className: e, children: t }) {
+function JH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function L_e({ label: e, description: t, children: n }) {
+function R_e({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46170,7 +46170,7 @@ function L_e({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function R_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function z_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [n, e]
@@ -46178,12 +46178,12 @@ function R_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(YH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(JH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(YH, { children: s }), /* @__PURE__ */ (0, I.jsx)(JH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(JH, { children: s }), /* @__PURE__ */ (0, I.jsx)(qH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46200,13 +46200,13 @@ function R_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function z_e({ children: e }) {
+function B_e({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function B_e({ divided: e = !1, children: t }) {
+function V_e({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden [&>.ui-settings-facts]:-mr-3",
children: t
@@ -46215,7 +46215,7 @@ function B_e({ divided: e = !1, children: t }) {
children: t
});
}
-function V_e({ label: e, html: t }) {
+function H_e({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46225,7 +46225,7 @@ function V_e({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function H_e({ status: e, children: t }) {
+function U_e({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -46234,34 +46234,34 @@ function H_e({ status: e, children: t }) {
}) : null, t]
});
}
-function XH({ role: e, children: t }) {
+function YH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function ZH({ children: e }) {
+function XH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function QH({ children: e }) {
+function ZH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function U_e({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(DH, {
+function W_e({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(EH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: HB,
+ trailingIcon: VB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46269,22 +46269,22 @@ function U_e({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function W_e() {
- return /* @__PURE__ */ (0, I.jsx)(DH, {
+function G_e() {
+ return /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/tasks",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function G_e({ children: e }) {
+function K_e({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function K_e({ term: e, children: t }) {
+function q_e({ term: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, I.jsx)("dt", {
@@ -46296,7 +46296,7 @@ function K_e({ term: e, children: t }) {
})]
});
}
-function $H({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function QH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (zo(c.current, l.current, n), f(n));
@@ -46312,12 +46312,12 @@ function $H({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(PB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(NB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(PB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(NB, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -46333,7 +46333,7 @@ function $H({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function q_e({ name: e }) {
+function J_e({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46343,34 +46343,34 @@ function q_e({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function eU({ mark: e }) {
+function $H({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(q_e, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(J_e, { name: e });
}
// src/react/components/source-label.tsx
-var tU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, J_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {
+var eU = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Y_e = Object.fromEntries(Object.entries(gs).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(eU, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)($H, { mark: t })
});
}]));
-function Y_e({ className: e }) {
+function X_e({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(eU, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)($H, { mark: "database" })
});
}
-var nU = (e) => J_e[tU(e)] ?? Y_e;
-function X_e({ site: e, label: t }) {
+var tU = (e) => Y_e[eU(e)] ?? X_e;
+function Z_e({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(eU, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)($H, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46378,24 +46378,24 @@ function X_e({ site: e, label: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
});
}
-function rU({ source: e, label: t }) {
- let n = tU(e);
+function nU({ source: e, label: t }) {
+ let n = eU(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(eU, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)($H, { mark: gs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var iU = (e) => Yn(e).replace(/\s/g, ""), aU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : iU(e), Z_e = (e, t) => {
- if (e === t) return iU(t);
+var rU = (e) => Yn(e).replace(/\s/g, ""), iU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : rU(e), Q_e = (e, t) => {
+ if (e === t) return rU(t);
let [n, r] = Yn(e).split(" "), [i, a] = Yn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${iU(e)}-${iU(t)}`;
-}, oU = (e, t, n) => e === void 0 ? Z_e(t, n) : `${e > 0 ? "约 " : ""}${iU(e)}`;
-function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = $V(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${rU(e)}-${rU(t)}`;
+}, aU = (e, t, n) => e === void 0 ? Q_e(t, n) : `${e > 0 ? "约 " : ""}${rU(e)}`;
+function oU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = QV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
if (!e) return null;
let u = (e) => e.toLocaleString("zh-CN"), d = !!e.workload || !(!e.inventory || e.inventory.complete) || !!(e.unknown_files && e.inventory?.complete !== !1) || !!e.inventory?.errors;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46432,7 +46432,7 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(KH, {
+ }), /* @__PURE__ */ (0, I.jsx)(GH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46446,25 +46446,25 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(JB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: oU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: aU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- oU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ aU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", iU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", rU(e.used_bytes)] }),
" · 代理 ",
- iU(e.metered_used_bytes)
+ rU(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46473,25 +46473,25 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(pV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(fV, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", iU(e.disk.estimated_bytes)]
+ children: ["约 ", rU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", aU(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", iU(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : iU(e.free_bytes)
+ e.free_bytes == null ? "未取得" : rU(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", iU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", rU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46507,7 +46507,7 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? Mhe : MB,
+ trailingIcon: l ? Nhe : jB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46526,12 +46526,12 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(rU, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(nU, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(eU, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)($H, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46553,7 +46553,7 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- aU(e.workload.metadata_average_bytes || 0),
+ iU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46563,8 +46563,8 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- iU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", oU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ rU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", aU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46577,15 +46577,15 @@ function sU({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var cU = "peach.library-processing.collapsed";
-function lU(e) {
+var sU = "peach.library-processing.collapsed";
+function cU(e) {
try {
- return !e || sessionStorage.getItem(cU) !== e;
+ return !e || sessionStorage.getItem(sU) !== e;
} catch {
return !0;
}
}
-function Q_e({ value: e, max: t }) {
+function $_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46615,17 +46615,17 @@ function Q_e({ value: e, max: t }) {
})]
});
}
-function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => lU(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
+function lU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => cU(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && hH(e), _ = e?.status === "failed" && !g, v = mH(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && mH(e), _ = e?.status === "failed" && !g, v = pH(e);
(0, F.useEffect)(() => {
- a(lU(e?.job_id)), m(!1);
+ a(cU(e?.job_id)), m(!1);
}, [e?.job_id]);
let y = () => {
if (!(o && (c.current = !0, s(!1), i))) {
try {
- i && e?.job_id ? sessionStorage.setItem(cU, e.job_id) : sessionStorage.removeItem(cU);
+ i && e?.job_id ? sessionStorage.setItem(sU, e.job_id) : sessionStorage.removeItem(sU);
} catch {}
i && m(!1), a(!i);
}
@@ -46655,7 +46655,7 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
r = !0, o.disconnect(), u.disconnect(), window.removeEventListener("resize", a), t.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !v && !_ && !g) return null;
- let b = t ? null : fH(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : dH(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46669,13 +46669,13 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Q_e, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)($_e, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Uhe, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Whe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(tge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(nge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46687,14 +46687,14 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), v ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: vH(e)
+ children: _H(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: qH,
+ leadingIcon: KH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46706,24 +46706,24 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: RB,
+ leadingIcon: LB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(sU, {
+ /* @__PURE__ */ (0, I.jsx)(oU, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(S_e, {
+ b ? /* @__PURE__ */ (0, I.jsx)(C_e, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(KH, {
+ }), /* @__PURE__ */ (0, I.jsx)(GH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46740,14 +46740,14 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Lhe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Rhe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Rhe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(zhe, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(mE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(pE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46760,11 +46760,11 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(F_e, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(I_e, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: gH
+ children: hH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46778,20 +46778,20 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(DH, {
+ /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(DH, {
- href: _H,
+ g ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ href: gH,
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(RH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(LH, {
state: e,
disabled: !!t
}) : null
@@ -46801,67 +46801,67 @@ function uU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function $_e(e) {
- let { job: t } = zH(e);
- return /* @__PURE__ */ (0, I.jsx)(uU, {
+function eve(e) {
+ let { job: t } = RH(e);
+ return /* @__PURE__ */ (0, I.jsx)(lU, {
state: t.data,
- problem: t.isError ? t.data ? xH : cr(t.error) : ""
+ problem: t.isError ? t.data ? bH : cr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var dU = "peach.library-processing.visibility", fU = /* @__PURE__ */ new Set(), pU = "";
-function eve() {
+var uU = "peach.library-processing.visibility", dU = /* @__PURE__ */ new Set(), fU = "";
+function tve() {
try {
- return sessionStorage.getItem(dU) || "";
+ return sessionStorage.getItem(uU) || "";
} catch {
- return pU;
+ return fU;
}
}
-function tve(e) {
- return fU.add(e), () => {
- fU.delete(e);
+function nve(e) {
+ return dU.add(e), () => {
+ dU.delete(e);
};
}
-function mU(e, t) {
- pU = `${t ? "shown" : "hidden"}:${e}`;
+function pU(e, t) {
+ fU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(dU, pU);
+ sessionStorage.setItem(uU, fU);
} catch {}
- fU.forEach((e) => e());
+ dU.forEach((e) => e());
}
-function hU(e) {
- let t = (0, F.useSyncExternalStore)(tve, eve, () => "");
+function mU(e) {
+ let t = (0, F.useSyncExternalStore)(nve, tve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var gU = "peach-library-processing";
-function nve({ toast: e }) {
- let { job: t, settled: n } = zH({
+var hU = "peach-library-processing";
+function rve({ toast: e }) {
+ let { job: t, settled: n } = RH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = hU(a), c = t.isError ? i ? xH : cr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = mU(a), c = t.isError ? i ? bH : cr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = mH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || TH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && iH.dismiss(gU), r.current = !1) : (iH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = pH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || wH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && rH.dismiss(hU), r.current = !1) : (rH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(uU, {
+ children: /* @__PURE__ */ (0, I.jsx)(lU, {
state: i,
problem: c,
measure: !0,
- onHide: () => mU(a, !1)
+ onHide: () => pU(a, !1)
})
}), {
- id: gU,
+ id: hU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- mU(a, !1), r.current = !1;
+ pU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46872,19 +46872,19 @@ function nve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && iH.dismiss(gU), r.current = !1;
+ r.current && rH.dismiss(hU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var rve = ["network-status"], ive = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function ave(e) {
+var ive = ["network-status"], ave = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function ove(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function ove() {
+function sve() {
let e = Pt({
- queryKey: rve,
+ queryKey: ive,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => ave(e.state.data),
+ refetchInterval: (e) => ove(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -46895,38 +46895,38 @@ function ove() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: ive })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: ave })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function sve(e) {
- let t = wL(AH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(DB, {
+function cve(e) {
+ let t = CL(kH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(EB, {
...e,
ref: t
});
}
-function _U(e) {
- let t = wL(AH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+function gU(e) {
+ let t = CL(kH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Gz, {
...e,
ref: t
});
}
-var vU = "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", yU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", cve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", bU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", xU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", SU = [
+var _U = "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", vU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", lve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", yU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", bU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", xU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], CU = (e) => SU.some(([t]) => t === e) ? e : "library", wU = (e) => CU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function lve(e) {
+], SU = (e) => xU.some(([t]) => t === e) ? e : "library", CU = (e) => SU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function uve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
-function uve(e) {
+function dve(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Ep(location.pathname + (t.size ? `?${t}` : ""), {
@@ -46935,24 +46935,24 @@ function uve(e) {
});
}
// src/onboarding/guide-catalog.ts
-var TU = (e, t, n, r, i, a) => ({
+var wU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), EU = (e, t, n, r, i) => TU(e, t, n, r, i), DU = [
+}), TU = (e, t, n, r, i) => wU(e, t, n, r, i), EU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- EU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- EU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- EU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- EU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ TU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ TU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ TU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ TU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -46961,23 +46961,23 @@ var TU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- EU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- EU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- EU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ TU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ TU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ TU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...TU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...wU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...TU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...wU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...TU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...wU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...TU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...wU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -46989,15 +46989,15 @@ var TU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...EU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...TU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...EU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...TU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- EU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- EU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ TU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ TU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47006,10 +47006,10 @@ var TU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- EU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- EU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- EU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- EU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ TU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ TU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ TU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ TU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47018,10 +47018,10 @@ var TU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- EU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", wU("library"), "[data-catalog-frame]"),
- EU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", wU("discover"), "[data-jav-filter] [data-catalog-views]"),
- EU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", wU("discover"), "[aria-label=\"JAV 分区\"]"),
- EU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ TU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", CU("library"), "[data-catalog-frame]"),
+ TU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", CU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ TU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", CU("discover"), "[aria-label=\"JAV 分区\"]"),
+ TU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47030,9 +47030,9 @@ var TU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- EU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- EU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- EU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ TU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ TU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ TU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47041,9 +47041,9 @@ var TU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- EU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- EU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- EU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ TU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ TU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ TU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47052,11 +47052,11 @@ var TU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- EU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- EU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- EU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- EU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- EU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ TU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ TU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ TU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ TU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ TU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47065,10 +47065,10 @@ var TU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- EU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- EU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- EU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- EU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ TU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ TU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ TU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ TU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47077,9 +47077,9 @@ var TU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- EU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- EU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- EU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ TU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ TU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ TU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47088,18 +47088,18 @@ var TU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- EU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- EU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- EU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ TU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ TU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ TU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], dve = "当前浏览器 · 修改后自动保存", OU = "跟随馆藏 · 修改后自动保存", kU = "运行 Peach 的电脑 · 确认后保存配置", AU = (e, t, n = dve) => t.map(([t, r, i, a, o]) => TU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), jU = [
+], fve = "当前浏览器 · 修改后自动保存", DU = "跟随馆藏 · 修改后自动保存", OU = "运行 Peach 的电脑 · 确认后保存配置", kU = (e, t, n = fve) => t.map(([t, r, i, a, o]) => wU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), AU = [
{
id: "appearance",
kind: "settings",
title: Ef.appearance,
summary: "主题、光晕与导航入口。",
- steps: AU("appearance", [
+ steps: kU("appearance", [
[
"theme",
"主题",
@@ -47129,7 +47129,7 @@ var TU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- OU
+ DU
]
])
},
@@ -47138,7 +47138,7 @@ var TU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: AU("playback", [
+ steps: kU("playback", [
[
"batch",
"每批作品",
@@ -47194,13 +47194,13 @@ var TU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.jav,
summary: "封面与新作筛选。",
- steps: AU("jav", [
+ steps: kU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- OU
+ DU
],
[
"image",
@@ -47225,21 +47225,21 @@ var TU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- OU
+ DU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- OU
+ DU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- OU
+ DU
]
])
},
@@ -47248,12 +47248,12 @@ var TU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...AU("search", [[
+ steps: [...kU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], OU), ...AU("search", [[
+ ]], DU), ...kU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47265,7 +47265,7 @@ var TU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Ef.content,
summary: "SFW 模式与画面显示。",
- steps: AU("content", [[
+ steps: kU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47277,7 +47277,7 @@ var TU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Df.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: AU("library", [
+ steps: kU("library", [
[
"media",
"媒体库名称与外观",
@@ -47328,14 +47328,14 @@ var TU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], kU)
+ ], OU)
},
{
id: "subscriptions",
kind: "settings",
title: Df.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: AU("subscriptions", [
+ steps: kU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47362,14 +47362,14 @@ var TU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], kU)
+ ], OU)
},
{
id: "downloads",
kind: "settings",
title: Df.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: AU("downloads", [
+ steps: kU("downloads", [
[
"download",
"云下载",
@@ -47385,14 +47385,14 @@ var TU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], kU)
+ ], OU)
},
{
id: "network",
kind: "settings",
title: Df.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: AU("network", [
+ steps: kU("network", [
[
"port",
"访问地址与端口",
@@ -47413,14 +47413,14 @@ var TU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], kU)
+ ], OU)
},
{
id: "app-maintenance",
kind: "settings",
title: Df.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: AU("maintenance", [
+ steps: kU("maintenance", [
[
"updates",
"检查更新",
@@ -47461,14 +47461,14 @@ var TU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], kU)
+ ], OU)
},
{
id: "diagnostics",
kind: "settings",
title: Df.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: AU("diagnostics", [
+ steps: kU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47493,7 +47493,7 @@ var TU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], fve = {
+], pve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47600,8 +47600,8 @@ var TU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of jU) for (let t of e.steps) t.details = fve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
-var MU = [...DU, ...jU], pve = [
+for (let e of AU) for (let t of e.steps) t.details = pve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
+var jU = [...EU, ...AU], mve = [
{
id: "browse",
kind: "interface",
@@ -47679,35 +47679,35 @@ var MU = [...DU, ...jU], pve = [
]
}
];
-function mve(e) {
- return e === "/" ? DU[0] : jU.find((t) => t.steps[0]?.route === e) || DU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || DU[0];
+function hve(e) {
+ return e === "/" ? EU[0] : AU.find((t) => t.steps[0]?.route === e) || EU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || EU[0];
}
// src/onboarding/guide-state.ts
-var hve = () => ({
+var gve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function NU(e, t) {
+function MU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function gve(e, t) {
+function _ve(e, t) {
let n = e.chapters[t.id];
- return !n || NU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || MU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function _ve() {
+function vve() {
return B("/api/tutorial-progress");
}
-function vve(e, t) {
+function yve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function yve(e, t, n, r, i) {
+function bve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47725,68 +47725,68 @@ function yve(e, t, n, r, i) {
}
};
}
-var PU = null, FU = /* @__PURE__ */ new Set();
-function IU(e = {}) {
- FU.size || (PU = e);
- for (let t of FU) t(e);
+var NU = null, PU = /* @__PURE__ */ new Set();
+function FU(e = {}) {
+ PU.size || (NU = e);
+ for (let t of PU) t(e);
}
-function bve(e) {
- if (FU.add(e), PU) {
- let t = PU;
- PU = null, queueMicrotask(() => {
- FU.has(e) && e(t);
+function xve(e) {
+ if (PU.add(e), NU) {
+ let t = NU;
+ NU = null, queueMicrotask(() => {
+ PU.has(e) && e(t);
});
}
return () => {
- FU.delete(e);
+ PU.delete(e);
};
}
// src/react/onboarding/guide-directory.tsx
-var xve = {
- browse: aV,
- collect: IB,
- watch: eV,
- manage: KB,
- experience: QB,
- discovery: iV,
- storage: BB,
- system: oV
-}, Sve = {
- basics: zB,
- "find-play": aV,
- entities: uV,
- jav: WB,
- save: IB,
- follow: iV,
- insights: FB,
- viewing: eV,
- devices: sV,
- external: VB,
- maintenance: lV,
- appearance: QB,
- playback: eV,
- content: UB,
- "search-settings": aV,
- "jav-settings": WB,
- subscriptions: iV,
- library: BB,
- downloads: VB,
- network: sV,
- "app-maintenance": lV,
- diagnostics: oge
+var Sve = {
+ browse: iV,
+ collect: FB,
+ watch: $B,
+ manage: GB,
+ experience: ZB,
+ discovery: rV,
+ storage: zB,
+ system: aV
+}, Cve = {
+ basics: RB,
+ "find-play": iV,
+ entities: lV,
+ jav: UB,
+ save: FB,
+ follow: rV,
+ insights: PB,
+ viewing: $B,
+ devices: oV,
+ external: BB,
+ maintenance: cV,
+ appearance: ZB,
+ playback: $B,
+ content: HB,
+ "search-settings": iV,
+ "jav-settings": UB,
+ subscriptions: rV,
+ library: zB,
+ downloads: BB,
+ network: oV,
+ "app-maintenance": cV,
+ diagnostics: sge
};
-function Cve({ chapter: e, className: t = "size-5" }) {
- let n = Sve[e] || zB;
+function wve({ chapter: e, className: t = "size-5" }) {
+ let n = Cve[e] || RB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function LU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function IU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-guide-banner": "",
"data-guide-completed": i || void 0,
- className: BH({
+ className: zH({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47815,8 +47815,8 @@ function LU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function RU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = NU(t, e), a = !i && !!t.chapters[e.id];
+function LU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = MU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47826,7 +47826,7 @@ function RU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(Cve, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(wve, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -47838,7 +47838,7 @@ function RU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(zU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(RU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -47846,17 +47846,17 @@ function RU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(PB, {
+ /* @__PURE__ */ (0, I.jsx)(NB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function zU() {
+function RU() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, I.jsx)(LB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -47865,17 +47865,17 @@ function zU() {
})]
});
}
-function wve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = MU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = NU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = MU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
+function Tve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = jU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = MU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = jU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(LU, {
+ /* @__PURE__ */ (0, I.jsxs)(IU, {
completed: u,
- icon: e === "interface" ? zB : oV,
+ icon: e === "interface" ? RB : aV,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(zU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(RU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -47888,26 +47888,26 @@ function wve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(_V, {
+ /* @__PURE__ */ (0, I.jsx)(gV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(yV, {
+ children: /* @__PURE__ */ (0, I.jsx)(vV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: aV
+ leadingIcon: iV
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(RU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(LU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: aV,
+ }) : /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: iV,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -47925,12 +47925,12 @@ function wve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: pve.filter((t) => t.kind === e).map((e) => {
- let t = xve[e.id];
+ children: mve.filter((t) => t.kind === e).map((e) => {
+ let t = Sve[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)($H, {
+ children: /* @__PURE__ */ (0, I.jsx)(QH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -47955,8 +47955,8 @@ function wve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}),
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topic-chapters",
- children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(RU, {
- chapter: MU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(LU, {
+ chapter: jU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -47970,14 +47970,14 @@ function wve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var BU = "侧栏收起时,先点左上角的导航按钮。", VU = (...e) => ({
+var zU = "侧栏收起时,先点左上角的导航按钮。", BU = (...e) => ({
path: ["侧栏", ...e],
- hint: BU
-}), HU = (e) => ({
+ hint: zU
+}), VU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: BU
+ hint: zU
});
-function Tve(e) {
+function Eve(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -47995,7 +47995,7 @@ function Tve(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Ef[r];
- if (e) return HU(e);
+ if (e) return VU(e);
let t = Df[r];
if (t) return {
path: [
@@ -48003,11 +48003,11 @@ function Tve(e) {
"Peach 配置",
t
],
- hint: BU
+ hint: zU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return VU("JAV", SU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || SU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return BU("JAV", xU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || xU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48017,9 +48017,9 @@ function Tve(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: BU
+ hint: zU
};
- case "preferences": return HU(Ef.appearance);
+ case "preferences": return VU(Ef.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48041,22 +48041,22 @@ function Tve(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return VU("首页");
+ return BU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return VU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);
+ ].includes(t)) return BU("管理", Zf["/data-cleanup"].title, t === "/trash" ? "回收站" : Zf[t].title);
let a = Zf[t];
if (a?.nav && a.title) {
- let e = VU(a.title);
+ let e = BU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return VU("管理", a.title);
+ if (a?.section && a.title) return BU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function Eve({ details: e }) {
+function Dve({ details: e }) {
return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
className: "flex flex-col gap-3",
children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -48071,24 +48071,24 @@ function Eve({ details: e }) {
}, e))
}) : null;
}
-function Dve({ chapter: e }) {
- let t = MU.find((t) => t.id === e);
+function Ove({ chapter: e }) {
+ let t = jU.find((t) => t.id === e);
return t ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "text-body-2-regular text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsxs)($H, {
+ children: /* @__PURE__ */ (0, I.jsxs)(QH, {
summary: "了解这些设置",
children: [/* @__PURE__ */ (0, I.jsx)("p", { children: t.summary }), /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => IU({ chapter: e }),
+ onClick: () => FU({ chapter: e }),
children: "逐步了解这个分区"
}) })]
})
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = $V(), l = Tve(e);
+function kve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = QV(), l = Eve(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48099,7 +48099,7 @@ function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a,
id: "driver-popover-title",
className: "text-body-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48116,7 +48116,7 @@ function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center gap-2 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)(cge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48125,7 +48125,7 @@ function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(PB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(NB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48146,15 +48146,15 @@ function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "text-caption-1-regular text-text-secondary",
children: "导览期间不自动播放;退出后仍按原来的播放设置使用。"
}) : null,
- e.details?.length ? /* @__PURE__ */ (0, I.jsx)($H, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(QH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(Eve, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(Dve, { details: e.details })
}) : null,
e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.scope
}) : null,
- r ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48208,14 +48208,14 @@ function Ove({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function UU(e, t, n) {
+function HU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, Rt.createRoot)(r);
- return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Ove, { ...n }))), () => i.unmount();
+ return (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(kve, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function kve({ go: e }) {
+function Ave({ go: e }) {
let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);
(0, F.useEffect)(() => {
let e = new AbortController();
@@ -48229,8 +48229,8 @@ function kve({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(LU, {
- icon: sge,
+ /* @__PURE__ */ (0, I.jsxs)(IU, {
+ icon: cge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48241,7 +48241,7 @@ function kve({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48257,7 +48257,7 @@ function kve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(KB, {
+ children: /* @__PURE__ */ (0, I.jsx)(GB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48276,7 +48276,7 @@ function kve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(_ge, {
+ children: /* @__PURE__ */ (0, I.jsx)(vge, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48295,7 +48295,7 @@ function kve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(eV, {
+ children: /* @__PURE__ */ (0, I.jsx)($B, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48313,7 +48313,7 @@ function kve({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)($H, {
+ /* @__PURE__ */ (0, I.jsx)(QH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48322,31 +48322,31 @@ function kve({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: iV
+ icon: rV
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: FB
+ icon: PB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: VB
+ icon: BB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: sV
+ icon: oV
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: LB
+ icon: IB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48373,16 +48373,16 @@ function kve({ go: e }) {
]
});
}
-var WU = "tutorial-sync";
-function Ave({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(hve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = $V(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var UU = "tutorial-sync";
+function jve({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(gve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = QV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
C.current = l;
let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {
C.current = e, u(e);
}, N = async (e = !0) => {
let t = j.current;
try {
- let n = await _ve();
+ let n = await vve();
return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);
} catch {
return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;
@@ -48392,7 +48392,7 @@ function Ave({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await vve(e.campaign, t);
+ let r = await yve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48402,8 +48402,8 @@ function Ave({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? iH.dismiss(WU) : iH.error(p, {
- id: WU,
+ !p || t ? rH.dismiss(UU) : rH.error(p, {
+ id: UU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48414,7 +48414,7 @@ function Ave({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- iH.dismiss(WU);
+ rH.dismiss(UU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48435,7 +48435,7 @@ function Ave({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: UU,
+ mountPopover: HU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48474,12 +48474,12 @@ function Ave({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = bve((e) => {
+ let r = xve((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
ie(), T.current = t, g(""), c("");
- let r = MU.find((t) => t.id === e.chapter);
+ let r = jU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48512,7 +48512,7 @@ function Ave({ actions: e }) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? gve(C.current, t) : 0;
+ let i = r ? _ve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48546,7 +48546,7 @@ function Ave({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: UU,
+ mountPopover: HU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48557,18 +48557,18 @@ function Ave({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(yve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(bve(C.current, t.id, t.steps[w.current].id, n, e), {
action: "step",
chapter: t.id,
step: t.steps[w.current].id,
next: n,
skipped: e
}), n >= t.steps.length) {
- if (t.id === "basics" && NU(C.current, t) && te({
+ if (t.id === "basics" && MU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(NU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(MU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48581,8 +48581,8 @@ function Ave({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = mve(location.pathname);
- return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(xV, {
+ let ce = hve(location.pathname);
+ return (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(bV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48597,18 +48597,18 @@ function Ave({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
label: "关闭新手教程",
onPress: ae
})]
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-tools flex shrink-0 flex-col gap-4 px-6 pt-4 pb-3",
- children: /* @__PURE__ */ (0, I.jsx)(_U, {
+ children: /* @__PURE__ */ (0, I.jsx)(gU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: vU,
+ className: _U,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48617,9 +48617,9 @@ function Ave({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(qz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Kz, {
value: e,
- className: yU,
+ className: vU,
children: t
}, e))
})
@@ -48630,7 +48630,7 @@ function Ave({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48642,12 +48642,12 @@ function Ave({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(kve, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(wve, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(Ave, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Tve, {
kind: a,
query: s,
setQuery: c,
@@ -48665,15 +48665,15 @@ function Ave({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var jve = 12e4, Mve = 15e3, GU = () => document.visibilityState !== "hidden", KU = /* @__PURE__ */ new Set([
+var Mve = 12e4, Nve = 15e3, WU = () => document.visibilityState !== "hidden", GU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), qU = "/settings/maintenance#releaseUpdates";
-function Nve() {
+]), KU = "/settings/maintenance#releaseUpdates";
+function Pve() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48684,23 +48684,23 @@ function Nve() {
return null;
}
}
-function JU() {
- let e = (0, F.useRef)(Nve()), [t, n] = (0, F.useState)(null);
+function qU() {
+ let e = (0, F.useRef)(Pve()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !GU()) return;
+ if (t || !WU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), Mve);
+ let s = setTimeout(() => o.abort(), Nve);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && GU() && (r = setTimeout(a, jve)));
+ clearTimeout(s), i === o && (i = void 0, !t && WU() && (r = setTimeout(a, Mve)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, GU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, WU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -48710,12 +48710,12 @@ function JU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function Pve({ navigate: e }) {
- let { snapshot: t, refresh: n } = JU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function Fve({ navigate: e }) {
+ let { snapshot: t, refresh: n } = qU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : KU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : GU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || KU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || GU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48738,22 +48738,22 @@ function Pve({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(DH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(EH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(DH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(EH, {
variant: "secondary",
size: "small",
- href: qU,
+ href: KU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(qU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(KU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(DH, {
+ }), /* @__PURE__ */ (0, I.jsx)(EH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48764,7 +48764,7 @@ function Pve({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function Fve() {
+function Ive() {
let e = (0, F.useContext)(iG), { pathname: t } = Qd();
return (0, F.useEffect)(() => {
e?.openSettings?.(jf(t));
@@ -48775,7 +48775,7 @@ function Fve() {
}, [e]), null;
}
// src/junk-queue.ts
-var YU = [
+var JU = [
[
"",
"全部",
@@ -48811,40 +48811,40 @@ var YU = [
"其它",
"hard-drive"
]
-], Ive = (e) => YU.find(([t]) => t === e)?.[0] ?? "";
-function XU(e) {
+], Lve = (e) => JU.find(([t]) => t === e)?.[0] ?? "";
+function YU(e) {
let t = new URLSearchParams(e);
return {
- kind: Ive(t.get("type")),
+ kind: Lve(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function ZU(e = "", t = "pending") {
+function XU(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function QU(e) {
+function ZU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: ZU("", "pending")
+ href: XU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: ZU("", "dismissed")
+ href: XU("", "dismissed")
};
}
-var $U = (e) => e === "dismissed" ? "已排除" : "待判断", eW = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function Lve({ kind: e, view: t }) {
- let n = YU.map(([n, r, i]) => `<a href="${ZU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${eW(i)}${z(r)}</a>`).join(""), r = QU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs($U(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${eW(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var QU = (e) => e === "dismissed" ? "已排除" : "待判断", $U = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Rve({ kind: e, view: t }) {
+ let n = JU.map(([n, r, i]) => `<a href="${XU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${$U(i)}${z(r)}</a>`).join(""), r = ZU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Fs(QU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${$U(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Rve(e, t, n) {
+function zve(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -48858,7 +48858,7 @@ function Rve(e, t, n) {
n
]);
}
-function zve(e, t) {
+function Bve(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -48871,33 +48871,33 @@ function zve(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var tW = (0, F.createContext)("md");
-function nW({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var eW = (0, F.createContext)("md");
+function tW({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- Rve(d, () => f(!1), [l, u]);
- let p = zve(d, l);
- return /* @__PURE__ */ (0, I.jsx)(vme, {
+ zve(d, () => f(!1), [l, u]);
+ let p = Bve(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(yme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)($L, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(QL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(xme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Sme, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(Dge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(Ez, {
+ }), /* @__PURE__ */ (0, I.jsx)(Oge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(Tz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(Age, GV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(Bpe, {
+ className: q(jge, WV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(Vpe, {
items: a,
- className: q(jge, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(tW.Provider, {
+ className: q(Mge, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(eW.Provider, {
value: r,
children: i
})
@@ -48905,16 +48905,16 @@ function nW({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function rW({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(tW);
- return /* @__PURE__ */ (0, I.jsx)(Upe, {
+function nW({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(eW);
+ return /* @__PURE__ */ (0, I.jsx)(Wpe, {
...n,
- className: (t) => q(KV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => q(GV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var iW = JI({
+var rW = qI({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -48933,15 +48933,15 @@ var iW = JI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function aW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function iW({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(iW.base, iW.variant[e], iW.color[t], n),
+ className: q(rW.base, rW.variant[e], rW.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function oW({ artwork: e, identity: t = e.html, relayout: n }) {
+function aW({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -48960,7 +48960,7 @@ function oW({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var sW = "/api/downloads", cW = ["downloads"], Bve = "/api/downloads/cancel", Vve = "/api/downloads/postprocess", lW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Hve = {
+var oW = "/api/downloads", sW = ["downloads"], Vve = "/api/downloads/cancel", Hve = "/api/downloads/postprocess", cW = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Uve = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -48969,21 +48969,21 @@ var sW = "/api/downloads", cW = ["downloads"], Bve = "/api/downloads/cancel", Vv
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, uW = (e) => {
- let t = e.display_code || e.code || "", { title: n } = tL({
+}, lW = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = eL({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, dW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Uve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Wve() {
+}, uW = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Wve = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Gve() {
let e = (0, F.useId)(), t = It({
- queryKey: [...cW, "pages"],
+ queryKey: [...sW, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${sW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${oW}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => lW(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => cW(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
id: "cloudDownloads",
@@ -48995,14 +48995,14 @@ function Wve() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Gve, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Kve, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49010,9 +49010,9 @@ function Wve() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: MB,
+ leadingIcon: jB,
className: "self-start",
- ...OV(t.isFetchingNextPage),
+ ...DV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49021,16 +49021,16 @@ function Wve() {
]
});
}
-function Gve({ task: e, writable: t }) {
- vL();
- let n = ae(), r = OH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = dW(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function Kve({ task: e, writable: t }) {
+ _L();
+ let n = ae(), r = DH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = uW(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- gL(e.submitted_at)
+ hL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: cW });
+ n.invalidateQueries({ queryKey: sW });
}, g = () => {
- r.run("cancel", (t) => V(Bve, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Vve, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49040,16 +49040,16 @@ function Gve({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(sW, t, "POST", e), h);
+ r.run("resubmit", (e) => V(oW, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Vve, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Hve, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: BH({
+ className: zH({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49060,14 +49060,14 @@ function Gve({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(vM) },
+ style: { "--card-ratio": String(_M) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(oW, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(aW, {
artwork: {
kind: "cover",
html: xo(u, "big")
@@ -49077,7 +49077,7 @@ function Gve({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${uW(e)}`,
+ "aria-label": `打开作品详情:${lW(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -49088,19 +49088,19 @@ function Gve({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: uW(e),
+ title: lW(e),
children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: uW(e)
- }) : uW(e)
+ children: lW(e)
+ }) : lW(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(aW, {
- color: Hve[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(iW, {
+ color: Uve[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(aW, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(iW, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49110,7 +49110,7 @@ function Gve({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(rU, {
+ children: /* @__PURE__ */ (0, I.jsx)(nU, {
source: e.provider,
label: e.provider_label
})
@@ -49137,7 +49137,7 @@ function Gve({ task: e, writable: t }) {
children: [d.map((e) => tn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(UH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(HH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49147,7 +49147,7 @@ function Gve({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: r.error }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -49172,21 +49172,21 @@ function Gve({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(r.busy === "cancel"),
+ ...DV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(r.busy === "resubmit"),
+ ...DV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(r.busy === "postprocess"),
+ ...DV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49201,33 +49201,33 @@ function Gve({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: uW(e)
+ children: lW(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, I.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || Uve(e)
+ children: l || Wve(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var fW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), pW = (e, t) => !!fW(e) && fW(e) === fW(t);
+var dW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), fW = (e, t) => !!dW(e) && dW(e) === dW(t);
// src/react/activity/resource-search.tsx
-function Kve({ className: e }) {
+function qve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: zs("") }
});
}
-function qve(e) {
+function Jve(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => qve(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = OH(), b = (0, F.useRef)(null);
+function Yve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Jve(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = DH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49243,7 +49243,7 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => pW(e.code, t));
+ let r = (n.items || []).find((e) => fW(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49264,18 +49264,18 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsxs)(XH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(YH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Kve : aV,
+ leadingIcon: y.busy ? qve : iV,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -49285,7 +49285,7 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(QH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(nW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(tW, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49293,15 +49293,15 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(rW, {
+ /* @__PURE__ */ (0, I.jsx)(nW, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(rW, {
+ /* @__PURE__ */ (0, I.jsx)(nW, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(rW, {
+ /* @__PURE__ */ (0, I.jsx)(nW, {
id: "uncensored",
children: "无码"
})
@@ -49310,32 +49310,32 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(bV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(bV, {
+ }), /* @__PURE__ */ (0, I.jsx)(yV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(XH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(YH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(XH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(YH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(XH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(YH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(XH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(YH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
@@ -49345,7 +49345,7 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, I.jsx)(XH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(YH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49369,19 +49369,19 @@ function Jve({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Yve = {
+var Xve = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function mW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(xV, {
+function pW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(bV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Xve, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Zve, {
prefill: e,
close: t,
receipt: n,
@@ -49389,26 +49389,26 @@ function mW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Xve({ prefill: e, close: t, receipt: n, provider: r }) {
+function Zve({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Pt({
- queryKey: cW,
- queryFn: ({ signal: e }) => B(`${sW}?limit=50`, e),
- refetchInterval: (e) => lW(e.state.data)
+ queryKey: sW,
+ queryFn: ({ signal: e }) => B(`${oW}?limit=50`, e),
+ refetchInterval: (e) => cW(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(tR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eR, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: RB,
+ leadingIcon: LB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Zve, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Qve, {
header: o,
snapshot: a,
prefill: e,
@@ -49421,7 +49421,7 @@ function Xve({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(i.error)
}) : null
@@ -49437,8 +49437,8 @@ function Xve({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = OH(), C = (0, F.useRef)(null), w = (e) => {
+function Qve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = DH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49454,14 +49454,14 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(sW, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: cW });
- let t = Yve[e.outcome];
+ b(""), S.run("submit", (e) => V(oW, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: sW });
+ let t = Xve[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = dW(e.task);
+ let n = uW(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49485,7 +49485,7 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(XH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(YH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49493,22 +49493,22 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Jve, {
+ /* @__PURE__ */ (0, I.jsx)(Yve, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- pW(e, _?.code) || (v(pW(e, n.code) ? n : null), f("")), m(e);
+ fW(e, _?.code) || (v(fW(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? pW(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? fW(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : pW(t?.code, n.code) ? t : null),
+ } : e : fW(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49520,38 +49520,38 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(QH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(nW, {
+ /* @__PURE__ */ (0, I.jsx)(ZH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(tW, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(rW, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(rU, {
+ children: /* @__PURE__ */ (0, I.jsx)(nU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(XH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(YH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(CV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(CV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(SV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49559,17 +49559,17 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(bV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(yV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), pW(e, _?.code) || v(null);
+ m(e), fW(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(XH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49581,7 +49581,7 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...OV(S.busy === "submit"),
+ ...DV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49589,18 +49589,18 @@ function Zve({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var hW = "/api/wants", gW = ["wants"], Qve = (e) => [
+var mW = "/api/wants", hW = ["wants"], $ve = (e) => [
"wants",
"follow",
e
-], $ve = [
+], eye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], _W = (e) => B(hW, e);
-function eye(e, t) {
- H.setQueryData(gW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], gW = (e) => B(mW, e);
+function tye(e, t) {
+ H.setQueryData(hW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49608,27 +49608,27 @@ function eye(e, t) {
} : n)
} : n);
}
-var tye = (e, t) => B(`${hW}?follow=${encodeURIComponent(e)}`, t), vW = (e, t) => V(hW, {
+var nye = (e, t) => B(`${mW}?follow=${encodeURIComponent(e)}`, t), _W = (e, t) => V(mW, {
action: "add",
...e
-}, "POST", t), yW = (e, t) => V(hW, {
+}, "POST", t), vW = (e, t) => V(mW, {
action: "remove",
ids: e
-}, "POST", t), nye = (e, t) => V(hW, {
+}, "POST", t), rye = (e, t) => V(mW, {
action: "reset",
ids: e
-}, "POST", t), bW = () => H.invalidateQueries({ queryKey: gW }), xW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function SW(e) {
+}, "POST", t), yW = () => H.invalidateQueries({ queryKey: hW }), bW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function xW(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/jav.ts
-var CW = (e, t = "taste", n = "desc") => [
+var SW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function wW(e, t, n = {}) {
+function CW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49637,14 +49637,44 @@ function wW(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
+var wW = [
+ [
+ "release_date",
+ Fj[1],
+ "按发行日期排序"
+ ],
+ [
+ "source_score",
+ "来源评分",
+ "按来源评分排序"
+ ],
+ [
+ "duration",
+ "时长",
+ "按时长排序"
+ ],
+ [
+ "code",
+ "番号",
+ "按番号排序"
+ ],
+ [
+ "taste",
+ "口味",
+ "按口味匹配排序"
+ ]
+];
function TW(e) {
- let t = new URLSearchParams(e);
+ let t = new URLSearchParams(e), n = t.get("sort"), r = t.get("seed") || "";
return {
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
performer: t.get("performer") || "",
studio: t.get("studio") || "",
tag: t.get("tag") || "",
- q: (t.get("q") || "").trim()
+ q: (t.get("q") || "").trim(),
+ sort: n === "random" && r ? "random" : wW.find(([e]) => e === n)?.[0] || "release_date",
+ dir: t.get("dir") === "asc" ? "asc" : "desc",
+ seed: r
};
}
var EW = (e) => [
@@ -49653,18 +49683,24 @@ var EW = (e) => [
e.performer,
e.studio,
e.tag,
- e.q
+ e.q,
+ e.sort,
+ e.dir,
+ e.seed
];
function DW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
- size: "24"
+ size: "24",
+ sort: e.sort,
+ direction: e.dir
});
for (let t of [
"performer",
"studio",
"tag",
- "q"
+ "q",
+ "seed"
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
@@ -49679,14 +49715,14 @@ function OW(e, t, n) {
}
async function kW(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: gW,
- queryFn: () => _W(t),
+ queryKey: hW,
+ queryFn: () => gW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: CW("external"),
- queryFn: () => wW("external", t),
+ queryKey: SW("external"),
+ queryFn: () => CW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
@@ -49710,7 +49746,7 @@ function AW({ value: e }) {
}
var jW = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
function MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = wL(a);
+ let a = (0, F.useRef)(null), o = CL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49719,7 +49755,7 @@ function MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(XI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(YI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49734,7 +49770,7 @@ function MW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? EV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? TV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -49768,14 +49804,14 @@ function NW({ tab: e, navigate: t, find: n }) {
children: "查找资源"
})]
}), /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: SU.map(([e, t]) => ({
+ tabs: xU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(wU(e))
+ onChange: (e) => t(CU(e))
})]
});
}
@@ -49785,7 +49821,7 @@ function PW({ navigate: e, receipt: t }) {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(mW, {
+ }), /* @__PURE__ */ (0, I.jsx)(pW, {
prefill: n,
close: () => r(null),
receipt: t
@@ -49829,7 +49865,7 @@ function HW(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = lM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = cM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -49843,7 +49879,7 @@ function HW(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: On[e] || o.get("state") || "",
- ...Wj(o.get("sort"), o.get("dir"), s, c),
+ ...Uj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? rr() : i.seed || rr()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -49880,8 +49916,8 @@ function WW(e, t) {
}
let { pathname: o, search: s } = W.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = XU(s);
- BW = !0, Ep(ZU(e, t), { replace: !0 });
+ let { kind: e, view: t } = YU(s);
+ BW = !0, Ep(XU(e, t), { replace: !0 });
return;
}
let c = BW;
@@ -50013,7 +50049,7 @@ function tG() {
}
// src/react/router/router.tsx
var nG = (0, F.createContext)(0), rG = () => (0, F.useContext)(nG), iG = (0, F.createContext)(null);
-function rye({ children: e }) {
+function iye({ children: e }) {
let [t, n] = (0, F.useState)(() => W.navigation);
return (0, F.useLayoutEffect)(() => (n(W.navigation), W.listen((e) => {
(0, Lt.flushSync)(() => n(e));
@@ -50027,34 +50063,34 @@ function rye({ children: e }) {
})
});
}
-function iye({ target: e }) {
+function aye({ target: e }) {
let t = ef();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function aye(e, t, n) {
+function oye(e, t, n) {
let r = new URL(e, window.location.href);
M6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function oye() {
+function sye() {
let e = (0, F.useContext)(iG), [t, n] = (0, F.useState)(lp), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(lp()), up((e, t) => {
t ? (0, Lt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && aye(t, e, r.current);
+ e && r.current && oye(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(sye, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(cye, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(cye, {
+ children: /* @__PURE__ */ (0, I.jsx)(lye, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var sye = class extends F.Component {
+var cye = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -50065,10 +50101,10 @@ var sye = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, cye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return K6(e.path) ? (0, Lt.createPortal)(kFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, lye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return K6(e.path) ? (0, Lt.createPortal)(AFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function lye({ children: e }) {
+function uye({ children: e }) {
let t = Qd();
rG();
let n = Op(), r = Af(t.pathname) && !Dp() ? Nf(t.state) : null;
@@ -50080,7 +50116,7 @@ function lye({ children: e }) {
path: e,
element: t.element
}, e)),
- Object.entries(TFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(EFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
@@ -50100,7 +50136,7 @@ function lye({ children: e }) {
path: e,
element: z6["/"].element
}, e)),
- Object.entries(EFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(DFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
@@ -50130,29 +50166,29 @@ function lye({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(wf, { children: [kf.map((e) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Fve, {})
+ element: /* @__PURE__ */ (0, I.jsx)(Ive, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(Sf, {
path: "*",
element: null
})] })
] });
}
-function uye({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(tH, { children: [n, /* @__PURE__ */ (0, I.jsx)(iG.Provider, {
+function dye({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(eH, { children: [n, /* @__PURE__ */ (0, I.jsx)(iG.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(rye, { children: [
- /* @__PURE__ */ (0, I.jsx)(oye, {}),
+ children: /* @__PURE__ */ (0, I.jsxs)(iye, { children: [
+ /* @__PURE__ */ (0, I.jsx)(sye, {}),
/* @__PURE__ */ (0, I.jsx)(qW, {}),
/* @__PURE__ */ (0, I.jsx)(XW, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(nve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(ove, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Pve, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Ave, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(lye, { children: e })
+ r && t ? /* @__PURE__ */ (0, I.jsx)(rve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(sve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(uye, { children: e })
] })
})] });
}
-var dye = { onCaughtError: (e) => {
+var fye = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} }, aG = {
category: "个人分类",
@@ -50179,8 +50215,8 @@ function sG(e, t) {
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function fye({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(iG), a = OH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function pye({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(iG), a = DH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -50209,7 +50245,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(xV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(bV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -50223,7 +50259,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(tR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eR, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -50231,7 +50267,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -50243,20 +50279,20 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(mV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(nW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(pV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(tW, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(aG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(rW, {
+ children: Object.entries(aG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(nW, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(bV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(yV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -50267,7 +50303,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(QV, {
+ /* @__PURE__ */ (0, I.jsx)(ZV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -50275,7 +50311,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(QV, {
+ /* @__PURE__ */ (0, I.jsx)(ZV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -50312,9 +50348,9 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)($H, {
+ extra: /* @__PURE__ */ (0, I.jsx)(QH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -50332,7 +50368,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: a.error
}) : null
@@ -50347,7 +50383,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...OV(a.busy === "remove"),
+ ...DV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -50359,13 +50395,13 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...OV(a.busy === "save"),
+ ...DV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...OV(a.busy === "preview"),
+ ...DV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -50378,7 +50414,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function pye(e, t) {
+function mye(e, t) {
(0, F.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -50402,19 +50438,19 @@ function pye(e, t) {
}
// src/react/catalog-folders/catalog-folders-page.tsx
function cG() {
- return Zd() ? /* @__PURE__ */ (0, I.jsx)(mye, {}) : null;
+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(hye, {}) : null;
}
-function mye() {
+function hye() {
let e = Qd(), t = (0, F.useContext)(iG);
if (!An(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(xL, {
+ return /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: GB,
+ icon: WB,
onClick: () => t?.navigate(sG(e, r ? {
browse: null,
folder: null,
@@ -50422,13 +50458,13 @@ function mye() {
} : { browse: "folders" }))
});
}
-function hye({ children: e, enabled: t }) {
- return Zd() ? /* @__PURE__ */ (0, I.jsx)(gye, {
+function gye({ children: e, enabled: t }) {
+ return Zd() ? /* @__PURE__ */ (0, I.jsx)(_ye, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function gye({ children: e, enabled: t }) {
+function _ye({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = Qd(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -50461,7 +50497,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- pye(o, e);
+ mye(o, e);
let c = a.get("folder") || "", l = Pt({
...oG(s, c),
enabled: o
@@ -50481,7 +50517,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(vye, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(yye, {
scope: s,
selected: c,
current: _,
@@ -50498,21 +50534,21 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(xL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
"aria-label": "打开文件夹目录",
- icon: lge,
+ icon: uge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(kge, {
+ /* @__PURE__ */ (0, I.jsxs)(Age, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(UV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HV, {
current: !c,
onClick: () => g(""),
- icon: GB,
+ icon: WB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(UV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(HV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -50522,15 +50558,15 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(xL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(bL, {
"aria-label": "设置目录用途",
- icon: Xhe,
+ icon: Zhe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50542,7 +50578,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: cr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(CV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(SV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50554,7 +50590,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(QV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
onChange: (e) => i.navigate(sG(r, { folder_recursive: e ? null : "0" })),
@@ -50571,13 +50607,13 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(_ye, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(vye, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(xV, {
+ /* @__PURE__ */ (0, I.jsxs)(bV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -50587,7 +50623,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -50596,7 +50632,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(fye, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(pye, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -50604,7 +50640,7 @@ function lG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function _ye({ nodes: e, go: t }) {
+function vye({ nodes: e, go: t }) {
let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -50615,7 +50651,7 @@ function _ye({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: GB,
+ leadingIcon: WB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -50632,11 +50668,11 @@ function _ye({ nodes: e, go: t }) {
}) : null]
});
}
-function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+function yye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
let a = Pt(oG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Pt({
...oG(e, "", u),
enabled: !!u.trim()
- }), f = $V();
+ }), f = QV();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
@@ -50646,14 +50682,14 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(JV, {
+ return /* @__PURE__ */ (0, I.jsx)(qV, {
id: e.id,
label: e.name,
- icon: GB,
- expandedIcon: qB,
+ icon: WB,
+ expandedIcon: KB,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(JV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(qV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -50669,15 +50705,15 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(bV, {
+ /* @__PURE__ */ (0, I.jsx)(yV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: aV,
+ leadingIcon: iV,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -50712,20 +50748,20 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: GB,
+ leadingIcon: WB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(wV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: aV,
+ icon: iV,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -50734,7 +50770,7 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Mge, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Nge, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -50742,11 +50778,11 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(wV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: GB,
+ icon: WB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(NL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -50767,14 +50803,14 @@ function pG() {
return fG;
}
}
-function yye(e) {
+function bye(e) {
fG = e === "list" ? "list" : "cards";
try {
localStorage.setItem(uG, fG);
} catch {}
dG.forEach((e) => e());
}
-function bye(e) {
+function xye(e) {
dG.add(e);
let t = (t) => {
(t.key === uG || t.key === null) && e();
@@ -50783,39 +50819,39 @@ function bye(e) {
dG.delete(e), removeEventListener("storage", t);
};
}
-var mG = () => (0, F.useSyncExternalStore)(bye, pG, () => "cards");
+var mG = () => (0, F.useSyncExternalStore)(xye, pG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
function hG() {
let e = mG();
- return /* @__PURE__ */ (0, I.jsxs)(Kz, {
+ return /* @__PURE__ */ (0, I.jsxs)(Gz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: yye,
+ onChange: bye,
"data-entity-layout": "",
- className: bU,
- children: [/* @__PURE__ */ (0, I.jsx)(qz, {
+ className: yU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
value: "cards",
"aria-label": "卡片",
- className: xU,
+ className: bU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(ZB, {
+ children: /* @__PURE__ */ (0, I.jsx)(XB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(qz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Kz, {
value: "list",
"aria-label": "列表",
- className: xU,
+ className: bU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(age, {
+ children: /* @__PURE__ */ (0, I.jsx)(oge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -50825,7 +50861,7 @@ function hG() {
}
// src/react/components/icon-swap.tsx
function gG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = kC();
+ let { isFocusVisible: i } = OC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -50843,8 +50879,8 @@ function gG({ a: e, b: t, state: n, className: r }) {
}
function _G({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)(gG, {
- a: jhe,
- b: Ahe,
+ a: Mhe,
+ b: jhe,
className: e
});
}
@@ -50912,9 +50948,9 @@ function kG(e, t) {
let n = vG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var xye = 864e5, Sye = (e, t) => {
+var Sye = 864e5, Cye = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > xye;
+ return Number.isFinite(n) && n - t > Sye;
};
function AG(e, t) {
let n = vG(e.published_at);
@@ -50923,14 +50959,14 @@ function AG(e, t) {
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Sye(n, t) ? " · 晚于现在" : ""
+ suffix: Cye(n, t) ? " · 晚于现在" : ""
};
}
function jG(e, t = Date.now()) {
let n = AG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function Cye(e, t = Date.now()) {
+function wye(e, t = Date.now()) {
let n = AG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
@@ -50946,7 +50982,7 @@ function FG() {
body: JSON.stringify({ entries: e })
}).catch(() => {}), NG.length && (PG = setTimeout(FG, 800));
}
-function wye(e, t, n, r) {
+function Tye(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
MG.has(i) || (MG.add(i), NG.push(t === null ? {
item: e,
@@ -50960,22 +50996,22 @@ function wye(e, t, n, r) {
}), PG ||= setTimeout(FG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Tye = (e) => e === "videos", IG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Eye = (e) => e === "videos", IG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Eye = EV("shuffle"), Dye = EV("arrow-up"), Oye = EV("arrow-down");
-function kye(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Tye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Dye = TV("shuffle"), Oye = TV("arrow-up"), kye = TV("arrow-down");
+function Aye(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Eye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = jL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = jL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = jL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = AL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = AL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = AL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
}, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(EL, {
+ }), /* @__PURE__ */ (0, I.jsx)(TL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -51004,14 +51040,14 @@ function kye(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Nye, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Pye, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
}), d ? /* @__PURE__ */ (0, I.jsx)(IG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(jye, {
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Mye, {
head: T,
row: w,
glide: E,
@@ -51041,7 +51077,7 @@ function kye(e) {
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(DL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -51050,17 +51086,17 @@ function kye(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Mye, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Nye, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Pye, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Fye, { ...e })
})] });
}
-var Aye = [[
+var jye = [[
"videos",
"视频",
"play",
@@ -51071,7 +51107,7 @@ var Aye = [[
"pics",
"image"
]];
-function jye({ head: e, row: t, glide: n, onMedia: r }) {
+function Mye({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -51079,7 +51115,7 @@ function jye({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Aye.map(([t, i, a, o]) => {
+ children: jye.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -51097,7 +51133,7 @@ function jye({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Mye({ head: e, actions: t }) {
+function Nye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -51110,7 +51146,7 @@ function Mye({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: bG(n) }
}, n)),
e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(IG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(DL, {
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -51123,7 +51159,7 @@ function Mye({ head: e, actions: t }) {
}, e.k))
] });
}
-function Nye({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Pye({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -51191,7 +51227,7 @@ function LG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Pye(e) {
+function Fye(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -51203,30 +51239,30 @@ function Pye(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Fye, {
+ /* @__PURE__ */ (0, I.jsx)(Iye, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(VV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Iye, {
+ /* @__PURE__ */ (0, I.jsx)(BV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Lye, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Rye, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(zye, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Lye, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Rye, {
head: e.online,
actions: o
}) : null
] });
}
-function Fye({ text: e, busy: t }) {
+function Iye({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51238,21 +51274,21 @@ function Fye({ text: e, busy: t }) {
});
}
function RG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ return /* @__PURE__ */ (0, I.jsx)(Gz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: bU,
+ className: yU,
children: r.map(([e, t, n]) => {
- let r = EV(n);
- return /* @__PURE__ */ (0, I.jsx)(qz, {
+ let r = TV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: xU,
+ className: bU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -51263,16 +51299,16 @@ function RG({ name: e, label: t, value: n, options: r, onChange: i }) {
});
}
function zG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(TL, {
+ return /* @__PURE__ */ (0, I.jsx)(wL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Eye,
+ icon: Dye,
onPress: e
});
}
-function Iye({ head: e, actions: t }) {
+function Lye({ head: e, actions: t }) {
let n = mG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
@@ -51302,14 +51338,14 @@ function BG({ sorts: e, onSort: t }) {
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(gG, {
- a: Dye,
- b: Oye,
+ a: Oye,
+ b: kye,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Lye({ head: e, actions: t }) {
+function Rye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
@@ -51341,7 +51377,7 @@ function Lye({ head: e, actions: t }) {
]
});
}
-function Rye({ head: e, actions: t, helpers: n }) {
+function zye({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
@@ -51369,7 +51405,7 @@ function Rye({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var zye = "peach.catalog.tiers.v1";
+var Bye = "peach.catalog.tiers.v1";
function VG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
@@ -51384,18 +51420,18 @@ function VG() {
};
}
}
-function Bye(e) {
+function Vye(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(zye, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Bye, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function Vye(e) {
- let t = !e.tiers, n = Jye(e.comboHost);
+function Hye(e) {
+ let t = !e.tiers, n = Yye(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
@@ -51407,13 +51443,13 @@ function Vye(e) {
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(Wye, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Hye, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(Gye, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Uye, { ...e })
]
});
}
-function Hye(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = jL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Uye(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = AL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
@@ -51441,7 +51477,7 @@ function Hye(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
Zs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(EL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(TL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -51485,23 +51521,23 @@ function Hye(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(HG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Uye, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(HG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Wye, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(Kye, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(qye, { ...e })
});
}
-function Uye({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(DL, {
+function Wye({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(EL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(yL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(vL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51510,15 +51546,15 @@ function Uye({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function Wye(e) {
- vL();
+function Gye(e) {
+ _L();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
}, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = UG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = UG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? VG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || Bye({
+ i || Vye({
performers: f,
studios: p
});
@@ -51550,7 +51586,7 @@ function Wye(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
text: tn("performer", n.name),
busy: e.tiersPending
})
@@ -51565,7 +51601,7 @@ function Wye(e) {
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(Gye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Kye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(vL, {
text: n.name,
busy: e.tiersPending
})]
@@ -51573,7 +51609,7 @@ function Wye(e) {
}) : null]
});
}
-function Gye({ studio: e }) {
+function Kye({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -51607,11 +51643,11 @@ function HG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Kye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function qye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let a = mG(), [o, s] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(qye, { count: e }), /* @__PURE__ */ (0, I.jsx)(VV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Jye, { count: e }), /* @__PURE__ */ (0, I.jsx)(BV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
@@ -51637,13 +51673,13 @@ function Kye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
]
})] });
}
-function qye({ count: e }) {
+function Jye({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51654,7 +51690,7 @@ function qye({ count: e }) {
})
});
}
-function Jye(e) {
+function Yye(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -51708,7 +51744,7 @@ function UG(e, t, n, r, i) {
}
// src/react/components/grid-reveal.tsx
var WG = "100% 0px";
-function Yye(e, t) {
+function Xye(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && uc(a.current);
@@ -51772,7 +51808,7 @@ function KG({ pending: e, skeletonHtml: t, children: n }) {
}
// src/library-catalog.ts
var qG = "peach.library-colors.v1", JG = null, YG = /* @__PURE__ */ new Set();
-function Xye() {
+function Zye() {
try {
let e = JSON.parse(localStorage.getItem(qG) || "{}");
return e && typeof e == "object" ? e : {};
@@ -51790,14 +51826,14 @@ function XG(e) {
function ZG() {
return JG;
}
-function Zye(e) {
+function Qye(e) {
return YG.add(e), () => {
YG.delete(e);
};
}
// src/react/components/library-tint.ts
var QG = /* @__PURE__ */ new Map(), $G = !1, eK = /* @__PURE__ */ new Set();
-function Qye(e) {
+function $ye(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
@@ -51806,7 +51842,7 @@ function Qye(e) {
function tK(e) {
QG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...QG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${Qye(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...QG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${$ye(e.color)}}`).join("\n");
}
function nK(e) {
tK(e), eK.forEach((e) => e());
@@ -51818,15 +51854,15 @@ var rK = (e) => new Map(e.map((e) => [e.id, {
location: e.roots?.[0]?.location || "",
color: e.color || ""
}])), iK = !1;
-function $ye() {
+function ebe() {
if (iK) return;
- iK = !0, Zye((e) => nK(rK(e)));
+ iK = !0, Qye((e) => nK(rK(e)));
let e = ZG();
if (e) {
tK(rK(e));
return;
}
- let t = Object.entries(Xye()).filter(([, e]) => e);
+ let t = Object.entries(Zye()).filter(([, e]) => e);
t.length && tK(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
@@ -51835,12 +51871,12 @@ function $ye() {
color: t
}])));
}
-function ebe() {
+function tbe() {
$G || ZG() || ($G = !0, B("/api/libraries").then((e) => XG(e.libraries || [])).catch(() => {
$G = !1;
}));
}
-function tbe(e, t) {
+function nbe(e, t) {
let n = QG.get(e) ?? {
id: e,
name: "",
@@ -51853,20 +51889,20 @@ function tbe(e, t) {
color: t
}]]));
}
-function nbe(e) {
+function rbe(e) {
return eK.add(e), () => {
eK.delete(e);
};
}
function aK({ names: e = !1 } = {}) {
- return $ye(), e && ebe(), (0, F.useSyncExternalStore)(nbe, () => QG, () => QG);
+ return ebe(), e && tbe(), (0, F.useSyncExternalStore)(rbe, () => QG, () => QG);
}
// src/react/components/row-click.ts
-var rbe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+var ibe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
function oK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(rbe);
+ let r = n.closest(ibe);
return !r || !t.contains(r) || r === t;
}
function sK(e) {
@@ -51881,18 +51917,18 @@ function uK({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var ibe = {
+var abe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, abe = {
+}, obe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function obe(e) {
+function sbe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -51922,7 +51958,7 @@ function obe(e) {
}
function dK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && abe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && obe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
@@ -51949,7 +51985,7 @@ function fK({ item: e, actions: t }) {
}) : null] });
}
function pK(e, t, n) {
- return t === "short" ? cK : OM(n);
+ return t === "short" ? cK : DM(n);
}
function mK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);
@@ -52002,7 +52038,7 @@ function mK(e) {
})
};
}
-function sbe() {
+function cbe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -52021,7 +52057,7 @@ function sbe() {
})]
});
}
-function cbe({ item: e, actions: t, on: n, onChange: r }) {
+function lbe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -52040,7 +52076,7 @@ function cbe({ item: e, actions: t, on: n, onChange: r }) {
})
});
}
-function lbe({ reason: e }) {
+function ube({ reason: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
ref: t,
@@ -52054,15 +52090,15 @@ function lbe({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, I.jsx)(Ez, {
+ }), /* @__PURE__ */ (0, I.jsx)(Tz, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: GV,
- children: /* @__PURE__ */ (0, I.jsx)(zz, {
+ className: WV,
+ children: /* @__PURE__ */ (0, I.jsx)(Rz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -52074,14 +52110,14 @@ function hK(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- vL();
+function dbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ _L();
let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = aK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && jl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Nl(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = pK(e, t, n), w = S ? n.size : "small", T = C === cK && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || lK, A = o.titleHtml(e, O).trim() || z(lK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : obe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = mK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = pK(e, t, n), w = S ? n.size : "small", T = C === cK && !!e.is_jav, E = T ? Eo(e, !1) : wo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : wo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || lK, A = o.titleHtml(e, O).trim() || z(lK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : sbe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = mK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -52111,7 +52147,7 @@ function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pic-portrait": C === cK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(oW, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(aW, {
artwork: E,
identity: D,
relayout: (e) => Cl(e, w)
@@ -52161,7 +52197,7 @@ function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(sbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(cbe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -52176,7 +52212,7 @@ function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
children: /* @__PURE__ */ (0, I.jsx)(uK, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(cbe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(lbe, {
item: e,
actions: s,
on: p,
@@ -52281,7 +52317,7 @@ function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(lbe, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(ube, { reason: e.why }) : null : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-tags": "",
children: ne.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -52298,8 +52334,8 @@ function ube({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function dbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : ibe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function fbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : abe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -52381,17 +52417,17 @@ function dbe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function fbe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(dbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(ube, { ...e });
+function pbe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(fbe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(dbe, { ...e });
}
-var gK = (0, F.memo)(fbe), pbe = 1100, mbe = 340, hbe = 5e3;
-function gbe(e, t, n) {
+var gK = (0, F.memo)(pbe), mbe = 1100, hbe = 340, gbe = 5e3;
+function _be(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, hbe);
+ }, s = () => o(!1), c = setTimeout(s, gbe);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
@@ -52439,11 +52475,11 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => gbe(t, e, n)));
+ let s = await Promise.all(a.map((t) => _be(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, pbe);
+ p(), e.cycle = setInterval(p, mbe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -52452,7 +52488,7 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(mbe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(hbe, () => {
e.armed = null, m();
});
},
@@ -52462,8 +52498,8 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var vK = EV("play");
-function _be({ src: e }) {
+var vK = TV("play");
+function vbe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -52477,7 +52513,7 @@ function _be({ src: e }) {
});
}
var yK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function vbe({ faces: e, fallback: t, onOpenEntity: n }) {
+function ybe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -52523,11 +52559,11 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, I.jsx)(oW, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(aW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(_be, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(vbe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -52571,7 +52607,7 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
"data-mix-glyph": "",
"aria-hidden": !0,
children: /* @__PURE__ */ (0, I.jsx)(vK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(vbe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ybe, {
faces: o,
fallback: $n(e),
onOpenEntity: s
@@ -52594,7 +52630,7 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/folia/blockReflows.ts
-var ybe = [
+var bbe = [
[
[
{
@@ -56463,15 +56499,15 @@ var ybe = [
SK,
CK,
(e) => SK(CK(e))
-], TK = xK.flatMap((e) => wK.map((t) => t(e))), bbe = ybe.flatMap((e) => wK.map((t) => e.map(t)));
+], TK = xK.flatMap((e) => wK.map((t) => t(e))), xbe = bbe.flatMap((e) => wK.map((t) => e.map(t)));
TK.length;
-var xbe = (e, t) => {
+var Sbe = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
}, EK = (e, t) => {
let n = xK.length;
- return ((e + t * 2) % n + n) % n * wK.length + xbe(e, t) % wK.length;
-}, Sbe = (e, t) => TK[EK(e, t)], Cbe = (e, t, n) => n < 0 || n >= 12 ? null : bbe[EK(e, t)][n], DK = 103.36, OK = 6.08, kK = 12 * DK, AK = 8 * DK, jK = 12, MK = (e, t) => (e % t + t) % t, wbe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+ return ((e + t * 2) % n + n) % n * wK.length + Sbe(e, t) % wK.length;
+}, Cbe = (e, t) => TK[EK(e, t)], wbe = (e, t, n) => n < 0 || n >= 12 ? null : xbe[EK(e, t)][n], DK = 103.36, OK = 6.08, kK = 12 * DK, AK = 8 * DK, jK = 12, MK = (e, t) => (e % t + t) % t, Tbe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
function NK(e, t) {
let n = Math.max(1, Math.ceil(e / jK)), r = t ? 3 : Math.min(3, n);
return {
@@ -56481,7 +56517,7 @@ function NK(e, t) {
};
}
function PK(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Sbe(e, t)[n];
+ let { x: r, y: i, cols: a, rows: o } = Cbe(e, t)[n];
return {
x: e * kK + r * DK,
y: t * AK + i * DK,
@@ -56489,7 +56525,7 @@ function PK(e, t, n) {
height: o * DK - OK
};
}
-function Tbe(e) {
+function Ebe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
function FK(e, t, n) {
@@ -56509,13 +56545,13 @@ function FK(e, t, n) {
key: n
};
}
-function Ebe(e, t) {
+function Dbe(e, t) {
if (t < 0 || t >= e) return null;
let n = Math.floor(t / jK);
return FK(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % jK}`);
}
function IK(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = Cbe(r, i, a);
+ let [r, i, a] = n.key.split(":").map(Number), o = wbe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
x: r * kK + e.x * DK,
y: i * AK + e.y * DK,
@@ -56523,7 +56559,7 @@ function IK(e, t, n) {
height: e.rows * DK - OK
}]));
}
-function Dbe(e) {
+function Obe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
let e = Math.floor(r / jK), i = PK(e % 3, Math.floor(e / 3), r % jK);
@@ -56534,7 +56570,7 @@ function Dbe(e) {
height: n
};
}
-function Obe(e, t, n, r) {
+function kbe(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -56543,7 +56579,7 @@ function Obe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function kbe(e, t, n, r) {
+function Abe(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
@@ -56558,7 +56594,7 @@ function kbe(e, t, n, r) {
let u = (l * o.columns + i) * jK + s;
if (t && u >= e) continue;
let d = PK(r, n, s);
- wbe(d, a) && c.push({
+ Tbe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -56567,7 +56603,7 @@ function kbe(e, t, n, r) {
}
return c;
}
-var Abe = class {
+var jbe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -56640,7 +56676,7 @@ var Abe = class {
"dur_max",
"region"
];
-function jbe(e = {}) {
+function Mbe(e = {}) {
return LK.some((t) => !!e[t]);
}
// src/react/video-wall/use-wall-camera.ts
@@ -56649,7 +56685,7 @@ var RK = {
y: 16,
scale: 1
};
-function Mbe(e, t, n = RK, r = !1) {
+function Nbe(e, t, n = RK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -56669,7 +56705,7 @@ function Mbe(e, t, n = RK, r = !1) {
let f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = Obe(e, o.current, Dbe(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = kbe(e, o.current, Obe(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -56830,16 +56866,16 @@ function Mbe(e, t, n = RK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Nbe = {
+var Pbe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Pbe = {
+}, Fbe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Fbe(e, t, n) {
+function Ibe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -56880,8 +56916,8 @@ function Fbe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Ibe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = nS(), x = Fbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Lbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = nS(), x = Ibe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
@@ -56898,7 +56934,7 @@ function Ibe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Pbe,
+ transition: b ? { duration: 0 } : Fbe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -56906,7 +56942,7 @@ function Ibe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...OV(C),
+ ...DV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -56956,7 +56992,7 @@ function Ibe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...OV(d),
+ ...DV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57061,7 +57097,7 @@ function BK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Lbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Rbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57070,7 +57106,7 @@ var Lbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Rbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function zbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
@@ -57084,14 +57120,14 @@ function Rbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? GP(e.part_label) : "",
+ e.part_label ? WP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(oW, { artwork: wo(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(aW, { artwork: wo(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? GP(e.part_label) : "",
+ e.part_label ? WP(e.part_label) : "",
qn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57099,7 +57135,7 @@ function Rbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function zbe(e = `${location.pathname}${location.search}`, t = {}) {
+function Bbe(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -57137,7 +57173,7 @@ var UK = /* @__PURE__ */ new Map(), WK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(oW, {
+ children: /* @__PURE__ */ (0, I.jsx)(aW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && ll(e, r);
@@ -57145,27 +57181,27 @@ var UK = /* @__PURE__ */ new Map(), WK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function Vbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
let e = UK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new Abe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, F.useState)(() => m?.exploration || new jbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Pt({
- queryKey: wP(M || {
+ queryKey: CP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => NP(M, {
+ queryFn: ({ signal: e }) => MP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === IP(N, O || w?.id || null)) || w, P = Mbe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === FP(N, O || w?.id || null)) || w, P = Nbe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
@@ -57210,7 +57246,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), UK.size > 8 && UK.delete(UK.keys().next().value));
};
(0, F.useLayoutEffect)(je);
- let Me = kbe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Ne = i ? Me.map((e) => ({
+ let Me = Abe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
})) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? FK(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? IK(e.length, t, Pe) : /* @__PURE__ */ new Map();
@@ -57274,7 +57310,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = LP(N || null, oe || 0);
+ let e = IP(N || null, oe || 0);
e && (k(e.id), Be(e));
};
(0, F.useEffect)(() => {
@@ -57296,7 +57332,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (P.view.size.width / 2 - r.x) / r.scale,
y: (P.view.size.height / 2 - r.y) / r.scale
- }, o = t ? Ebe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? Dbe(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), le(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -57425,7 +57461,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? GP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? WP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57442,7 +57478,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: fe || bn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57452,7 +57488,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Ibe, {
+ /* @__PURE__ */ (0, I.jsx)(Lbe, {
item: Xe,
playing: oe,
frame: b,
@@ -57474,7 +57510,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Rbe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(zbe, {
items: He,
activeId: Xe.id,
kind: N?.kind || "wall",
@@ -57542,18 +57578,18 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(_U, {
+ /* @__PURE__ */ (0, I.jsxs)(gU, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: vU,
- children: [/* @__PURE__ */ (0, I.jsx)(qz, {
+ className: _U,
+ children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
value: "cover",
- className: yU,
+ className: vU,
children: "封面"
- }), /* @__PURE__ */ (0, I.jsx)(qz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Kz, {
value: "thumbnail",
- className: yU,
+ className: vU,
children: "缩略图"
})]
}),
@@ -57646,7 +57682,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: Nbe,
+ layout: Pbe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -57717,7 +57753,7 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57754,20 +57790,20 @@ function Bbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...OV(r),
+ ...DV(r),
onClick: () => void Ge(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...OV(r),
+ ...DV(r),
onClick: () => void Ge(),
children: "立即重试"
})]
@@ -57809,7 +57845,7 @@ var GK = [
"jav",
"thumb"
];
-function Vbe(e = typeof location > "u" ? "/" : location.href) {
+function Hbe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
...GK,
@@ -57819,7 +57855,7 @@ function Vbe(e = typeof location > "u" ? "/" : location.href) {
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Hbe(e, t) {
+async function Ube(e, t) {
let n = new URLSearchParams();
for (let t of GK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
@@ -57834,7 +57870,7 @@ async function Hbe(e, t) {
}
function KK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Us("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Vbe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Us("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Hbe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -57852,12 +57888,12 @@ function KK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Us("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Ube({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+function Wbe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
return e ? r || KK() : t ? Us("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Us("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${VK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
function qK({ label: e, maintenance: t = !1, children: n }) {
- let r = AH("hover");
+ let r = kH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -57873,7 +57909,7 @@ function JK({ option: e, metadataOnly: t, onRun: n }) {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(KV, i ? "cursor-not-allowed opacity-50" : qV, "text-body-2-medium"),
+ className: q(GV, i ? "cursor-not-allowed opacity-50" : KV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -57884,12 +57920,12 @@ function JK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Wbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Gbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await s_e(e, t.signal, a);
+ let o = await c_e(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -57914,7 +57950,7 @@ function Wbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(LH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
value: a,
busy: i,
onChange: (e) => {
@@ -57922,7 +57958,7 @@ function Wbe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(sU, {
+ s ? /* @__PURE__ */ (0, I.jsx)(oU, {
traffic: s,
initial: !0
}) : null,
@@ -57982,7 +58018,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? OV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? DV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58017,7 +58053,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Wbe, {
+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gbe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58026,11 +58062,11 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DH, {
+ u ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(EH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: NB,
+ trailingIcon: MB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58048,7 +58084,7 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: MB,
+ leadingIcon: jB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58058,14 +58094,14 @@ function YK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Ez, {
+ /* @__PURE__ */ (0, I.jsx)(Tz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: GV,
- children: /* @__PURE__ */ (0, I.jsxs)(zz, {
+ className: WV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Rz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: [n ? /* @__PURE__ */ (0, I.jsxs)(qK, {
@@ -58105,40 +58141,40 @@ function XK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !wo(e, "small", !1, t).html).map((e) => e.id))];
}
function ZK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Gbe, {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Kbe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Gbe({ assetIds: e, onComplete: t, className: n }) {
+function Kbe({ assetIds: e, onComplete: t, className: n }) {
let r = Pt({
- queryKey: dH,
- queryFn: ({ signal: e }) => yH(e),
- refetchInterval: (e) => SH(e.state.data, !0)
+ queryKey: uH,
+ queryFn: ({ signal: e }) => vH(e),
+ refetchInterval: (e) => xH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Ft({
- mutationFn: (t) => V(uH, {
+ mutationFn: (t) => V(lH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(dH, e), H.invalidateQueries({ queryKey: dH });
+ a(e.job_id || null), H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !mH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !pH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || mH(u), f = l.error ? cr(l.error) : r.error ? xH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${mH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || pH(u), f = l.error ? cr(l.error) : r.error ? bH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${pH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(CV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(SV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
@@ -58153,10 +58189,10 @@ function Gbe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(DH, {
+ /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58164,22 +58200,22 @@ function Gbe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Kbe(e) {
- return qbe(e) || typeof e == "function" || Jbe(e);
-}
function qbe(e) {
+ return Jbe(e) || typeof e == "function" || Ybe(e);
+}
+function Jbe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Jbe(e) {
+function Ybe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function QK(e, t) {
- return e == null ? null : Kbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+ return e == null ? null : qbe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function Ybe(e) {
+function Xbe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
return r.getIsAggregated?.() ? QK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : QK(n.cell, t.getContext());
@@ -58188,7 +58224,7 @@ function Ybe(e) {
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function Xbe({ update: e, notify: t, unwatched: n }) {
+function Zbe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58305,7 +58341,7 @@ function Xbe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function Zbe(e, t, n) {
+function Qbe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58313,7 +58349,7 @@ function Zbe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var $K = [], eq = 0, { link: tq, unlink: Qbe, propagate: $be, checkDirty: nq, shallowPropagate: rq } = /* @__PURE__ */ Xbe({
+var $K = [], eq = 0, { link: tq, unlink: $be, propagate: exe, checkDirty: nq, shallowPropagate: rq } = /* @__PURE__ */ Zbe({
update(e) {
return e._update();
},
@@ -58324,7 +58360,7 @@ var $K = [], eq = 0, { link: tq, unlink: Qbe, propagate: $be, checkDirty: nq, sh
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, cq(e));
}
}), iq = 0, aq = 0, oq, sq = 0;
-function exe(e) {
+function txe(e) {
try {
++sq, e();
} finally {
@@ -58333,7 +58369,7 @@ function exe(e) {
}
function cq(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = Qbe(n, e);
+ for (; n !== void 0;) n = $be(n, e);
}
function lq() {
if (!(sq > 0)) {
@@ -58344,7 +58380,7 @@ function lq() {
iq = 0, aq = 0;
}
}
-function txe(e, t) {
+function nxe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58356,7 +58392,7 @@ function txe(e, t) {
return oq !== void 0 && tq(i, oq, eq), i._snapshot;
},
subscribe(e) {
- let t = Zbe(e), n = { current: !1 }, r = nxe(() => {
+ let t = Qbe(e), n = { current: !1 }, r = rxe(() => {
i.get(), n.current ? (oq = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
@@ -58388,11 +58424,11 @@ function txe(e, t) {
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && ($be(e), rq(e), lq());
+ e !== void 0 && (exe(e), rq(e), lq());
}
}, i;
}
-function nxe(e) {
+function rxe(e) {
let t = () => {
let t = oq;
oq = n, ++eq, n.depsTail = void 0, n.flags = 6;
@@ -58441,8 +58477,8 @@ function dq(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var rxe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = ow();
+var ixe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = aw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58487,32 +58523,32 @@ var rxe = /* @__PURE__ */ o(((e) => {
}, [p]), l(p), p;
};
})), fq = /* @__PURE__ */ o(((e, t) => {
- t.exports = rxe();
-})), ixe = fq();
-function axe(e, t) {
+ t.exports = ixe();
+})), axe = fq();
+function oxe(e, t) {
return e === t;
}
function pq(e, t = (e) => e, n) {
- let r = n?.compare ?? axe, i = (0, F.useCallback)((t) => {
+ let r = n?.compare ?? oxe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, ixe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, axe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function oxe(e) {
+function sxe(e) {
let t = pq(e.source, e.selector, { compare: uq });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function sxe(e) {
+function cxe(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function cxe(e) {
+function lxe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58542,7 +58578,7 @@ function cxe(e) {
}
};
}
-function lxe(e, t = Object.is) {
+function uxe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58555,10 +58591,10 @@ function lxe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function uxe() {
- return cxe({
- createAtom: txe,
- batch: exe
+function dxe() {
+ return lxe({
+ createAtom: nxe,
+ batch: txe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
@@ -58612,9 +58648,9 @@ function bq(e) {
function xq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var dxe = 3;
-function fxe(e, t) {
- return Sq(e, t, dxe);
+var fxe = 3;
+function pxe(e, t) {
+ return Sq(e, t, fxe);
}
function Sq(e, t, n) {
if (Object.is(e, t)) return !0;
@@ -58628,17 +58664,17 @@ function Sq(e, t, n) {
}
return !0;
}
-function Cq(e, t, n, r = fxe) {
+function Cq(e, t, n, r = pxe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
let t = mq(n, e);
return r(e, t) ? e : t;
});
}
-function pxe(e) {
+function mxe(e) {
return e instanceof Function;
}
-function mxe(e, t) {
+function hxe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58648,7 +58684,7 @@ function mxe(e, t) {
};
return r(e), n;
}
-var hxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var gxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -58673,7 +58709,7 @@ function Tq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ..
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return hxe({
+ return gxe({
...a,
...o
});
@@ -58726,13 +58762,13 @@ function kq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function gxe(e) {
+function _xe(e) {
return e.row.getValue(e.column.id);
}
-function _xe(e) {
+function vxe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function vxe(e) {
+function yxe(e) {
return {
table: e.table,
column: e.column,
@@ -58743,18 +58779,18 @@ function vxe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var yxe = { assignCellPrototype: (e, t) => {
+var bxe = { assignCellPrototype: (e, t) => {
Oq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => gxe(e) },
- cell_renderValue: { fn: (e) => _xe(e) },
+ cell_getValue: { fn: (e) => _xe(e) },
+ cell_renderValue: { fn: (e) => vxe(e) },
cell_getContext: {
- fn: (e) => vxe(e),
+ fn: (e) => yxe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function bxe(e) {
+function xxe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -58762,7 +58798,7 @@ function bxe(e) {
}
return e._columnPrototype;
}
-function xxe(e, t, n, r) {
+function Sxe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -58782,7 +58818,7 @@ function xxe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = bxe(e), u = Object.create(l);
+ let l = xxe(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
@@ -58792,7 +58828,7 @@ function xxe(e, t, n, r) {
function Aq(e) {
return e.getIsVisible?.() ?? !0;
}
-function Sxe(e) {
+function Cxe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
function jq(e, t) {
@@ -58805,30 +58841,30 @@ function Mq(e, t, n, r) {
function Nq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function Cxe(e) {
+function wxe(e) {
e.autoResetExpanded?.();
}
function Pq(e) {
e.autoResetPageIndex?.();
}
-function wxe(e) {
+function Txe(e) {
e.autoResetSorting?.();
}
-function Txe(e) {
+function Exe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Exe(e) {
+function Dxe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Dxe(e) {
+function Oxe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
return jq(e.table, t);
}
return [e];
}
-function Oxe(e) {
+function kxe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -58843,18 +58879,18 @@ function Fq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = xxe(e, o, r, n), c = o;
+ let o = t[a], s = Sxe(e, o, r, n), c = o;
s.columns = c.columns ? Fq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function kxe(e) {
+function Axe(e) {
return Fq(e, e.options.columns);
}
-function Axe(e) {
+function jxe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function jxe(e) {
+function Mxe(e) {
let t = _q(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -58862,10 +58898,10 @@ function jxe(e) {
}
return t;
}
-function Mxe(e) {
+function Nxe(e) {
return jq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function Nxe(e) {
+function Pxe(e) {
let t = _q(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -58873,19 +58909,19 @@ function Nxe(e) {
}
return t;
}
-function Pxe(e, t) {
+function Fxe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Fxe = {
+var Ixe = {
assignColumnPrototype: (e, t) => {
Oq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Exe(e),
+ fn: (e) => Dxe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Dxe(e),
+ fn: (e) => Oxe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -58898,23 +58934,23 @@ var Fxe = {
constructTableAPIs: (e) => {
Dq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => Oxe(e),
+ fn: () => kxe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => kxe(e),
+ fn: () => Axe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => Axe(e),
+ fn: () => jxe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => jxe(e),
+ fn: () => Mxe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Mxe(e),
+ fn: () => Nxe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -58923,15 +58959,15 @@ var Fxe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Nxe(e),
+ fn: () => Pxe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Pxe(e, t) }
+ table_getColumn: { fn: (t) => Fxe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function Ixe(e) {
+function Lxe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -58940,7 +58976,7 @@ function Ixe(e) {
return e._headerPrototype;
}
function Iq(e, t, n) {
- let r = Ixe(e), i = Object.create(r);
+ let r = Lxe(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -58955,14 +58991,14 @@ function Lq(e, t = 1) {
}
return n;
}
-function Lxe(e, t) {
+function Rxe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function Rxe(e, t, n, r) {
+function zxe(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function zxe(e, t) {
+function Bxe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -58970,7 +59006,7 @@ function zxe(e, t) {
function Rq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: Lxe(r, t),
+ id: Rxe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -58979,9 +59015,9 @@ function Rq(e, t, n, r, i, a) {
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
let e = Iq(n, u, {
- id: Rxe(r, t, u.id, a.id),
+ id: zxe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(zxe(s, u)) : void 0,
+ placeholderId: d ? String(Bxe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59011,7 +59047,7 @@ function zq(e) {
} else n.rowSpan = 1;
}
}
-function Bxe(e, t, n, r) {
+function Vxe(e, t, n, r) {
let i = Lq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = Iq(n, t[e], {
depth: i,
@@ -59024,24 +59060,24 @@ function Bq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Bq(e.subHeaders[n], t);
t.push(e);
}
-function Vxe(e) {
+function Hxe(e) {
let t = [];
return Bq(e, t), t;
}
-function Hxe(e) {
+function Uxe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function Uxe(e) {
- return Bxe(e.getAllColumns(), Mq(e, Sxe(e), (e) => e.id), e);
-}
function Wxe(e) {
- return [...e.getHeaderGroups()].reverse();
+ return Vxe(e.getAllColumns(), Mq(e, Cxe(e), (e) => e.id), e);
}
function Gxe(e) {
+ return [...e.getHeaderGroups()].reverse();
+}
+function Kxe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59049,7 +59085,7 @@ function Gxe(e) {
}
return n;
}
-function Kxe(e) {
+function qxe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59058,15 +59094,15 @@ function Kxe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var qxe = {
+var Jxe = {
assignHeaderPrototype: (e, t) => {
Oq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => Vxe(e),
+ fn: (e) => Hxe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Hxe(e),
+ fn: (e) => Uxe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
@@ -59074,7 +59110,7 @@ var qxe = {
constructTableAPIs: (e) => {
Dq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => Uxe(e),
+ fn: () => Wxe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59085,22 +59121,22 @@ var qxe = {
]
},
table_getFooterGroups: {
- fn: () => Wxe(e),
+ fn: () => Gxe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => Gxe(e),
+ fn: () => Kxe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => Kxe(e),
+ fn: () => qxe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function Jxe(e) {
+function Yxe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59108,35 +59144,35 @@ function Jxe(e) {
}
return e._rowPrototype;
}
-var Yxe = (e, t, n, r, i, a, o) => {
- let s = Jxe(e), c = Object.create(s);
+var Xxe = (e, t, n, r, i, a, o) => {
+ let s = Yxe(e), c = Object.create(s);
c._displayIndexCache = -1, c._uniqueValuesCache = _q(), c._valuesCache = _q(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function Xxe() {
+function Zxe() {
return (e) => Tq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => Zxe(e, e.options.data),
+ fn: () => Qxe(e, e.options.data),
onAfterUpdate: wq(() => {
- Cxe(e), Pq(e), wxe(e), Txe(e);
+ wxe(e), Pq(e), Txe(e), Exe(e);
})
});
}
function Vq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = Yxe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = Xxe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Vq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function Zxe(e, t) {
+function Qxe(e, t) {
let n = {
rows: [],
flatRows: [],
@@ -59145,61 +59181,61 @@ function Zxe(e, t) {
return n.rows = Vq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function Qxe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Xxe()(e)), e._rowModels.coreRowModel();
-}
function $xe(e) {
- return e.getCoreRowModel();
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Zxe()(e)), e._rowModels.coreRowModel();
}
function eSe(e) {
- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
+ return e.getCoreRowModel();
}
function tSe(e) {
- return e.getFilteredRowModel();
+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
function nSe(e) {
- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
+ return e.getFilteredRowModel();
}
function rSe(e) {
- return e.getGroupedRowModel();
+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
function iSe(e) {
- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
+ return e.getGroupedRowModel();
}
function aSe(e) {
- return e.getSortedRowModel();
+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
function oSe(e) {
- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
+ return e.getSortedRowModel();
}
function sSe(e) {
- return e.getExpandedRowModel();
+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
function cSe(e) {
- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+ return e.getExpandedRowModel();
}
function lSe(e) {
+ return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+}
+function uSe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var uSe = { constructTableAPIs: (e) => {
+var dSe = { constructTableAPIs: (e) => {
Dq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => Qxe(e) },
- table_getPreFilteredRowModel: { fn: () => $xe(e) },
- table_getFilteredRowModel: { fn: () => eSe(e) },
- table_getPreGroupedRowModel: { fn: () => tSe(e) },
- table_getGroupedRowModel: { fn: () => nSe(e) },
- table_getPreSortedRowModel: { fn: () => rSe(e) },
- table_getSortedRowModel: { fn: () => iSe(e) },
- table_getPreExpandedRowModel: { fn: () => aSe(e) },
- table_getExpandedRowModel: { fn: () => oSe(e) },
- table_getPrePaginatedRowModel: { fn: () => sSe(e) },
- table_getPaginatedRowModel: { fn: () => cSe(e) },
- table_getRowModel: { fn: () => lSe(e) }
+ table_getCoreRowModel: { fn: () => $xe(e) },
+ table_getPreFilteredRowModel: { fn: () => eSe(e) },
+ table_getFilteredRowModel: { fn: () => tSe(e) },
+ table_getPreGroupedRowModel: { fn: () => nSe(e) },
+ table_getGroupedRowModel: { fn: () => rSe(e) },
+ table_getPreSortedRowModel: { fn: () => iSe(e) },
+ table_getSortedRowModel: { fn: () => aSe(e) },
+ table_getPreExpandedRowModel: { fn: () => oSe(e) },
+ table_getExpandedRowModel: { fn: () => sSe(e) },
+ table_getPrePaginatedRowModel: { fn: () => cSe(e) },
+ table_getPaginatedRowModel: { fn: () => lSe(e) },
+ table_getRowModel: { fn: () => uSe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function dSe(e) {
+function fSe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59207,48 +59243,48 @@ function dSe(e) {
}
return e._cellPrototype;
}
-function fSe(e, t, n) {
- let r = dSe(n), i = Object.create(r);
+function pSe(e, t, n) {
+ let r = fSe(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function pSe(e) {
+function mSe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function mSe(e) {
+function hSe(e) {
let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Nq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function hSe(e, t) {
+function gSe(e, t) {
if (vq(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function gSe(e, t) {
+function _Se(e, t) {
if (vq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function _Se(e, t) {
+function vSe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function vSe(e) {
- return mxe(e.subRows, (e) => e.subRows);
-}
function ySe(e) {
+ return hxe(e.subRows, (e) => e.subRows);
+}
+function bSe(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function bSe(e) {
+function xSe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function xSe(e) {
+function SSe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59257,17 +59293,17 @@ function xSe(e) {
}
return t.reverse();
}
-function SSe(e) {
+function CSe(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = fSe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = pSe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function CSe(e) {
+function wSe(e) {
let t = _q(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -59275,52 +59311,52 @@ function CSe(e) {
}
return t;
}
-function wSe(e, t, n, r) {
+function TSe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function TSe(e, t, n) {
+function ESe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var ESe = {
+var DSe = {
assignRowPrototype: (e, t) => {
Oq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => pSe(e) },
+ row_getDisplayIndex: { fn: (e) => mSe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => CSe(e),
+ fn: (e) => wSe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => SSe(e),
+ fn: (e) => CSe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => vSe(e),
+ fn: (e) => ySe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => bSe(e) },
- row_getParentRows: { fn: (e) => xSe(e) },
- row_getUniqueValues: { fn: (e, t) => gSe(e, t) },
- row_getValue: { fn: (e, t) => hSe(e, t) },
- row_renderValue: { fn: (e, t) => _Se(e, t) }
+ row_getParentRow: { fn: (e) => xSe(e) },
+ row_getParentRows: { fn: (e) => SSe(e) },
+ row_getUniqueValues: { fn: (e, t) => _Se(e, t) },
+ row_getValue: { fn: (e, t) => gSe(e, t) },
+ row_renderValue: { fn: (e, t) => vSe(e, t) }
});
},
constructTableAPIs: (e) => {
Dq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => mSe(e),
+ fn: () => hSe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => wSe(t, e, n, r) },
- table_getRow: { fn: (t, n) => TSe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => TSe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => ESe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => ySe(e),
+ fn: () => bSe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -59343,7 +59379,7 @@ function Uq(e, t, n = (e, t) => e === t) {
Hq(e, t, n), e._reactivity.commit?.();
});
}
-function DSe(e) {
+function OSe(e) {
let t = hq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
@@ -59355,7 +59391,7 @@ function DSe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function OSe(e, t) {
+function kSe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59388,19 +59424,19 @@ function OSe(e, t) {
});
}
function Wq(e, t, n) {
- let r = OSe(e, mq(t, e.options));
+ let r = kSe(e, mq(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Uq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var kSe = {
- coreCellsFeature: yxe,
- coreColumnsFeature: Fxe,
- coreHeadersFeature: qxe,
- coreRowModelsFeature: uSe,
- coreRowsFeature: ESe,
+var ASe = {
+ coreCellsFeature: bxe,
+ coreColumnsFeature: Ixe,
+ coreHeadersFeature: Jxe,
+ coreRowModelsFeature: dSe,
+ coreRowsFeature: DSe,
coreTablesFeature: { constructTableAPIs: (e) => {
Dq("coreTablesFeature", e, {
- table_reset: { fn: () => DSe(e) },
+ table_reset: { fn: () => OSe(e) },
table_setOptions: { fn: (t) => Wq(e, t) }
});
} }
@@ -59425,17 +59461,17 @@ function Kq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function ASe(e, t = {}) {
+function jSe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
}), hq(t);
}
-function jSe(e) {
+function MSe(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...kSe,
+ ...ASe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59473,7 +59509,7 @@ function jSe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = ASe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = jSe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59488,7 +59524,7 @@ function jSe(e) {
return r;
}, { debugName: `table/atoms/${n}` });
}
- Hq(v), v.store = sxe(t.createReadonlyAtom(() => {
+ Hq(v), v.store = cxe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59506,7 +59542,7 @@ function jSe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function MSe() {
+function NSe() {
return _q();
}
function qq(e, t) {
@@ -59528,12 +59564,12 @@ function Jq(e) {
function Yq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function NSe(e) {
+function PSe(e) {
return (t) => {
qq(e, t.target.checked);
};
}
-function PSe(e) {
+function FSe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
@@ -59549,16 +59585,16 @@ function Xq(e) {
}
return t;
}
-function FSe(e) {
+function ISe(e) {
return e.getAllFlatColumns().filter((e) => kq(e, "getIsVisible", Jq));
}
-function ISe(e) {
+function LSe(e) {
return e.getAllLeafColumns().filter((e) => kq(e, "getIsVisible", Jq));
}
function Zq(e, t) {
Cq(e, "columnVisibility", t);
}
-function LSe(e, t) {
+function RSe(e, t) {
Zq(e, t ? _q() : Object.assign(_q(), hq(e.initialState.columnVisibility ?? {})));
}
function Qq(e, t) {
@@ -59573,10 +59609,10 @@ function Qq(e, t) {
function $q(e) {
return !e.getAllLeafColumns().some((e) => !kq(e, "getIsVisible", Jq));
}
-function RSe(e) {
+function zSe(e) {
return e.getAllLeafColumns().some((e) => kq(e, "getIsVisible", Jq));
}
-function zSe(e) {
+function BSe(e) {
return (t) => {
Qq(e, t.target.checked);
};
@@ -59584,7 +59620,7 @@ function zSe(e) {
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var eJ = {
getInitialState: (e) => ({
- columnVisibility: MSe(),
+ columnVisibility: NSe(),
...e
}),
getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: yq("columnVisibility", e) }),
@@ -59599,14 +59635,14 @@ var eJ = {
]
},
column_getCanHide: { fn: (e) => Yq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => NSe(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => PSe(e) },
column_toggleVisibility: { fn: (e, t) => qq(e, t) }
});
},
assignRowPrototype: (e, t) => {
Oq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => PSe(e),
+ fn: (e) => FSe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59622,7 +59658,7 @@ var eJ = {
constructTableAPIs: (e) => {
Dq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => FSe(e),
+ fn: () => ISe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59632,7 +59668,7 @@ var eJ = {
]
},
table_getVisibleLeafColumns: {
- fn: () => ISe(e),
+ fn: () => LSe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59642,11 +59678,11 @@ var eJ = {
]
},
table_setColumnVisibility: { fn: (t) => Zq(e, t) },
- table_resetColumnVisibility: { fn: (t) => LSe(e, t) },
+ table_resetColumnVisibility: { fn: (t) => RSe(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => Qq(e, t) },
table_getIsAllColumnsVisible: { fn: () => $q(e) },
- table_getIsSomeColumnsVisible: { fn: () => RSe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => zSe(e) }
+ table_getIsSomeColumnsVisible: { fn: () => zSe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => BSe(e) }
});
}
}, tJ = 0, nJ = 10;
@@ -59656,7 +59692,7 @@ function rJ() {
pageSize: nJ
};
}
-function BSe(e) {
+function VSe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? tJ) === tJ) return;
oJ(e, !0);
@@ -59665,7 +59701,7 @@ function BSe(e) {
function iJ(e, t) {
Cq(e, "pagination", t);
}
-function VSe(e, t) {
+function HSe(e, t) {
iJ(e, t ? rJ() : hq(e.initialState.pagination ?? rJ()));
}
function aJ(e, t) {
@@ -59680,7 +59716,7 @@ function aJ(e, t) {
function oJ(e, t) {
aJ(e, t ? tJ : e.initialState.pagination?.pageIndex ?? tJ);
}
-function HSe(e, t) {
+function USe(e, t) {
sJ(e, t ? nJ : e.initialState.pagination?.pageSize ?? nJ);
}
function sJ(e, t) {
@@ -59693,31 +59729,31 @@ function sJ(e, t) {
};
});
}
-function USe(e) {
+function WSe(e) {
let t = cJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function WSe(e) {
+function GSe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function GSe(e) {
+function KSe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? tJ, n = cJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function KSe(e) {
+function qSe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? tJ, n = cJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function qSe(e) {
+function JSe(e) {
return aJ(e, (e) => e - 1);
}
-function JSe(e) {
+function YSe(e) {
return aJ(e, (e) => e + 1);
}
-function YSe(e) {
+function XSe(e) {
return aJ(e, 0);
}
-function XSe(e) {
+function ZSe(e) {
let t = cJ(e);
if (!(!Number.isFinite(t) || t <= 0)) return aJ(e, t - 1);
}
@@ -59742,34 +59778,34 @@ var uJ = {
getDefaultTableOptions: (e) => ({ onPaginationChange: yq("pagination", e) }),
constructTableAPIs: (e) => {
Dq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => BSe(e) },
+ table_autoResetPageIndex: { fn: () => VSe(e) },
table_setPagination: { fn: (t) => iJ(e, t) },
- table_resetPagination: { fn: (t) => VSe(e, t) },
+ table_resetPagination: { fn: (t) => HSe(e, t) },
table_setPageIndex: { fn: (t) => aJ(e, t) },
table_resetPageIndex: { fn: (t) => oJ(e, t) },
table_setPageSize: { fn: (t) => sJ(e, t) },
table_getPageCount: { fn: () => cJ(e) },
- table_resetPageSize: { fn: (t) => HSe(e, t) },
- table_getPageOptions: { fn: () => USe(e) },
- table_getCanPreviousPage: { fn: () => WSe(e) },
- table_getCanNextPage: { fn: () => GSe(e) },
- table_getCanLastPage: { fn: () => KSe(e) },
- table_previousPage: { fn: () => qSe(e) },
- table_nextPage: { fn: () => JSe(e) },
- table_firstPage: { fn: () => YSe(e) },
- table_lastPage: { fn: () => XSe(e) },
+ table_resetPageSize: { fn: (t) => USe(e, t) },
+ table_getPageOptions: { fn: () => WSe(e) },
+ table_getCanPreviousPage: { fn: () => GSe(e) },
+ table_getCanNextPage: { fn: () => KSe(e) },
+ table_getCanLastPage: { fn: () => qSe(e) },
+ table_previousPage: { fn: () => JSe(e) },
+ table_nextPage: { fn: () => YSe(e) },
+ table_firstPage: { fn: () => XSe(e) },
+ table_lastPage: { fn: () => ZSe(e) },
table_getRowCount: { fn: () => lJ(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function ZSe() {
+function QSe() {
return _q();
}
function dJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function QSe(e, t) {
+function $Se(e, t) {
e._lastSelectedRowId = null, dJ(e, t ? _q() : Object.assign(_q(), hq(e.initialState.rowSelection ?? {})));
}
function fJ(e, t, n) {
@@ -59797,10 +59833,10 @@ function pJ(e, t, n) {
}), a;
});
}
-function $Se(e) {
+function eCe(e) {
return e.getCoreRowModel();
}
-function eCe(e) {
+function tCe(e) {
let t = e.getCoreRowModel();
return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
rows: [],
@@ -59808,7 +59844,7 @@ function eCe(e) {
rowsById: _q()
};
}
-function tCe(e) {
+function nCe(e) {
let t = e.getFilteredRowModel();
return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
rows: [],
@@ -59816,7 +59852,7 @@ function tCe(e) {
rowsById: _q()
};
}
-function nCe(e) {
+function rCe(e) {
let t = e.getSortedRowModel();
return kq(e, "getIsSomeRowsSelected", _J) ? OJ(t, e) : {
rows: [],
@@ -59847,15 +59883,15 @@ function gJ(e) {
function _J(e) {
return kq(e, "getSelectedRowIds", mJ).length > 0;
}
-function rCe(e) {
+function iCe(e) {
return e.getPaginatedRowModel().flatRows.filter((e) => xJ(e)).some((e) => yJ(e) || kq(e, "getIsSomeSelected", bJ));
}
-function iCe(e) {
+function aCe(e) {
return (t) => {
fJ(e, t.target.checked);
};
}
-function aCe(e) {
+function oCe(e) {
return (t) => {
pJ(e, t.target.checked);
};
@@ -59874,7 +59910,7 @@ function yJ(e) {
function bJ(e) {
return AJ(e) === "some";
}
-function oCe(e) {
+function sCe(e) {
return AJ(e) === "all";
}
function xJ(e) {
@@ -59889,15 +59925,15 @@ function CJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function sCe(e, t) {
+function cCe(e, t) {
let n = xJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- a.options.enableRowRangeSelection !== !1 && s !== null && CJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && cCe(e, s, o, t) || vJ(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && CJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && lCe(e, s, o, t) || vJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function cCe(e, t, n, r) {
+function lCe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
@@ -59992,7 +60028,7 @@ var jJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: ZSe(),
+ rowSelection: QSe(),
...e
}),
getDefaultTableOptions: (e) => ({
@@ -60019,7 +60055,7 @@ var jJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => oCe(e),
+ fn: (e) => sCe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60029,26 +60065,26 @@ var jJ = {
row_getCanSelect: { fn: (e) => xJ(e) },
row_getCanSelectSubRows: { fn: (e) => SJ(e) },
row_getCanMultiSelect: { fn: (e) => CJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => sCe(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => cCe(e, t) }
});
},
constructTableAPIs: (e) => {
Dq("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => dJ(e, t) },
- table_resetRowSelection: { fn: (t) => QSe(e, t) },
+ table_resetRowSelection: { fn: (t) => $Se(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => fJ(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => pJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => $Se(e) },
+ table_getPreSelectedRowModel: { fn: () => eCe(e) },
table_getSelectedRowModel: {
- fn: () => eCe(e),
+ fn: () => tCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => tCe(e),
+ fn: () => nCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => nCe(e),
+ fn: () => rCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -60078,32 +60114,32 @@ var jJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => rCe(e),
+ fn: () => iCe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => iCe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => aCe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => aCe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => oCe(e) }
});
}
-}, lCe = /([0-9]+)/gm;
+}, uCe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function uCe(e) {
+function dCe(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var MJ = /* @__PURE__ */ uCe({ sort: (e, t) => dCe(e, t) });
-function dCe(e, t) {
+var MJ = /* @__PURE__ */ dCe({ sort: (e, t) => fCe(e, t) });
+function fCe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function fCe() {
+function pCe() {
return [];
}
function NJ(e, t) {
@@ -60112,7 +60148,7 @@ function NJ(e, t) {
function PJ(e, t) {
NJ(e, t ? [] : hq(e.initialState.sorting ?? []));
}
-function pCe(e) {
+function mCe(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && PJ(e);
}
function FJ(e) {
@@ -60123,7 +60159,7 @@ function FJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(lCe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(uCe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60144,7 +60180,7 @@ function IJ(e) {
}
function LJ(e) {
let t = e.table._rowModelFns.sortFns;
- return pxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? FJ(e) : t?.[e.columnDef.sortFn] ?? MJ;
+ return mxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? FJ(e) : t?.[e.columnDef.sortFn] ?? MJ;
}
function RJ(e, t, n) {
let r = BJ(e, n && HJ(e)), i = t !== void 0;
@@ -60182,13 +60218,13 @@ function UJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function mCe(e) {
+function hCe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function hCe(e) {
+function gCe(e) {
NJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function gCe(e) {
+function _Ce(e) {
let t = VJ(e);
return (n) => {
t && RJ(e, void 0, HJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -60198,7 +60234,7 @@ function gCe(e) {
var WJ = {
getInitialState(e) {
return {
- sorting: fCe(),
+ sorting: pCe(),
...e
};
},
@@ -60226,34 +60262,34 @@ var WJ = {
column_getCanSort: { fn: (e) => VJ(e) },
column_getCanMultiSort: { fn: (e) => HJ(e) },
column_getIsSorted: { fn: (e) => UJ(e) },
- column_getSortIndex: { fn: (e) => mCe(e) },
- column_clearSorting: { fn: (e) => hCe(e) },
- column_getToggleSortingHandler: { fn: (e) => gCe(e) }
+ column_getSortIndex: { fn: (e) => hCe(e) },
+ column_clearSorting: { fn: (e) => gCe(e) },
+ column_getToggleSortingHandler: { fn: (e) => _Ce(e) }
});
},
constructTableAPIs(e) {
Dq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => pCe(e) },
+ table_autoResetSorting: { fn: () => mCe(e) },
table_setSorting: { fn: (t) => NJ(e, t) },
table_resetSorting: { fn: (t) => PJ(e, t) }
});
}
-}, _Ce = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+}, vCe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
function GJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = jSe({
+ let t = MSe({
...e,
features: {
- coreReactivityFeature: uxe(),
+ coreReactivityFeature: dxe(),
...e.features
}
});
- return t.Subscribe = ((e) => oxe({
+ return t.Subscribe = ((e) => sxe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = Ybe, {
+ })), t.FlexRender = Xbe, {
table: t,
- rootSource: lxe(t.store, uq)
+ rootSource: uxe(t.store, uq)
};
}), i = n;
Wq(i, (t) => ({
@@ -60261,7 +60297,7 @@ function GJ(e, t) {
...e
}), { syncExternalState: !1 });
let a = i.options.state, o = r.get(), s = pq(r, t, { compare: uq });
- return _Ce(() => {
+ return vCe(() => {
r.markCommitted(o), Uq(i, a ?? null, uq);
}), (0, F.useMemo)(() => ({
...n,
@@ -60277,7 +60313,7 @@ function GJ(e, t) {
function KJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(Vme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Hme, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60285,7 +60321,7 @@ function KJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility.v1", vCe = {
+var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility.v1", yCe = {
select: {
width: 48,
min: 48,
@@ -60351,13 +60387,13 @@ var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, yCe = {
+}, bCe = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, bCe = {
+}, xCe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60387,11 +60423,11 @@ var qJ = "peach.catalog-column-widths.v1", JJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: bCe[e],
- ...vCe[e],
+ label: xCe[e],
+ ...yCe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: yCe[e] !== !1
+ visible: bCe[e] !== !1
}));
function XJ(e) {
try {
@@ -60401,7 +60437,7 @@ function XJ(e) {
return {};
}
}
-function xCe() {
+function SCe() {
let e = XJ(qJ), t = XJ(JJ);
return YJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
@@ -60422,22 +60458,22 @@ function QJ() {
return !1;
}
}
-function SCe(e) {
+function CCe(e) {
try {
e ? localStorage.setItem(ZJ, "1") : localStorage.removeItem(ZJ);
} catch {}
}
-var CCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var wCe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
function $J(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function wCe(e) {
- let t = xCe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${$J(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (QJ() ? CCe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
+function TCe(e) {
+ let t = SCe(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${$J(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (QJ() ? wCe : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
}
function eY(e, t) {
- return pG() === "list" ? wCe(e) : nc(e, {
+ return pG() === "list" ? TCe(e) : nc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -60460,7 +60496,7 @@ function tY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let r = t.closest("[role=\"row\"][data-key]");
r && oK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(zme, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(Bme, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -60470,7 +60506,7 @@ function tY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
}
// src/react/components/select.tsx
function nY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(nW, {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(tW, {
...r,
size: n,
renderValue: t
@@ -60480,7 +60516,7 @@ function nY({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, I.jsx)(nW, {
+ return /* @__PURE__ */ (0, I.jsx)(tW, {
...r,
size: n,
renderValue: a
@@ -60540,10 +60576,10 @@ function iY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(rW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nW, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(rW, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
id: e.id,
children: e.label
}, e.id))]
@@ -60588,7 +60624,7 @@ function aY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(rW, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
@@ -60618,7 +60654,7 @@ function sY(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function TCe(e, t) {
+function ECe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
@@ -60650,7 +60686,7 @@ function TCe(e, t) {
}
};
}
-function ECe(e, t, n, r = {}) {
+function DCe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
@@ -60669,7 +60705,7 @@ function cY(e, t, n) {
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = TCe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = ECe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = ECe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = DCe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -60688,14 +60724,14 @@ function cY(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function DCe() {
+function OCe() {
return cY("catalog", YJ, {
widths: qJ,
visibility: JJ
});
}
// src/react/components/rating-stars.tsx
-var lY = EV("star");
+var lY = TV("star");
function uY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -60735,9 +60771,9 @@ function uY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function OCe({ item: e, actions: t }) {
- let { rating: n } = e, r = OH(), i = (0, F.useRef)(0), a = xP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- vP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function kCe({ item: e, actions: t }) {
+ let { rating: n } = e, r = DH(), i = (0, F.useRef)(0), a = bP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ _P(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -60753,7 +60789,7 @@ function OCe({ item: e, actions: t }) {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -60793,10 +60829,10 @@ function fY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(DH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(EH, {
size: "small",
href: e.href,
- trailingIcon: NB,
+ trailingIcon: MB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -60813,7 +60849,7 @@ function pY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(QV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(ZV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -60833,14 +60869,14 @@ function pY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(Ez, {
+ }), /* @__PURE__ */ (0, I.jsx)(Tz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(GV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(jH, {
+ className: q(WV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(AH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -60885,7 +60921,7 @@ function mY({ preferences: e, label: t = "表格" }) {
}
function hY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Xme, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Zme, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
function gY(e, t) {
@@ -60897,7 +60933,7 @@ function gY(e, t) {
}
function _Y({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = gY(e, n);
- return /* @__PURE__ */ (0, I.jsx)(QV, {
+ return /* @__PURE__ */ (0, I.jsx)(ZV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -60910,12 +60946,12 @@ function _Y({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var kCe = Kq({
+var ACe = Kq({
rowSortingFeature: WJ,
rowSelectionFeature: jJ,
rowPaginationFeature: uJ,
columnVisibilityFeature: eJ
-}), ACe = [
+}), jCe = [
{
id: "name",
label: "名称"
@@ -60953,8 +60989,8 @@ var kCe = Kq({
label: "观看时间"
}
], vY = /* @__PURE__ */ new Map();
-function jCe(e) {
- let t = DCe(), n = aK(), r = mP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+function MCe(e) {
+ let t = OCe(), n = aK(), r = pP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
}), [a, o] = (0, F.useState)(() => vY.get(i) || {
@@ -60993,7 +61029,7 @@ function jCe(e) {
}
}), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : XK(f, e.layout.javImage), [h] = (0, F.useState)(QJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && SCe(m.length > 0);
+ d.data && !d.isPlaceholderData && CCe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61026,7 +61062,7 @@ function jCe(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = GJ({
- features: kCe,
+ features: ACe,
columns: (0, F.useMemo)(() => {
let t = Gq();
return t.columns([
@@ -61037,7 +61073,7 @@ function jCe(e) {
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(QV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(ZV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61049,7 +61085,7 @@ function jCe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(MCe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(NCe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61106,7 +61142,7 @@ function jCe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(OCe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(kCe, {
item: t.original,
actions: e.actions
})
@@ -61195,7 +61231,7 @@ function jCe(e) {
"data-toolbar-actions": "",
children: [/* @__PURE__ */ (0, I.jsx)(mY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(iY, {
label: "作品列表",
- options: ACe,
+ options: jCe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61230,7 +61266,7 @@ function jCe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(mB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(hB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(pB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(mB, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
@@ -61240,33 +61276,33 @@ function jCe(e) {
children: [QK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(HV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(VV, {})
}) : null]
}), /* @__PURE__ */ (0, I.jsx)(hY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(hB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(mB, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(vB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(_B, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(xB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(bB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(CB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: $J(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(CB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(xB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: $J(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(bB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(CB, { children: QK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(CB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: QK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -61282,9 +61318,9 @@ function jCe(e) {
]
});
}
-function MCe({ item: e, props: t, disabled: n }) {
+function NCe({ item: e, props: t, disabled: n }) {
let r = wo(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- vL();
+ _L();
let { avatar: l, who: u } = mK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = aK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61310,7 +61346,7 @@ function MCe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(oW, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(aW, {
artwork: r,
relayout: (e) => Cl(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61365,7 +61401,7 @@ function MCe({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(eU, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, I.jsx)($H, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -61375,13 +61411,13 @@ function MCe({ item: e, props: t, disabled: n }) {
// src/react/catalog-grid/catalog-grid-page.tsx
function yY(e) {
let t = mG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(PCe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${mP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(jCe, { ...e }, n);
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(FCe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(MCe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(FCe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(ICe, { ...e }, r);
}
-function NCe({ name: e }) {
+function PCe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61404,7 +61440,7 @@ function bY({ children: e, selectMode: t }) {
children: e
});
}
-function PCe(e) {
+function FCe(e) {
let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(gK, {
item: i,
variant: r,
@@ -61424,8 +61460,8 @@ function PCe(e) {
children: i
});
}
-function FCe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? wue(e) : Cue(e), [s] = (0, F.useState)(() => e.wall ? hP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? hP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function ICe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Tue(e) : wue(e), [s] = (0, F.useState)(() => e.wall ? mP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? mP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61451,7 +61487,7 @@ function FCe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Eue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Due(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61461,7 +61497,7 @@ function FCe(e) {
e.mix,
a,
r.javImage
- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || jbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Tbe(e.item) ? [e.item] : []), y = a ? [] : XK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = ICe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Mbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Ebe(e.item) ? [e.item] : []), y = a ? [] : XK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = LCe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61489,7 +61525,7 @@ function FCe(e) {
let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
let e = await u.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(RCe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(zCe, {
seed: i.seed,
layout: r,
helpers: t,
@@ -61506,8 +61542,8 @@ function FCe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Bbe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${mP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Vbe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61515,7 +61551,7 @@ function FCe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? bn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? Ube({
+ emptyHtml: u.data && !v.length ? Wbe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61547,7 +61583,7 @@ function FCe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: kue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(LCe, {
+ children: Aue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(RCe, {
cut: t.strip,
props: e,
onOpen: T
@@ -61639,13 +61675,13 @@ function xY({ entity: e, load: t, enabled: n, children: r }) {
onRetry: () => void d(!0)
}) : null] });
}
-function ICe(e, t, n, r, i) {
- let a = ["catalog-short-layout", mP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function LCe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", pP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && gP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && hP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -61671,7 +61707,7 @@ function ICe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Oue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${kue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -61685,9 +61721,9 @@ function ICe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Due(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Oue(n.length - t, h, l);
if (!g.length) return;
- let _ = gP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = hP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -61704,7 +61740,7 @@ function ICe(e, t, n, r, i) {
});
}, [d]), m;
}
-function LCe({ cut: e, props: t, onOpen: n }) {
+function RCe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -61720,7 +61756,7 @@ function LCe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(NCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(PCe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
@@ -61743,11 +61779,11 @@ function LCe({ cut: e, props: t, onOpen: n }) {
function SY(e, t, n) {
return To(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function RCe({ seed: e, layout: t, helpers: n, actions: r }) {
+function zCe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => _P(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => gP(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), SY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = SY(e, t, !1);
return /* @__PURE__ */ (0, I.jsx)(bK, {
@@ -61782,31 +61818,31 @@ async function CY(e) {
queryFn: () => yr(e)
});
}
-var zCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), BCe = "/api/duplicates?limit=120", wY = ["duplicates"], TY = "/api/batch", EY = (e) => B(BCe, e), VCe = /[\s\-_.()[\]【】/\\]/;
-function HCe(e) {
+var BCe = (e) => (e?.sources ?? []).filter((e) => _n.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), VCe = "/api/duplicates?limit=120", wY = ["duplicates"], TY = "/api/batch", EY = (e) => B(VCe, e), HCe = /[\s\-_.()[\]【】/\\]/;
+function UCe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !VCe.test(n[r - 1]);) --r;
+ for (; r > 0 && !HCe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var UCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function WCe(e) {
+var WCe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function GCe(e) {
await Promise.all([H.fetchQuery({
queryKey: wY,
queryFn: () => EY(e)
}), CY(e)]);
}
-var GCe = {
+var KCe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, KCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), DY = (e, t) => KCe(e, t).filter((t) => e.some((e) => e.location !== t)), qCe = (e, t) => t.filter((t) => e.some((e) => DY(e.files, [t]).length));
-function JCe(e, t) {
+}, qCe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), DY = (e, t) => qCe(e, t).filter((t) => e.some((e) => e.location !== t)), JCe = (e, t) => t.filter((t) => e.some((e) => DY(e.files, [t]).length));
+function YCe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -61825,11 +61861,11 @@ function JCe(e, t) {
}
return n;
}
-function YCe(e, t) {
+function XCe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function XCe(e, t) {
+async function ZCe(e, t) {
for (let n = 0; n < e.length; n += 200) await V(TY, {
ids: e.slice(n, n + 200),
operation: t,
@@ -61837,7 +61873,7 @@ async function XCe(e, t) {
});
}
// src/react/media-repair/media-repair.ts
-var OY = "/api/media-repair", kY = ["media-repair"], AY = ["media-repair", "libraries"], ZCe = {
+var OY = "/api/media-repair", kY = ["media-repair"], AY = ["media-repair", "libraries"], QCe = {
status: "idle",
library: "",
stage: "",
@@ -61850,7 +61886,7 @@ var OY = "/api/media-repair", kY = ["media-repair"], AY = ["media-repair", "libr
skipped: 0,
message: ""
}, jY = (e) => B(OY, e), MY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function QCe(e) {
+async function $Ce(e) {
await Promise.all([H.fetchQuery({
queryKey: kY,
queryFn: () => jY(e)
@@ -61860,28 +61896,28 @@ async function QCe(e) {
})]);
}
var NY = (e) => Number(e).toLocaleString();
-function $Ce(e) {
+function ewe(e) {
if (e.status === "running") {
let t = e.total ? `${NY(Math.min(e.checked || 0, e.total))} / ${NY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${NY(e.repaired)} 部,${NY(e.failed)} 部修不了` : `修好 ${NY(e.repaired)} 部` : "";
}
-var ewe = (e) => `${NY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, twe = "/api/quality-goals?limit=200", PY = ["quality-goals"], FY = (e) => B(twe, e);
-async function nwe(e) {
+var twe = (e) => `${NY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, nwe = "/api/quality-goals?limit=200", PY = ["quality-goals"], FY = (e) => B(nwe, e);
+async function rwe(e) {
await H.fetchQuery({
queryKey: PY,
queryFn: () => FY(e)
});
}
-var rwe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
+var iwe = (e) => e.has_cover ? co(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
function IY(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
// src/react/review/review.ts
-var iwe = "/api/review", awe = "/api/review/decision", owe = "/api/review/genre", LY = ["review"], RY = {
+var awe = "/api/review", owe = "/api/review/decision", swe = "/api/review/genre", LY = ["review"], RY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -61891,7 +61927,7 @@ var iwe = "/api/review", awe = "/api/review/decision", owe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, swe = Object.keys(RY), cwe = "metadata_fields", zY = (e) => typeof e == "string" && Object.hasOwn(RY, e), lwe = {
+}, cwe = Object.keys(RY), lwe = "metadata_fields", zY = (e) => typeof e == "string" && Object.hasOwn(RY, e), uwe = {
creator_tags: "creator",
western_identity: "creator"
}, BY = [
@@ -61902,7 +61938,7 @@ var iwe = "/api/review", awe = "/api/review/decision", owe = "/api/review/genre"
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, uwe = {
+}, dwe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
@@ -61910,7 +61946,7 @@ var iwe = "/api/review", awe = "/api/review/decision", owe = "/api/review/genre"
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function dwe(e, t) {
+function fwe(e, t) {
return {
...e,
...t(UY(e, "pending")),
@@ -61920,7 +61956,7 @@ function dwe(e, t) {
}
};
}
-function fwe(e, t) {
+function pwe(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;
}
@@ -61941,10 +61977,10 @@ function WY(e, t) {
}
return [...n.values()];
}
-function pwe(e, t, n) {
+function mwe(e, t, n) {
return n && WY(e, t).find((e) => e.key === n)?.rows || e;
}
-function mwe(e, t) {
+function hwe(e, t) {
let n = hr(e.length, 20), r = gr(t, n);
return {
page: r,
@@ -61952,32 +61988,32 @@ function mwe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function hwe(e) {
+function gwe(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 gwe(e, t, n, r, i, a) {
+function _we(e, t, n, r, i, a) {
return IY(e, t, n, r, i, a);
}
-function _we(e, t) {
+function vwe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function GY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var KY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function vwe(e, t) {
+function ywe(e, t) {
let n = GY(e, t), r = KY(e, t);
return r ? `${n} · ${r}` : n;
}
-var ywe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", bwe = (e) => String(e.tags || "").split("|").filter(Boolean), xwe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Swe(e) {
+var bwe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", xwe = (e) => String(e.tags || "").split("|").filter(Boolean), Swe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Cwe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Cwe(e, t, n, r) {
+function wwe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -61993,22 +62029,22 @@ function Cwe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var wwe = (e) => ({
+var Twe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
async function qY(e) {
- let t = await B(iwe, e);
+ let t = await B(awe, e);
for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${VY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function Twe(e) {
- let t = await V(awe, e);
+async function Ewe(e) {
+ let t = await V(owe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(LY, (t) => t && dwe(t, (t) => ({
+ H.setQueryData(LY, (t) => t && fwe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62024,21 +62060,21 @@ async function Twe(e) {
}
return t;
}
-function Ewe(e, t) {
+function Dwe(e, t) {
let n = H.getQueryData(LY);
return n && BY.flatMap((t) => UY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var Dwe = (e, t) => V(owe, {
+var Owe = (e, t) => V(swe, {
genre: e,
tag: t
});
-async function Owe(e) {
+async function kwe(e) {
await H.fetchQuery({
queryKey: LY,
queryFn: () => qY(e)
});
}
-function kwe(e, t, n) {
+function Awe(e, t, n) {
let r = new Set(t);
r.size && H.setQueryData(LY, (t) => {
if (!t) return t;
@@ -62077,15 +62113,15 @@ function kwe(e, t, n) {
};
});
}
-var Awe = () => H.invalidateQueries({
+var jwe = () => H.invalidateQueries({
queryKey: LY,
exact: !0
});
-function jwe(e, t) {
+function Mwe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Sr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var Mwe = "/api/links", JY = "/api/links/check", YY = "/api/links/prune", XY = ["links"], ZY = ["links", "check"], QY = ["links", "prune"], Nwe = {
+var Nwe = "/api/links", JY = "/api/links/check", YY = "/api/links/prune", XY = ["links"], ZY = ["links", "check"], QY = ["links", "prune"], Pwe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -62096,22 +62132,22 @@ async function $Y(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var eX = (e) => B(Mwe, e), tX = (e) => V(JY, { status_only: !0 }, "POST", e), Pwe = ({ retry: e, checkId: t }) => $Y(V(JY, e ? {
+var eX = (e) => B(Nwe, e), tX = (e) => V(JY, { status_only: !0 }, "POST", e), Fwe = ({ retry: e, checkId: t }) => $Y(V(JY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), nX = (e) => B(YY, e), Fwe = ({ checkId: e, ids: t }) => $Y(V(YY, {
+} : { restart: !0 })), nX = (e) => B(YY, e), Iwe = ({ checkId: e, ids: t }) => $Y(V(YY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), rX = (e) => Number(e || 0).toLocaleString(), Iwe = (e) => `已删除 ${rX(e.removed)} 条;${e.marked ? `已隐退女优的 ${rX(e.marked)} 条留作不可点的记录;` : ""}保留 ${rX(e.recovered)} 条未确认失效的链接。`;
-function Lwe(e) {
+})), rX = (e) => Number(e || 0).toLocaleString(), Lwe = (e) => `已删除 ${rX(e.removed)} 条;${e.marked ? `已隐退女优的 ${rX(e.marked)} 条留作不可点的记录;` : ""}保留 ${rX(e.recovered)} 条未确认失效的链接。`;
+function Rwe(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${rX(e.checked)} / ${rX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var iX = "/api/configuration", aX = "/api/pick-folder", oX = "/api/settings", sX = "/api/follow/schedule", cX = "/api/feeds/schedule", lX = "/api/thumbnail-jobs", uX = ["settings"], dX = ["follow-schedule"], fX = ["feed-schedule"], pX = ["thumbnail-jobs"], mX = "/api/media-processing", Rwe = ["media-processing"], zwe = (e) => B(mX, e), hX = (e) => B(oX, e), Bwe = (e) => B(sX, e), Vwe = (e) => B(cX, e), Hwe = (e) => B(lX, e);
-function Uwe(e = H) {
+var iX = "/api/configuration", aX = "/api/pick-folder", oX = "/api/settings", sX = "/api/follow/schedule", cX = "/api/feeds/schedule", lX = "/api/thumbnail-jobs", uX = ["settings"], dX = ["follow-schedule"], fX = ["feed-schedule"], pX = ["thumbnail-jobs"], mX = "/api/media-processing", zwe = ["media-processing"], Bwe = (e) => B(mX, e), hX = (e) => B(oX, e), Vwe = (e) => B(sX, e), Hwe = (e) => B(cX, e), Uwe = (e) => B(lX, e);
+function Wwe(e = H) {
return e.fetchQuery({
queryKey: uX,
queryFn: ({ signal: e }) => hX(e),
@@ -62124,7 +62160,7 @@ function gX() {
onSuccess: (e) => H.setQueryData(uX, e)
});
}
-function Wwe() {
+function Gwe() {
return Ft({
mutationFn: (e) => V(sX, {
enabled: e > 0,
@@ -62133,7 +62169,7 @@ function Wwe() {
onSuccess: (e) => H.setQueryData(dX, e)
});
}
-var Gwe = {
+var Kwe = {
follow: {
url: `${sX}/run`,
key: dX
@@ -62143,37 +62179,37 @@ var Gwe = {
key: fX
}
};
-function Kwe(e) {
- let { url: t, key: n } = Gwe[e];
+function qwe(e) {
+ let { url: t, key: n } = Kwe[e];
return Ft({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var qwe = (e) => e?.running ? 3e3 : !1;
-function Jwe() {
+var Jwe = (e) => e?.running ? 3e3 : !1;
+function Ywe() {
return Ft({
mutationFn: (e) => V(lX, { mode: e }),
onSuccess: (e) => H.setQueryData(pX, e)
});
}
// src/react/data-cleanup/organize.ts
-var _X = "/api/organize", Ywe = "/api/organize/preview", Xwe = "/api/organize/apply", Zwe = "/api/organize/rollback", vX = ["organize"], Qwe = "/api/organize/example", $we = (e, t, n) => B(`${Qwe}?${new URLSearchParams({
+var Xwe = "/api/organize", Zwe = "/api/organize/preview", Qwe = "/api/organize/apply", $we = "/api/organize/rollback", _X = ["organize"], eTe = "/api/organize/example", tTe = (e, t, n) => B(`${eTe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), yX = (e) => B(_X, e);
-async function eTe(e) {
+})}`, n), vX = (e) => B(Xwe, e);
+async function nTe(e) {
await H.fetchQuery({
- queryKey: vX,
- queryFn: () => yX(e)
+ queryKey: _X,
+ queryFn: () => vX(e)
});
}
-var tTe = (e) => V(Ywe, e), nTe = (e) => V(aX, { initial: e }), rTe = (e) => e.kind === "apply" ? V(Xwe, {
+var rTe = (e) => V(Zwe, e), iTe = (e) => V(aX, { initial: e }), aTe = (e) => e.kind === "apply" ? V(Qwe, {
...e.request,
confirm: !0
-}) : V(Zwe, { confirm: !0 });
-async function iTe(e) {
- H.setQueryData(vX, (t) => t && {
+}) : V($we, { confirm: !0 });
+async function oTe(e) {
+ H.setQueryData(_X, (t) => t && {
...t,
templates: e
});
@@ -62181,147 +62217,147 @@ async function iTe(e) {
await V(oX, { organizeTemplates: e });
} catch {}
}
-var aTe = (e, t) => e && {
+var sTe = (e, t) => e && {
...e,
...t
-}, oTe = /目录模板|分隔符|盘符|`\.`/;
-function sTe(e) {
+}, cTe = /目录模板|分隔符|盘符|`\.`/;
+function lTe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var bX = (e) => Number(e || 0).toLocaleString();
-function cTe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${bX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${bX(e.counts.change)} 个文件会改名或移动,${bX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var yX = (e) => Number(e || 0).toLocaleString();
+function uTe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${yX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${yX(e.counts.change)} 个文件会改名或移动,${yX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function lTe(e) {
+function dTe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${bX(r)} 个文件${n ? `,${bX(n)} 行未能退回` : ""}。` : `已整理 ${bX(r)} 个文件${n ? `,${bX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${yX(r)} 个文件${n ? `,${yX(n)} 行未能退回` : ""}。` : `已整理 ${yX(r)} 个文件${n ? `,${yX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var uTe = "/api/orphan-records", dTe = "/api/orphan-records/attach", xX = ["orphan-records"], fTe = [
+var fTe = "/api/orphan-records", pTe = "/api/orphan-records/attach", bX = ["orphan-records"], mTe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], SX = (e) => B(uTe, e), pTe = (e, t) => V(dTe, {
+], xX = (e) => B(fTe, e), hTe = (e, t) => V(pTe, {
id: e,
target: t
-}), mTe = (e) => V(TY, {
+}), gTe = (e) => V(TY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), hTe = (e) => [
+}), _Te = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], gTe = (e) => [...fTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...hTe(e)].filter(Boolean).join(" · "), _Te = (e) => e ? `${Math.round(e / 60)} 分钟` : "", vTe = (e) => [e.name, _Te(e.duration)].filter(Boolean).join(" · "), CX = "/api/resource-sync/scan", wX = "/api/resource-sync/apply", TX = ["resource-sync", "scan"], EX = ["resource-sync", "apply"], DX = (e) => V(CX, {
+], vTe = (e) => [...mTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ..._Te(e)].filter(Boolean).join(" · "), yTe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", bTe = (e) => [e.name, yTe(e.duration)].filter(Boolean).join(" · "), SX = "/api/resource-sync/scan", CX = "/api/resource-sync/apply", wX = ["resource-sync", "scan"], TX = ["resource-sync", "apply"], EX = (e) => V(SX, {
background: !0,
status_only: !0
-}, "POST", e), yTe = () => V(CX, {
+}, "POST", e), xTe = () => V(SX, {
background: !0,
restart: !0
-}), OX = (e) => B(wX, e), bTe = (e) => V(wX, {
+}), DX = (e) => B(CX, e), STe = (e) => V(CX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), kX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function xTe(e) {
- kX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({
+}), OX = (e) => (e?.sources ?? []).some((e) => gn.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function CTe(e) {
+ OX(H.getQueryData(vr)) && await Promise.all([H.fetchQuery({
+ queryKey: wX,
+ queryFn: () => EX(e)
+ }), H.fetchQuery({
queryKey: TX,
queryFn: () => DX(e)
- }), H.fetchQuery({
- queryKey: EX,
- queryFn: () => OX(e)
})]);
}
-var STe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), AX = (e) => Number(e || 0).toLocaleString(), CTe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", jX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), MX = (e) => e.vanish ? `${AX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", NX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", wTe = (e) => `将永久删除文件已不在盘上的 ${AX(jX(e))} 条记录和 ${AX(e.empty)} 个空文件夹,并清理 ${AX(e.cache?.files)} 个闲置缓存。${NX(e)}${MX(e)}`, TTe = (e) => `将永久删除文件已不在盘上的 ${AX(jX(e))} 条记录(含回收站里的)、${AX(e.empty)} 个空文件夹,并清理 ${AX(e.cache?.files)} 个闲置缓存。来源根目录保留。${NX(e)}${MX(e)}`, ETe = (e) => e.online ? [
- `找不到文件 · 共 ${AX(e.total)} 项`,
- e.vanish ? `${AX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${AX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${AX(e.total)} 项`;
-function PX(e) {
+var wTe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), kX = (e) => Number(e || 0).toLocaleString(), TTe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", AX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), jX = (e) => e.vanish ? `${kX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", MX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ETe = (e) => `将永久删除文件已不在盘上的 ${kX(AX(e))} 条记录和 ${kX(e.empty)} 个空文件夹,并清理 ${kX(e.cache?.files)} 个闲置缓存。${MX(e)}${jX(e)}`, DTe = (e) => `将永久删除文件已不在盘上的 ${kX(AX(e))} 条记录(含回收站里的)、${kX(e.empty)} 个空文件夹,并清理 ${kX(e.cache?.files)} 个闲置缓存。来源根目录保留。${MX(e)}${jX(e)}`, OTe = (e) => e.online ? [
+ `找不到文件 · 共 ${kX(e.total)} 项`,
+ e.vanish ? `${kX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${kX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${kX(e.total)} 项`;
+function NX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${AX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${AX(n)} 个文件夹没有删除` : "",
- r.length ? `${AX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${kX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${kX(n)} 个文件夹没有删除` : "",
+ r.length ? `${kX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var DTe = (e, t) => {
- let { rest: n } = PX(e), r = `已永久删除 ${AX(e.purged)} 条失效记录和 ${AX(e.dirs_removed)} 个空文件夹,清理 ${AX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${AX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${AX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var kTe = (e, t) => {
+ let { rest: n } = NX(e), r = `已永久删除 ${kX(e.purged)} 条失效记录和 ${kX(e.dirs_removed)} 个空文件夹,清理 ${kX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${kX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${kX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, FX = ["performer-delete-candidates"], IX = (e) => B("/api/performer/delete-candidates", e), OTe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), kTe = (e) => V("/api/performer/delete", {
+}, PX = ["performer-delete-candidates"], FX = (e) => B("/api/performer/delete-candidates", e), ATe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), jTe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), ATe = "/api/review?counts=1", LX = ["review", "counts"], jTe = "/api/ads?limit=1", RX = ["junk-summary"], zX = "/api/items?state=trash&limit=1", BX = ["trash-summary"], MTe = [
+}), MTe = "/api/review?counts=1", IX = ["review", "counts"], NTe = "/api/ads?limit=1", LX = ["junk-summary"], RX = "/api/items?state=trash&limit=1", zX = ["trash-summary"], PTe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], VX = (e) => B(ATe, e), HX = (e) => B(jTe, e), UX = (e) => {
+], BX = (e) => B(MTe, e), VX = (e) => B(NTe, e), HX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${zX}&library=${encodeURIComponent(t)}` : zX, e);
-}, WX = (e) => Number(e || 0).toLocaleString();
-function NTe(e) {
+ return B(t ? `${RX}&library=${encodeURIComponent(t)}` : RX, e);
+}, UX = (e) => Number(e || 0).toLocaleString();
+function FTe(e) {
let t = RY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function PTe(e) {
+function ITe(e) {
if (!e) return "";
- let t = MTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${WX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${WX(e.dismissed_total)}`), t.join(" · ");
+ let t = PTe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${UX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${UX(e.dismissed_total)}`), t.join(" · ");
}
-var FTe = [
- [LX, ({ signal: e }) => VX(e)],
+var LTe = [
+ [IX, ({ signal: e }) => BX(e)],
[PY, ({ signal: e }) => FY(e)],
- [BX, ({ signal: e }) => UX(e)],
- [RX, ({ signal: e }) => HX(e)],
+ [zX, ({ signal: e }) => HX(e)],
+ [LX, ({ signal: e }) => VX(e)],
[wY, ({ signal: e }) => EY(e)]
];
-async function ITe(e) {
- for (let [t, n] of FTe) H.prefetchQuery({
+async function RTe(e) {
+ for (let [t, n] of LTe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await bH(e);
+ await yH(e);
}
-async function LTe(e, t) {
+async function zTe(e, t) {
switch (e) {
case "organize":
- await eTe(t);
+ await nTe(t);
break;
case "media-repair":
- await QCe(t);
+ await $Ce(t);
break;
case "resource-sync":
- await CY(t), await xTe(t);
+ await CY(t), await CTe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: xX,
- queryFn: () => SX(t)
+ queryKey: bX,
+ queryFn: () => xX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: FX,
- queryFn: () => IX(t)
+ queryKey: PX,
+ queryFn: () => FX(t)
});
break;
case "links": await Promise.all([
@@ -62341,8 +62377,8 @@ async function LTe(e, t) {
}
}
// src/react/feed-new/feed-new.ts
-var GX = (e) => ["feed-new", e ?? "home"], RTe = 8, zTe = 1500;
-function BTe(e, t, n) {
+var WX = (e) => ["feed-new", e ?? "home"], BTe = 8, VTe = 1500;
+function HTe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62353,33 +62389,33 @@ function BTe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function VTe(e, t, n) {
- let r = new URLSearchParams({ limit: String(lM().value.feedLimit) });
+async function UTe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(cM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await BTe(s, RTe, zTe), {
+ return n && o.length && await HTe(s, BTe, VTe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var KX = (e, t, n = !1) => ({
- queryKey: GX(e),
- queryFn: () => VTe(e, t, n),
+var GX = (e, t, n = !1) => ({
+ queryKey: WX(e),
+ queryFn: () => UTe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), qX = (e, t) => wn("/api/feeds/discovery", {
+}), KX = (e, t) => wn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function HTe(e) {
- H.removeQueries({ queryKey: GX(null) }), await H.fetchQuery(KX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function WTe(e) {
+ H.removeQueries({ queryKey: WX(null) }), await H.fetchQuery(GX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var JX = [
+var qX = [
"loc",
"creator",
"tag",
@@ -62393,52 +62429,52 @@ var JX = [
"browse",
"folder",
"folder_recursive"
-], YX = {
+], JX = {
media: "videos",
set: 0
-}, XX = (e, t) => [
+}, YX = (e, t) => [
"entity",
e,
t
-], UTe = (e, t, n, r) => [
+], GTe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], ZX = (e, t, n, r) => [
+], XX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], QX = (e) => String(e || "").split(",").filter(Boolean), WTe = (e, t) => QX(e).includes(t);
-function $X(e, t, n, r, i = 0) {
+], ZX = (e) => String(e || "").split(",").filter(Boolean), KTe = (e, t) => ZX(e).includes(t);
+function QX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...QX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of JX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...ZX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
+ for (let t of qX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function eZ(e, t, n, r, i, a, o) {
- let s = $X(e, t, n, r, i);
+async function $X(e, t, n, r, i, a, o) {
+ let s = QX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await wn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var tZ = (e) => {
+var eZ = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = $X(e.kind, e.name, e.filters, t).toString();
+ }, n = QX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: UTe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => eZ(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: GTe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => $X(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, nZ = (e, t) => ({
- queryKey: XX(e, t),
+}, tZ = (e, t) => ({
+ queryKey: YX(e, t),
queryFn: ({ signal: n }) => wn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function GTe(e, t, n, r, i, a) {
+function qTe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -62447,10 +62483,10 @@ function GTe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var rZ = (e, t, n, r) => ({
- queryKey: ZX(e, t, n, r),
+var nZ = (e, t, n, r) => ({
+ queryKey: XX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await wn(GTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await wn(qTe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62463,8 +62499,8 @@ var rZ = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), iZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function KTe(e) {
+}), rZ = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function JTe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62475,25 +62511,25 @@ async function KTe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(XX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(nZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: GX(Number(t.id)) }), H.fetchQuery(KX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(tZ(e)),
- H.fetchInfiniteQuery(rZ(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(rZ(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(YX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(tZ(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: WX(Number(t.id)) }), H.fetchQuery(GX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(eZ(e)),
+ H.fetchInfiniteQuery(nZ(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(nZ(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var aZ = [
+var iZ = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], oZ = "mb-4 flex flex-wrap gap-2";
-function qTe(e) {
- let t = aZ.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${oZ}">${aZ.map(([e, n]) => Ds({
+], aZ = "mb-4 flex flex-wrap gap-2";
+function YTe(e) {
+ let t = iZ.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${aZ}">${iZ.map(([e, n]) => Ds({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62501,45 +62537,45 @@ function qTe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var JTe = "/api/follow/authors", YTe = "/api/follow/tags", XTe = (e) => [
+var XTe = "/api/follow/authors", ZTe = "/api/follow/tags", QTe = (e) => [
"follow",
"authors",
e
-], ZTe = (e, t) => [
+], $Te = (e, t) => [
"follow",
"tags",
e,
t
];
-function QTe(e, t, n) {
+function eEe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${JTe}?${r}`;
+ return e && r.set("q", e), `${XTe}?${r}`;
}
-function $Te(e, t, n, r) {
+function tEe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${YTe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${ZTe}?${i}`;
}
-var eEe = (e, t, n, r) => B(QTe(e, t, n), r), tEe = (e, t, n, r, i) => B($Te(e, t, n, r), i), nEe = "/api/index", sZ = {
+var nEe = (e, t, n, r) => B(eEe(e, t, n), r), rEe = (e, t, n, r, i) => B(tEe(e, t, n, r), i), iEe = "/api/index", oZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, rEe = {
+}, aEe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, cZ = [
+}, sZ = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62549,31 +62585,31 @@ var eEe = (e, t, n, r) => B(QTe(e, t, n), r), tEe = (e, t, n, r, i) => B($Te(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], lZ = [
+], cZ = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], uZ = {
+], lZ = {
people: 120,
tags: 100
-}, dZ = (e) => e !== "tags", fZ = (e) => e === "studios" || e === "agencies";
-function pZ(e) {
- if (e.kind === "creators" && e.category === "animation") return pZ({
+}, uZ = (e) => e !== "tags", dZ = (e) => e === "studios" || e === "agencies";
+function fZ(e) {
+ if (e.kind === "creators" && e.category === "animation") return fZ({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? lZ : cZ : e.kind === "performers" && t === "local" ? aZ : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? cZ : sZ : e.kind === "performers" && t === "local" ? iZ : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function mZ(e) {
+function pZ(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -62593,50 +62629,50 @@ function mZ(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var hZ = (e, t, n = "all") => [
+var mZ = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function gZ(e, t, n, r, i) {
+function hZ(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${nEe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${iEe}?${a}`;
}
-function _Z(e, t = uZ.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? uZ.people : t, r = {
+function gZ(e, t = lZ.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? lZ.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: hZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(gZ(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: mZ(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(hZ(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: hZ("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(gZ("tags", e.q, e.category, n, t), r)
+ queryKey: mZ("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(hZ("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: XTe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => eEe(e.q, n, t, r)
+ queryKey: QTe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => nEe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: ZTe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => tEe(e.q, e.category, n, t, r)
+ queryKey: $Te(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => rEe(e.q, e.category, n, t, r)
};
}
}
-async function iEe(e, t) {
- let n = _Z(mZ(pZ(e)));
+async function oEe(e, t) {
+ let n = gZ(pZ(fZ(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -62648,20 +62684,20 @@ async function iEe(e, t) {
staleTime: Infinity
});
}
-var aEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], oEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, vZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", sEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, cEe = {
+var sEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], cEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, _Z = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", lEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, uEe = {
numeric: !0,
sensitivity: "base"
};
-function yZ(e, t) {
+function vZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", cEe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", uEe))) {
let e = $n(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function bZ({ html: e, face: t, company: n, big: r }) {
+function yZ({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -62673,18 +62709,18 @@ function bZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var lEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", uEe = EV("rss");
-function xZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var dEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", fEe = TV("rss");
+function bZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: BH({
+ className: zH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${lEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${dEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -62693,10 +62729,10 @@ function xZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(aW, {
+ children: /* @__PURE__ */ (0, I.jsx)(iW, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(uEe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(fEe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -62712,9 +62748,9 @@ function xZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function SZ({ kind: e, items: t, layout: n, props: r }) {
- let i = fZ(e) || e === "series";
- vL();
+function xZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = dZ(e) || e === "series";
+ _L();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -62722,16 +62758,16 @@ function SZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || rEe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(xZ, {
+ let n = t.entity_kind || aEe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(bZ, {
"data-k": t.k,
"data-kind": n,
name: tn(n, t.k, t.entity_id),
- readout: `${sEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${lEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(bZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(yZ, {
html: o.html,
face: o.face,
company: i,
@@ -62741,15 +62777,15 @@ function SZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function dEe({ items: e, layout: t, props: n }) {
- vL();
+function pEe({ items: e, layout: t, props: n }) {
+ _L();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(xZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(bZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: tn("creator", e.k, e.entity_id),
@@ -62758,7 +62794,7 @@ function dEe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(bZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(yZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -62767,8 +62803,8 @@ function dEe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var CZ = (e) => e.replace(/\s+/g, " ").trim();
-function wZ(e) {
+var SZ = (e) => e.replace(/\s+/g, " ").trim();
+function CZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -62776,12 +62812,12 @@ function wZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return CZ(n);
+ return SZ(n);
}
-function TZ(e) {
+function wZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && wZ(e) && !EZ(e)) {
+ if (e.matches("a") && CZ(e) && !TZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -62794,7 +62830,7 @@ function TZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function EZ(e) {
+function TZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -62805,19 +62841,19 @@ function EZ(e) {
}
return !1;
}
-function fEe() {
+function mEe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {
- let n = TZ(t), r = e.getBoundingClientRect();
+ let n = wZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, u = () => {
clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);
}, d = (a, o) => {
if (c() || !(a instanceof Element)) return;
let d = a.closest("[title]");
- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (wZ(d) !== CZ(n) || EZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !TZ(d)) return;
+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (CZ(d) !== SZ(n) || TZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !wZ(d)) return;
(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;
let i = d.getAttribute("data-tooltip-copy-key");
i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));
@@ -62842,32 +62878,32 @@ function fEe() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !us(n, t)) return;
- let r = TZ(t);
+ let r = wZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
}
// src/board-controls.ts
-function DZ(e) {
+function EZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var OZ = /* @__PURE__ */ new WeakSet();
-function pEe() {
- if (OZ.has(document)) return;
- OZ.add(document);
+var DZ = /* @__PURE__ */ new WeakSet();
+function hEe() {
+ if (DZ.has(document)) return;
+ DZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(DZ), hEe(e), mEe(e);
+ e.querySelectorAll("input[type=range]").forEach(EZ), _Ee(e), gEe(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && DZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && EZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && DZ(e.target);
- }), fEe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && EZ(e.target);
+ }), mEe();
}
-function mEe(e) {
+function gEe(e) {
let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -62891,15 +62927,15 @@ function mEe(e) {
r.observe(e);
});
}
-var kZ = /* @__PURE__ */ new Map();
-function hEe(e) {
+var OZ = /* @__PURE__ */ new Map();
+function _Ee(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = kZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = OZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -62908,7 +62944,7 @@ function hEe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Vc(t, r, a, "x"), r = a, kZ.set(n, a);
+ Vc(t, r, a, "x"), r = a, OZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -62924,8 +62960,8 @@ function hEe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var AZ = "/vendor/swiper/14.4.0/", jZ = null, gEe = () => jZ ??= Promise.all([new Promise((e, t) => {
- let n = `${AZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var kZ = "/vendor/swiper/14.4.0/", AZ = null, vEe = () => AZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${kZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -62939,11 +62975,11 @@ var AZ = "/vendor/swiper/14.4.0/", jZ = null, gEe = () => jZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${AZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${kZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw jZ = null, e;
+ throw AZ = null, e;
});
-function _Ee(e, t, n) {
+function yEe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -62964,46 +63000,46 @@ function _Ee(e, t, n) {
}
};
}
-var MZ = (e) => {
+var jZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Yn(t)).replace(" ", "\xA0") : "大小未知";
-}, vEe = (e) => e.asset?.name || e.name || "未命名图片";
-function yEe(e, t) {
+}, bEe = (e) => e.asset?.name || e.name || "未命名图片";
+function xEe(e, t) {
let n = e.asset;
- if (n) return [tr[n.location ?? ""] || n.location || "来源未知", MZ(n.size)].join(" · ");
+ if (n) return [tr[n.location ?? ""] || n.location || "来源未知", jZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? MZ(e.size) : ""
+ e.size ? jZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var NZ = null, PZ = null, bEe = 0;
-function xEe() {
- return PZ && NZ?.isConnected || (PZ?.unmount(), NZ = document.createElement("div"), NZ.className = "peach-react", NZ.dataset.photoLightboxHost = "", document.body.append(NZ), PZ = (0, Rt.createRoot)(NZ)), PZ;
+var MZ = null, NZ = null, SEe = 0;
+function CEe() {
+ return NZ && MZ?.isConnected || (NZ?.unmount(), MZ = document.createElement("div"), MZ.className = "peach-react", MZ.dataset.photoLightboxHost = "", document.body.append(MZ), NZ = (0, Rt.createRoot)(MZ)), NZ;
}
-async function FZ(e, t, n) {
+async function PZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await gEe();
+ r = await vEe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = xEe();
- (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(SEe, {
+ let i = CEe();
+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(wEe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++bEe)));
+ }, ++SEe)));
}
-function IZ() {
- PZ && (0, Lt.flushSync)(() => PZ.render(null));
+function FZ() {
+ NZ && (0, Lt.flushSync)(() => NZ.render(null));
}
-function SEe({ slides: e, index: t, Swiper: n, host: r }) {
+function wEe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
at: t,
text: ""
@@ -63046,7 +63082,7 @@ function SEe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = _Ee(e, a, b);
+ i(t, 0), h.current = yEe(e, a, b);
let m = tl(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -63063,13 +63099,13 @@ function SEe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : IZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : FZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, F.useLayoutEffect)(() => {
- m.current && DZ(m.current);
+ m.current && EZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63100,18 +63136,18 @@ function SEe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), IZ();
+ e.preventDefault(), FZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && IZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && FZ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: IZ,
+ onClick: FZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63247,10 +63283,10 @@ function SEe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: vEe(j)
+ children: bEe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: yEe(j, x[_])
+ children: xEe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63288,24 +63324,24 @@ function SEe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function CEe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(wEe, {
+function TEe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(EEe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(TEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(OEe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(DEe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(kEe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var LZ = uZ.people;
-function wEe({ roster: e, props: t }) {
+var IZ = lZ.people;
+function EEe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(LZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + LZ);
+ }), [n, r]), [a, o] = (0, F.useState)(IZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + IZ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xZ, {
kind: e.kind,
items: s,
layout: e.layout,
@@ -63316,7 +63352,7 @@ function wEe({ roster: e, props: t }) {
enabled: () => !0
}, a) : null] });
}
-function TEe(e) {
+function DEe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
children: /* @__PURE__ */ (0, I.jsx)(KG, {
@@ -63344,33 +63380,33 @@ function TEe(e) {
})
});
}
-var EEe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var OEe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), RZ = (e) => e.sample === !0, zZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, BZ = (e) => RZ(e) ? `/sample-thumb?${zZ(e)}` : `/photo-thumb?id=${e.id}`, DEe = (e) => RZ(e) ? {
- src: `/sample-image?${zZ(e)}`,
- thumb: BZ(e),
+})), LZ = (e) => e.sample === !0, RZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, zZ = (e) => LZ(e) ? `/sample-thumb?${RZ(e)}` : `/photo-thumb?id=${e.id}`, BZ = (e) => LZ(e) ? {
+ src: `/sample-image?${RZ(e)}`,
+ thumb: zZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: BZ(e),
+ thumb: zZ(e),
name: e.name || "",
asset: e
};
-function OEe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(EEe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function kEe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(OEe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- FZ(e, o.map(DEe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(kEe, {
+ PZ(e, o.map(BZ), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(AEe, {
item: e,
index: t,
lost: s.has(t),
@@ -63433,7 +63469,7 @@ function VZ({ label: e, title: t, meta: n }) {
]
});
}
-function kEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function AEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63442,7 +63478,7 @@ function kEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: BZ(e),
+ src: zZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63452,9 +63488,9 @@ function kEe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var AEe = 2e3, jEe = (e) => e, MEe = (e, t) => t;
+var jEe = 2e3, MEe = (e) => e, NEe = (e, t) => t;
function HZ(e) {
- let { queryKey: t, jobOf: n = jEe, withJob: r = MEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+ let { queryKey: t, jobOf: n = MEe, withJob: r = NEe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
(0, F.useEffect)(() => {
l.current = e;
});
@@ -63463,7 +63499,7 @@ function HZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? AEe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? jEe : i ?? !1;
}
}), d = Ft({
mutationFn: (e) => l.current.start(e),
@@ -63488,11 +63524,11 @@ function HZ(e) {
}
// src/react/follow-feed/follow-check.ts
var UZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function NEe(e, t) {
+function PEe(e, t) {
return t ? UZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function PEe({ sources: e, report: t }) {
+function FEe({ sources: e, report: t }) {
let n = UZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = HZ({
queryKey: Rr,
queryFn: ({ signal: e }) => _i(e),
@@ -63507,19 +63543,19 @@ function PEe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...OV(s),
+ ...DV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var FEe = (e) => Number(e) > 0;
+var IEe = (e) => Number(e) > 0;
function WZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
@@ -63534,7 +63570,7 @@ var GZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: xG(e) }
});
-function IEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function LEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
@@ -63557,8 +63593,8 @@ function IEe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function LEe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => wye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({
+function REe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ha(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Tye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? _a(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ya({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -63603,7 +63639,7 @@ function LEe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(IEe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(LEe, {
src: p,
fallback: m,
width: _?.width,
@@ -63644,7 +63680,7 @@ function LEe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- FEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ IEe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: qn(u.duration)
}) : null,
@@ -63754,7 +63790,7 @@ function LEe(e) {
/* @__PURE__ */ (0, I.jsx)("time", {
dateTime: u.published_at || "",
title: jG(u),
- children: Cye(u)
+ children: wye(u)
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-credit": "",
@@ -63789,9 +63825,9 @@ function LEe(e) {
]
});
}
-var KZ = (0, F.memo)(LEe);
+var KZ = (0, F.memo)(REe);
// src/react/components/use-masonry-grid.ts
-function REe(e, t) {
+function zEe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -63856,7 +63892,7 @@ function ZZ(e, t) {
var QZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), zEe = EV("settings"), $Z = EV("chevron-down"), BEe = EV("history"), VEe = EV("arrow-up"), HEe = EV("arrow-down"), UEe = [[
+}), BEe = TV("settings"), $Z = TV("chevron-down"), VEe = TV("history"), HEe = TV("arrow-up"), UEe = TV("arrow-down"), WEe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -63865,7 +63901,7 @@ var QZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function WEe(e, t, n) {
+function GEe(e, t, n) {
return (0, F.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
@@ -63913,7 +63949,7 @@ function WEe(e, t, n) {
n
]);
}
-function GEe(e) {
+function KEe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = It(na(t, r)), o = Pt({
queryKey: ra,
queryFn: ({ signal: e }) => ia(e)
@@ -63921,7 +63957,7 @@ function GEe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = WEe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = GEe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
lm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -63955,7 +63991,7 @@ function GEe(e) {
p,
i
]);
- let m = qEe(e, !!s);
+ let m = JEe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
children: [/* @__PURE__ */ (0, I.jsx)(eQ, {}), /* @__PURE__ */ (0, I.jsx)(GG, {
@@ -63980,7 +64016,7 @@ function GEe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64000,20 +64036,20 @@ function GEe(e) {
dangerouslySetInnerHTML: { __html: zs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(JEe, {
+ /* @__PURE__ */ (0, I.jsx)(YEe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(YEe, {
+ /* @__PURE__ */ (0, I.jsx)(XEe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(XEe, {
+ /* @__PURE__ */ (0, I.jsx)(ZEe, {
facets: u,
view: t,
total: _,
@@ -64021,7 +64057,7 @@ function GEe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(ZEe, {
+ /* @__PURE__ */ (0, I.jsx)(QEe, {
conditions: g,
onDrop: (e) => i.route(Ta(t, e)),
onClear: () => h({
@@ -64033,8 +64069,8 @@ function GEe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(QEe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)($Ee, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)($Ee, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(eDe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64064,7 +64100,7 @@ function GEe(e) {
await a.fetchNextPage({ throwOnError: !0 });
},
children: [/* @__PURE__ */ (0, I.jsx)($Z, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(KEe, {
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(qEe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? bn(a.error) : "",
load: () => {
@@ -64075,7 +64111,7 @@ function GEe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : BEe,
+ leadingIcon: m.olderBusy ? void 0 : VEe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64101,9 +64137,9 @@ function eQ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(NL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ML, {
variant: "secondary",
- leadingIcon: zEe,
+ leadingIcon: BEe,
"data-follow-manage": "",
href: tQ(),
children: "管理关注"
@@ -64111,7 +64147,7 @@ function eQ({ children: e }) {
})]
});
}
-function KEe({ busy: e, error: t, load: n }) {
+function qEe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
@@ -64124,7 +64160,7 @@ function KEe({ busy: e, error: t, load: n }) {
onRetry: n
}) : null] });
}
-function qEe(e, t) {
+function JEe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
helpers: n,
actions: r
@@ -64186,7 +64222,7 @@ function qEe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function JEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function YEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -64223,7 +64259,7 @@ function JEe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function YEe({ rows: e, pressed: t, props: n, onPick: r }) {
+function XEe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64244,13 +64280,13 @@ function YEe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = jL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = jL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function ZEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = AL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = AL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(EL, {
+ return /* @__PURE__ */ (0, I.jsx)(TL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64338,7 +64374,7 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: xG(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(QZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(DL, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ea(e.groups, n)}`,
@@ -64356,12 +64392,12 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(VV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
@@ -64372,7 +64408,7 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RG, {
label: "图片布局",
value: i.photoLayout,
- options: UEe,
+ options: WEe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64403,8 +64439,8 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, I.jsx)(gG, {
- a: VEe,
- b: HEe,
+ a: HEe,
+ b: UEe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64415,7 +64451,7 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function ZEe({ conditions: e, onDrop: t, onClear: n }) {
+function QEe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64440,21 +64476,21 @@ function ZEe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function QEe({ count: e }) {
+function $Ee({ count: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-broken": "",
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(tQ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var tQ = () => ZZ(window.location.search);
-function $Ee({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+function eDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
children: /* @__PURE__ */ (0, I.jsx)(KG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(eDe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(tDe, {
facets: t,
data: n,
context: r,
@@ -64466,12 +64502,12 @@ function $Ee({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function eDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function tDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
let { view: s, actions: c } = r, l = rQ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = REe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = zEe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
return /* @__PURE__ */ (0, I.jsx)(KZ, {
@@ -64488,7 +64524,7 @@ function eDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(tDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(nDe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64514,19 +64550,19 @@ function eDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
function nQ(e, t) {
return ha(e, t.media).id;
}
-function tDe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function nDe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(NL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64535,7 +64571,7 @@ function tDe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var nDe = {
+var rDe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
@@ -64563,7 +64599,7 @@ function rQ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(nDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(rDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: t,
to: i
@@ -64608,7 +64644,7 @@ function rQ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function rDe(e) {
+function iDe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(GG, {
message: bn(t.error),
@@ -64621,7 +64657,7 @@ function rDe(e) {
children: /* @__PURE__ */ (0, I.jsxs)(KG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(iDe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(aDe, {
...e,
data: n
}), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(xY, {
@@ -64634,7 +64670,7 @@ function rDe(e) {
})
});
}
-function iDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function aDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = rQ({
view: e,
revision: 0,
@@ -64666,11 +64702,11 @@ function iDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(aDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(oDe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: NEe(n.sources || [], e.author)
+ sources: PEe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -64679,21 +64715,21 @@ function iDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function aDe({ searched: e, clear: t, actions: n, sources: r }) {
+function oDe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(PEe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(FEe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(NL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64739,7 +64775,7 @@ function sQ(e, t) {
y1: a + r
});
}
-function oDe(e, t) {
+function sDe(e, t) {
if (!oQ(e) || !(t > 0)) return iQ(e);
let n = Math.min(e.width, e.height * t);
return aQ({
@@ -64749,7 +64785,7 @@ function oDe(e, t) {
y1: e.height
});
}
-function sDe(e, t, n) {
+function cDe(e, t, n) {
if (!oQ(t) || !(n > 0)) return iQ(t);
let r = cQ(e, t), i = sQ({
width: r.x1 - r.x0,
@@ -64798,7 +64834,7 @@ function uQ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function cDe(e, t, n, r, i = null) {
+function lDe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -64807,7 +64843,7 @@ function cDe(e, t, n, r, i = null) {
};
return cQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function lDe(e, t) {
+function uDe(e, t) {
return oQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -64820,7 +64856,7 @@ function lDe(e, t) {
height: 0
};
}
-function uDe(e, t) {
+function dDe(e, t) {
if (!oQ(t)) return {
size: "cover",
position: "50% 50%"
@@ -64831,7 +64867,7 @@ function uDe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function dDe(e, t) {
+function fDe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -64843,11 +64879,11 @@ function dDe(e, t) {
function dQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function fDe(e, t) {
+function pDe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var pDe = .02, fQ = 1.08;
+var mDe = .02, fQ = 1.08;
function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
@@ -64885,14 +64921,14 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(lQ(n.box, o.dx, o.dy, r)) : i(cDe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(lQ(n.box, o.dx, o.dy, r)) : i(lDe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * pDe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * mDe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -64900,7 +64936,7 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(lQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(uQ(n, e.key === "-" ? 1 / fQ : fQ, r, t)));
}
- let v = n && r ? lDe(cQ(n, r, t), r) : null, y = v ? fDe(v, d) : !1, b = v ? {
+ let v = n && r ? uDe(cQ(n, r, t), r) : null, y = v ? pDe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -64980,12 +65016,12 @@ function pQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var mDe = "/api/avatar-choices", mQ = "/api/avatar-pick", hDe = "/api/avatar-code-cover", hQ = "/api/avatar-frame", gDe = "/avatar-choice", gQ = (e, t) => [
+var hDe = "/api/avatar-choices", mQ = "/api/avatar-pick", gDe = "/api/avatar-code-cover", hQ = "/api/avatar-frame", _De = "/avatar-choice", gQ = (e, t) => [
"avatar-choices",
e,
t
-], _Q = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, vQ = (e, t, n, r = "") => `${gDe}${_Q(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), yQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", _De = (e, t, n) => B(mDe + _Q(e, t), n), vDe = (e) => V(hDe, { code: e });
-async function yDe(e, t, n) {
+], _Q = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, vQ = (e, t, n, r = "") => `${_De}${_Q(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), yQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", vDe = (e, t, n) => B(hDe + _Q(e, t), n), yDe = (e) => V(gDe, { code: e });
+async function bDe(e, t, n) {
let r = await V(hQ, {
kind: e,
id: t,
@@ -64999,11 +65035,11 @@ async function yDe(e, t, n) {
bases: r.bases
};
}
-var bDe = (e, t, n) => V(hQ, {
+var xDe = (e, t, n) => V(hQ, {
kind: e,
id: t,
url: n
-}), xDe = (e, t, n) => bQ(`${hQ}${_Q(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+}), SDe = (e, t, n) => bQ(`${hQ}${_Q(e, t)}&name=${encodeURIComponent(n.name)}`, n);
async function bQ(e, t) {
let n = await fetch(e, {
method: "POST",
@@ -65015,13 +65051,13 @@ async function bQ(e, t) {
}
function xQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? sDe(e.focus, t, n) : sQ(t, n);
+ return e.focus && r ? cDe(e.focus, t, n) : sQ(t, n);
}
-var SDe = (e) => e.crop && oQ({
+var CDe = (e) => e.crop && oQ({
width: e.width,
height: e.height
});
-async function CDe(e, t, n) {
+async function wDe(e, t, n) {
if (!("file" in n)) {
await V(mQ, {
kind: e,
@@ -65039,16 +65075,16 @@ async function CDe(e, t, n) {
await bQ(`${mQ}${_Q(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
var SQ = 2;
-function wDe(e, t) {
+function TDe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按${`「${n.slice(0, SQ).join("」「")}」`}${n.length > SQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var TDe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function EDe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${TDe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var EDe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function DDe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${EDe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var CQ = (e) => e.cast > 1, DDe = (e) => CQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, ODe = {
+var CQ = (e) => e.cast > 1, ODe = (e) => CQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, kDe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65058,7 +65094,7 @@ var CQ = (e) => e.cast > 1, DDe = (e) => CQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function kDe(e) {
+function ADe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65069,19 +65105,19 @@ function kDe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var ADe = (e) => `${ODe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (CQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), jDe = 8, MDe = 3 / 4;
-async function NDe(e, t, n) {
+var jDe = (e) => `${kDe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (CQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), MDe = 8, NDe = 3 / 4;
+async function PDe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await yDe(e, t, n.choice) };
- case "code": return { choice: await vDe(n.code) };
- case "url": return { choice: await bDe(e, t, n.url) };
+ case "choice": return { choice: await bDe(e, t, n.choice) };
+ case "code": return { choice: await yDe(n.code) };
+ case "url": return { choice: await xDe(e, t, n.url) };
case "file": return {
- choice: await xDe(e, t, n.file),
+ choice: await SDe(e, t, n.file),
file: n.file
};
}
}
-function PDe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function FDe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -65091,17 +65127,17 @@ function PDe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(khe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ahe, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(xV, {
+ }), /* @__PURE__ */ (0, I.jsx)(bV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(FDe, {
+ children: /* @__PURE__ */ (0, I.jsx)(IDe, {
kind: e,
entityId: t,
name: n,
@@ -65110,10 +65146,10 @@ function PDe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = $V(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = gQ(e, t), m = (0, F.useRef)(!1), h = Pt({
+function IDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = QV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = gQ(e, t), m = (0, F.useRef)(!1), h = Pt({
queryKey: p,
- queryFn: ({ signal: n }) => _De(e, t, n),
+ queryFn: ({ signal: n }) => vDe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
@@ -65122,12 +65158,12 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
m.current && H.removeQueries({ queryKey: gQ(e, t) });
}, [e, t]);
let g = Ft({
- mutationFn: (n) => CDe(e, t, n),
+ mutationFn: (n) => wDe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = Ft({
- mutationFn: (n) => NDe(e, t, n),
+ mutationFn: (n) => PDe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65148,39 +65184,39 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : EDe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? cr(g.error) : "") || (!d && _.error ? cr(_.error) : "") || (h.error ? cr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : DDe(x), E = !!C && !!h.error && C === cr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(SV, { children: /* @__PURE__ */ (0, I.jsx)(dV, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(xV, { children: /* @__PURE__ */ (0, I.jsx)(uV, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(tR, {
+ children: [/* @__PURE__ */ (0, I.jsx)(eR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(aW, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(iW, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? DDe(d.choice) : wDe(n, x)
+ children: d ? ODe(d.choice) : TDe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(h.isFetching),
+ ...DV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65190,14 +65226,14 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(xL, {
- icon: RB,
+ /* @__PURE__ */ (0, I.jsx)(bL, {
+ icon: LB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(LDe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(RDe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65217,7 +65253,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: jDe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: MDe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -65230,8 +65266,8 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: ADe(n),
- ...OV(w),
+ title: jDe(n),
+ ...DV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65240,7 +65276,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, I.jsx)(IDe, {
+ /* @__PURE__ */ (0, I.jsx)(LDe, {
src: vQ(e, t, n.ref, yQ(n, n.ref)),
choice: n
}),
@@ -65250,7 +65286,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(aW, {
+ children: /* @__PURE__ */ (0, I.jsx)(iW, {
variant: "caption",
color: "gray",
children: "在用"
@@ -65258,7 +65294,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
CQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(aW, {
+ children: /* @__PURE__ */ (0, I.jsxs)(iW, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65280,7 +65316,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(bV, {
+ children: /* @__PURE__ */ (0, I.jsx)(yV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65290,7 +65326,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...OV(v("code")),
+ ...DV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65299,7 +65335,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...OV(v("file")),
+ ...DV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65319,7 +65355,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(bV, {
+ children: /* @__PURE__ */ (0, I.jsx)(yV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65329,7 +65365,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...OV(v("url")),
+ ...DV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65343,7 +65379,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function IDe({ src: e, choice: t }) {
+function LDe({ src: e, choice: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
(0, F.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -65351,7 +65387,7 @@ function IDe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = SDe(t) ? dDe(xQ(t, s, MDe), s) : null, l = r || a ? !0 : void 0;
+ }, c = CDe(t) ? fDe(xQ(t, s, NDe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -65377,12 +65413,12 @@ function IDe({ src: e, choice: t }) {
})]
});
}
-function LDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = yQ(n, s), m = vQ(e, t, s, p), h = $V();
+function RDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = yQ(n, s), m = vQ(e, t, s, p), h = QV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? uDe(d, l) : null;
+ let _ = d && l ? dDe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
@@ -65407,7 +65443,7 @@ function LDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: kDe(e)
+ children: ADe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65427,12 +65463,12 @@ function LDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...OV(r),
+ ...DV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(r),
+ ...DV(r),
onClick: () => {
r || a(null);
},
@@ -65440,7 +65476,7 @@ function LDe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...OV(r),
+ ...DV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65459,13 +65495,13 @@ var wQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${enco
function TQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(wV, {
+ children: /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: XB,
+ icon: YB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...OV(!!n),
+ ...DV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65473,8 +65509,8 @@ function TQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function RDe({ code: e }) {
- let t = OH(), [n, r] = (0, F.useState)("");
+function zDe({ code: e }) {
+ let t = DH(), [n, r] = (0, F.useState)("");
return /* @__PURE__ */ (0, I.jsx)(TQ, {
title: "封面未取得",
detail: t.error || n,
@@ -65508,7 +65544,7 @@ function EQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(RDe, { code: e.code });
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(zDe, { code: e.code });
if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(TQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
@@ -65559,7 +65595,7 @@ function EQ({ item: e, image: t, thumbnail: n = !1 }) {
}
// src/react/components/source-avatar.tsx
function DQ({ code: e, person: t, detail: n = !1 }) {
- vL();
+ _L();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65716,7 +65752,7 @@ function NQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function zDe({ following: e, busy: t, onToggle: n, tip: r }) {
+function BDe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
jQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
@@ -65768,29 +65804,29 @@ function zDe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function BDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function VDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(Qpe, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)($pe, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)($L, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, I.jsx)(kQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(Ez, {
+ }), /* @__PURE__ */ (0, I.jsx)(Tz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: GV,
+ className: WV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(eme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(tme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(Pz, {
+ /* @__PURE__ */ (0, I.jsx)(Nz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -65798,15 +65834,15 @@ function BDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Iz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Fz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(Fpe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(Pz, { children: /* @__PURE__ */ (0, I.jsxs)(Iz, {
+ /* @__PURE__ */ (0, I.jsx)(Ipe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(Nz, { children: /* @__PURE__ */ (0, I.jsxs)(Fz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -65818,8 +65854,8 @@ function BDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
})]
});
}
-var VDe = (e) => e === "studio" || e === "agency", PQ = (e) => e === "performer" || e === "creator", HDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function UDe(e, t = "zh-CN") {
+var HDe = (e) => e === "studio" || e === "agency", PQ = (e) => e === "performer" || e === "creator", UDe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function WDe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
@@ -65842,7 +65878,7 @@ function IQ(e, t) {
return r && [e.label, n].map(Hn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
var LQ = (e) => ({ site: Rn(e) });
-function WDe(e, t) {
+function GDe(e, t) {
let n = FQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -65884,9 +65920,9 @@ function WDe(e, t) {
mark: LQ(e)
};
});
- return [...r, ...GDe(a)];
+ return [...r, ...KDe(a)];
}
-function GDe(e) {
+function KDe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -65895,7 +65931,7 @@ function GDe(e) {
}];
}
var RQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function KDe(e) {
+function qDe(e) {
return [
[
"legal_name",
@@ -65951,7 +65987,7 @@ function KDe(e) {
}]
}] : []);
}
-function qDe(e) {
+function JDe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66015,7 +66051,7 @@ function zQ(e, t = 4) {
rest: e.length - n
};
}
-function JDe(e) {
+function YDe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -66025,7 +66061,7 @@ function JDe(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function YDe(e) {
+function XDe(e) {
return ho({
id: e.id,
hasImage: e.has_image,
@@ -66036,9 +66072,9 @@ function YDe(e) {
standIn: e.avatar_stand_in
});
}
-function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- vL();
- let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = PQ(e), u = VDe(e), d = l ? qDe(n.profile) : u ? KDe(n.company_profile) : [], f = WDe(n, e), p = RQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function ZDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ _L();
+ let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = PQ(e), u = HDe(e), d = l ? JDe(n.profile) : u ? qDe(n.company_profile) : [], f = GDe(n, e), p = RQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -66051,7 +66087,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZDe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QDe, {
kind: e,
name: s,
helpers: o,
@@ -66059,7 +66095,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(PDe, {
+ children: /* @__PURE__ */ (0, I.jsx)(FDe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66074,17 +66110,17 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: eL(s),
+ lang: $I(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(BDe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(VDe, {
current: n.canonical_name,
- choices: UDe(n, Yt()),
+ choices: WDe(n, Yt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(BV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(zV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66098,7 +66134,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)(QDe, {
+ /* @__PURE__ */ (0, I.jsx)($De, {
kind: e,
entity: n,
actions: a
@@ -66119,14 +66155,14 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(iOe, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(aOe, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(aOe, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(oOe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(tOe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(nOe, {
follow: n.follow,
displayName: s,
actions: a
@@ -66135,11 +66171,11 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(nOe, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(rOe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(rOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(iOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -66158,7 +66194,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${YDe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z($n(tn("performer", e.k, e.id)))}</span>${XDe(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: tn("performer", e.k, e.id)
@@ -66173,7 +66209,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function ZDe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function QDe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z($n(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -66187,7 +66223,7 @@ function ZDe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function QDe({ kind: e, entity: t, actions: n }) {
+function $De({ kind: e, entity: t, actions: n }) {
let r = FQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
@@ -66197,7 +66233,7 @@ function QDe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = JDe(e);
+ let e = t.name_display?.groups[Yt()] ?? t.name_groups, r = YDe(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
@@ -66207,7 +66243,7 @@ function QDe({ kind: e, entity: t, actions: n }) {
title: "视频",
children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(eOe, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(tOe, {
follow: t.follow,
actions: n
}) : null,
@@ -66224,7 +66260,7 @@ function QDe({ kind: e, entity: t, actions: n }) {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: eL(e),
+ lang: $I(e),
children: e
}, t))
}),
@@ -66277,11 +66313,11 @@ function QDe({ kind: e, entity: t, actions: n }) {
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)($De, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(eOe, { aliases: s }) : null
]
});
}
-function $De({ aliases: e }) {
+function eOe({ aliases: e }) {
let { shown: t, rest: n } = zQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
@@ -66304,7 +66340,7 @@ function $De({ aliases: e }) {
]
});
}
-function eOe({ follow: e, actions: t }) {
+function tOe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
@@ -66319,7 +66355,7 @@ function eOe({ follow: e, actions: t }) {
})]
});
}
-function tOe({ follow: e, displayName: t, actions: n }) {
+function nOe({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66333,12 +66369,12 @@ function tOe({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(CV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(SV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...OV(r === e.key),
+ ...DV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66365,19 +66401,19 @@ function VQ({ label: e, names: t }) {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: eL(e.name),
+ lang: $I(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function nOe({ glyph: e, label: t, clip: n, children: r }) {
+function rOe({ glyph: e, label: t, clip: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(kQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function rOe({ tags: e }) {
+function iOe({ tags: e }) {
let { shown: t, rest: n } = zQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
@@ -66410,7 +66446,7 @@ function HQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function iOe({ link: e }) {
+function aOe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66458,7 +66494,7 @@ function iOe({ link: e }) {
});
}
}
-function aOe({ entity: e, actions: t, helpers: n }) {
+function oOe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -66490,19 +66526,19 @@ function aOe({ entity: e, actions: t, helpers: n }) {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(zDe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(BDe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: HDe(r)
+ tip: UDe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var oOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function sOe(e, t, n) {
+var sOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function cOe(e, t, n) {
let [r, i] = (0, F.useState)(() => ga(e));
r.author !== e && i(ga(e));
let [a, o] = (0, F.useState)({
@@ -66581,7 +66617,7 @@ function sOe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: $i,
- seed: oOe()
+ seed: sOe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -66611,8 +66647,8 @@ function sOe(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function cOe(e) {
- let { kind: t, name: n } = e, r = Pt(nZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function lOe(e) {
+ let { kind: t, name: n } = e, r = Pt(tZ(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -66635,7 +66671,7 @@ function cOe(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(dOe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
...e,
entity: r.data
});
@@ -66652,22 +66688,22 @@ function UQ(e) {
};
return n(r), r.n;
}
-var lOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function uOe(e, t) {
+var uOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function dOe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function dOe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = It(rZ(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || iZ(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function fOe(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = It(nZ(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || rZ(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : YX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : JX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = sOe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = cOe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = tZ(e), A = Pt(k), j = UQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = eZ(e), A = Pt(k), j = UQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -66677,26 +66713,26 @@ function dOe(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => eZ(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = It({
- ...rZ(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => $X(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = It({
+ ...nZ(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = UQ(JSON.stringify(ZX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = UQ(JSON.stringify(XX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : iZ(t),
+ codeSets: t.id ? [] : rZ(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Pt({
- ...KX(d, o.feedRowHtml),
+ ...GX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: GX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: WX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -66730,7 +66766,7 @@ function dOe(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: XX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: YX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -66764,7 +66800,7 @@ function dOe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(XX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(YX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -66818,10 +66854,10 @@ function dOe(e) {
let e = await wn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: GX(d) });
+ me.current && await H.invalidateQueries({ queryKey: WX(d) });
})();
},
- feedAction: qX,
+ feedAction: KX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -66869,19 +66905,19 @@ function dOe(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : YX));
+ } : JX));
},
setState: (e) => s.route({
...i,
state: e
- }, YX),
+ }, JX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = tZ({
+ let r = s.reshuffleVideos(), a = eZ({
kind: t,
name: n,
filters: {
@@ -66895,7 +66931,7 @@ function dOe(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = lOe(), a = await H.fetchInfiniteQuery(rZ(t, n, re, r)).catch(() => null);
+ let r = uOe(), a = await H.fetchInfiniteQuery(nZ(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -66930,7 +66966,7 @@ function dOe(e) {
k: e.k,
label: Pl(e.k),
n: e.n,
- selected: WTe(i.tag, e.k)
+ selected: KTe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -66965,14 +67001,14 @@ function dOe(e) {
creator: "",
studio: "",
owner: ""
- }, YX), Ne = "", Pe = !1;
+ }, JX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = QX(i.tag).length;
+ let e = ZX(i.tag).length;
Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : uOe(oe, iZ(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : dOe(oe, rZ(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -66989,7 +67025,7 @@ function dOe(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(XDe, {
+ /* @__PURE__ */ (0, I.jsx)(ZDe, {
kind: t,
name: n,
entity: r,
@@ -66999,7 +67035,7 @@ function dOe(e) {
actions: be,
helpers: xe
}, D),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kye, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Aye, {
kind: t,
name: n,
view: w,
@@ -67016,9 +67052,9 @@ function dOe(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(hye, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(gye, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(rDe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(iDe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67037,11 +67073,11 @@ function dOe(e) {
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(fOe, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(pOe, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(CEe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(TEe, {
kind: t,
name: n,
view: w,
@@ -67074,9 +67110,9 @@ function dOe(e) {
}), c.body)
] });
}
-function fOe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV("search"),
+function pOe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67084,14 +67120,14 @@ function fOe({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(NL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67101,7 +67137,7 @@ function fOe({ filtered: e, onShowAll: t, onOnline: n }) {
}
// src/react/diagnostics/diagnostics.ts
var WQ = ["diagnostics"], GQ = (e) => B("/api/diagnostics", e);
-async function pOe(e) {
+async function mOe(e) {
await H.fetchQuery({
queryKey: WQ,
queryFn: () => GQ(e),
@@ -67109,20 +67145,20 @@ async function pOe(e) {
});
}
// src/react/feed-new/feed-new-page.tsx
-function mOe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Pt(KX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function hOe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Pt(GX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: GX(null) }));
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: WX(null) }));
}, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: qX,
+ act: KX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var hOe = EV("search");
+var gOe = TV("search");
function KQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
@@ -67140,15 +67176,15 @@ function KQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(_V, {
+ children: /* @__PURE__ */ (0, I.jsx)(gV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(yV, {
+ children: /* @__PURE__ */ (0, I.jsx)(vV, {
type: "search",
- leadingIcon: hOe,
+ leadingIcon: gOe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -67198,7 +67234,7 @@ var YQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), XQ = EV("pencil"), ZQ = (e, t) => ({
+}), XQ = TV("pencil"), ZQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67207,7 +67243,7 @@ var YQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function gOe({ tag: e, actions: t }) {
+function _Oe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -67216,7 +67252,7 @@ function gOe({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": vZ(t.online, e.cat),
+ "data-tag-cat": _Z(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
@@ -67233,8 +67269,8 @@ function gOe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(BV, { item: ZQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(zV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(zV, { item: ZQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(RV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(XQ, {})
@@ -67248,7 +67284,7 @@ function QQ({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: BH({
+ className: zH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -67258,7 +67294,7 @@ function QQ({ groups: e, actions: t }) {
children: [e, /* @__PURE__ */ (0, I.jsx)(AW, { value: n.length })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(gOe, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(_Oe, {
tag: e,
actions: t
}, e.k))
@@ -67266,26 +67302,26 @@ function QQ({ groups: e, actions: t }) {
}, e))
});
}
-var _Oe = "\xA0";
+var vOe = "\xA0";
function $Q({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": vZ(t.online, e.cat),
+ "data-tag-cat": _Z(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": vZ(t.online, e.cat),
+ "data-tag-cat": _Z(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + _Oe
+ children: e.label + vOe
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67294,7 +67330,7 @@ function $Q({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(BV, { item: ZQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(zV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(zV, { item: ZQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(RV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(XQ, {})
@@ -67303,7 +67339,7 @@ function $Q({ tags: e, actions: t }) {
}, e.k))
});
}
-var vOe = [[
+var yOe = [[
"cloud",
"标签云",
"tags"
@@ -67313,30 +67349,30 @@ var vOe = [[
"text-aa"
]];
function e$({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = wL();
- return /* @__PURE__ */ (0, I.jsx)(EL, {
+ let d = CL();
+ return /* @__PURE__ */ (0, I.jsx)(TL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(DL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(EL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(EL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(DL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : vZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : _Z(n, e),
pressed: t === e,
onPress: () => o(e),
children: [/* @__PURE__ */ (0, I.jsx)(YQ, {}), r]
@@ -67360,19 +67396,19 @@ function e$({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Kz, {
+ /* @__PURE__ */ (0, I.jsx)(Gz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${bU}`,
- children: vOe.map(([e, t, n]) => {
- let r = EV(n);
- return /* @__PURE__ */ (0, I.jsx)(qz, {
+ className: `ml-auto ${yU}`,
+ children: yOe.map(([e, t, n]) => {
+ let r = TV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: xU,
+ className: bU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67384,13 +67420,13 @@ function e$({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function yOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(kj, {
+function bOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(Oj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(QV, {
+ /* @__PURE__ */ (0, I.jsx)(ZV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67437,7 +67473,7 @@ var o$ = (e, t) => {
n$ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(tH, { children: [/* @__PURE__ */ (0, I.jsx)(lH, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(eH, { children: [/* @__PURE__ */ (0, I.jsx)(cH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
@@ -67461,7 +67497,7 @@ var o$ = (e, t) => {
success: t$(t.success, !0),
error: t$(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(lH, {
+ }), /* @__PURE__ */ (0, I.jsx)(cH, {
id: "processing",
position: "bottom-right",
gap: 8,
@@ -67482,13 +67518,13 @@ var o$ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, bOe = 6e3, s$ = (e, t) => {
+}, xOe = 6e3, s$ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? iH.error : iH.success, r = t.action;
+ let n = t.alert ? rH.error : rH.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : bOe,
+ duration: t.timeout > 0 ? t.timeout : xOe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67567,7 +67603,7 @@ function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(xOe, {
+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(SOe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67576,7 +67612,7 @@ function f$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function xOe({ operation: e, selected: t, dialog: n, update: r }) {
+function SOe({ operation: e, selected: t, dialog: n, update: r }) {
let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? c$(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
@@ -67590,7 +67626,7 @@ function xOe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(bV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(yV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
@@ -67604,7 +67640,7 @@ function xOe({ operation: e, selected: t, dialog: n, update: r }) {
let n = t.find((t) => String(c$(t)) === String(e));
n && s(c$(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(rW, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(nW, {
id: String(c$(e)),
children: e.k
}, c$(e)))
@@ -67641,10 +67677,10 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = OH(), ee = E.data?.items || [], N = ee, te = (s ? lZ : cZ).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = DH(), ee = E.data?.items || [], N = ee, te = (s ? cZ : sZ).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? yZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? vZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
@@ -67709,7 +67745,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(OL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -67717,11 +67753,11 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(OL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(OL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(DL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -67730,7 +67766,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: ec({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -67744,7 +67780,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : /* @__PURE__ */ (0, I.jsx)($Q, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
@@ -67760,11 +67796,11 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: $s
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(kj, {
+ /* @__PURE__ */ (0, I.jsxs)(Oj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -67786,7 +67822,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(!!M.busy),
+ ...DV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -67796,7 +67832,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(!!M.busy),
+ ...DV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -67816,7 +67852,7 @@ function p$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var SOe = [
+var COe = [
{
value: "studios",
label: "厂牌",
@@ -67832,7 +67868,7 @@ var SOe = [
label: "系列",
symbol: "list"
}
-], COe = [{
+], wOe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -67840,7 +67876,7 @@ var SOe = [
value: "online",
label: "在线",
symbol: "rss"
-}], wOe = [
+}], TOe = [
{
value: "performers",
label: "艺人",
@@ -67856,7 +67892,7 @@ var SOe = [
label: "在线",
symbol: "rss"
}
-], TOe = {
+], EOe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -67885,20 +67921,20 @@ var SOe = [
"layout-grid"
]]
};
-function EOe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(_U, {
- "aria-label": `${sZ[e]}索引版式`,
+function DOe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(gU, {
+ "aria-label": `${oZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${vU}`,
- children: TOe[e === "series" ? "series" : fZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = EV(n);
- return /* @__PURE__ */ (0, I.jsx)(qz, {
+ className: `flex-none ${_U}`,
+ children: EOe[e === "series" ? "series" : dZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = TV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Kz, {
value: e,
"aria-label": t,
- className: cve,
+ className: lve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67908,8 +67944,8 @@ function EOe({ kind: e, layout: t, onChange: n }) {
})
});
}
-function DOe(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => pZ({
+function OOe(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => fZ({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -67922,8 +67958,8 @@ function DOe(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(pZ(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = sZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(fZ(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = oZ[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -67942,7 +67978,7 @@ function DOe(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = qQ(JSON.stringify(r)), E = _Z(mZ(r), w.pageSize), D = It({
+ }, { pagination: w, onChange: T } = qQ(JSON.stringify(r)), E = gZ(pZ(r), w.pageSize), D = It({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -67957,7 +67993,7 @@ function DOe(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = aEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = sEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
lm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -67966,7 +68002,7 @@ function DOe(e) {
D.isPlaceholderData,
r
]), JQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : oEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : cEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
te && !D.isPlaceholderData && (N.current = {
key: ee,
counts: te
@@ -67982,7 +68018,7 @@ function DOe(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? yZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? vZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
@@ -67990,7 +68026,7 @@ function DOe(e) {
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
}, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: COe,
+ tabs: wOe,
value: _,
label: "词表",
onChange: (e) => {
@@ -68000,8 +68036,8 @@ function DOe(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : fZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: SOe,
+ }) : dZ(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(MW, {
+ tabs: COe,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68010,7 +68046,7 @@ function DOe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? lZ : cZ).filter(re);
+ }, le = (x ? cZ : sZ).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68025,10 +68061,10 @@ function DOe(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- dZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ uZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(yL, {
+ children: /* @__PURE__ */ (0, I.jsx)(vL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68037,18 +68073,18 @@ function DOe(e) {
})
})
}) : null,
- dZ(h) ? /* @__PURE__ */ (0, I.jsx)(EOe, {
+ uZ(h) ? /* @__PURE__ */ (0, I.jsx)(DOe, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(VV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(BV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: EV("pencil"),
+ leadingIcon: TV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68066,7 +68102,7 @@ function DOe(e) {
]
}),
h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(MW, {
- tabs: wOe,
+ tabs: TOe,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68092,8 +68128,8 @@ function DOe(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: oZ,
- children: aZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ className: aZ,
+ children: iZ.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68129,8 +68165,8 @@ function DOe(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68139,7 +68175,7 @@ function DOe(e) {
}),
children: bn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(kOe, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(AOe, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68148,12 +68184,12 @@ function DOe(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(dEe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(pEe, {
items: O,
layout: c,
props: e
});
- if (dZ(h)) return /* @__PURE__ */ (0, I.jsx)(SZ, {
+ if (uZ(h)) return /* @__PURE__ */ (0, I.jsx)(xZ, {
kind: h,
items: O,
layout: c,
@@ -68201,7 +68237,7 @@ function DOe(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(yOe, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(bOe, {
count: u.size,
match: f,
onMatch: p,
@@ -68215,7 +68251,7 @@ function DOe(e) {
]
});
}
-var OOe = {
+var kOe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68223,9 +68259,9 @@ var OOe = {
agencies: "事务所",
series: "系列"
};
-function kOe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV("search"),
+function AOe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68234,16 +68270,16 @@ function kOe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : OOe[e], a = /* @__PURE__ */ (0, I.jsx)(NL, {
+ let i = n && e === "performers" ? "创作者" : kOe[e], a = /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: EV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: TV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(NL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68258,8 +68294,8 @@ var m$ = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, AOe = (e) => m$[e.junk_kind || "other"] || m$.other;
-function jOe(e) {
+}, jOe = (e) => m$[e.junk_kind || "other"] || m$.other;
+function MOe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68270,21 +68306,21 @@ function jOe(e) {
glyph: "check"
};
}
-var h$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), MOe = (e, t) => [
+var h$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), NOe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function NOe({ kind: e, view: t }) {
+function POe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function POe(e, t) {
- let n = await B(`/api/ads?${NOe(e)}`, t);
+async function FOe(e, t) {
+ let n = await B(`/api/ads?${POe(e)}`, t);
return {
...n,
items: n.items || []
@@ -68299,8 +68335,8 @@ function g$({ name: e }) {
});
}
var _$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function FOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = AOe(e), m = String(e.name || ""), h = jOe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function IOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = jOe(e), m = String(e.name || ""), h = MOe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
t.target.closest("[data-junk-actions]") || _$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
t.stopPropagation(), _$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
@@ -68430,7 +68466,7 @@ function FOe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var IOe = (0, F.memo)(FOe);
+var LOe = (0, F.memo)(IOe);
// src/react/components/collection-summary.tsx
function v$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68471,10 +68507,10 @@ function b$({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function LOe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = $V(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = jL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? YU.map(([e]) => h$(t, e)).join(",") : ""}`), l = QU(s), u = (e) => {
+function ROe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = QV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = AL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? JU.map(([e]) => h$(t, e)).join(",") : ""}`), l = ZU(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ZU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || XU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
@@ -68482,7 +68518,7 @@ function LOe({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-summary": "",
"aria-live": "polite",
children: /* @__PURE__ */ (0, I.jsx)(v$, {
- label: $U(s),
+ label: QU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68502,8 +68538,8 @@ function LOe({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- YU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: ZU(e, s),
+ JU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: XU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
@@ -68540,33 +68576,33 @@ function LOe({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var ROe = EV("check"), zOe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function BOe(e) {
+var zOe = TV("check"), BOe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function VOe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Pt({
- queryKey: MOe(t, e.revision),
- queryFn: ({ signal: e }) => POe(t, e),
- placeholderData: (e, n) => n && zOe(n.queryKey, t) ? e : void 0
+ queryKey: NOe(t, e.revision),
+ queryFn: ({ signal: e }) => FOe(t, e),
+ placeholderData: (e, n) => n && BOe(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = VOe(e.countRow), i = n.isPending;
+ let r = HOe(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && Zs(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(LOe, {
+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, I.jsx)(ROe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(HOe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(UOe, {
props: e,
data: n.data,
pending: i,
@@ -68574,7 +68610,7 @@ function BOe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function VOe(e) {
+function HOe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68584,8 +68620,8 @@ function VOe(e) {
};
}, [e]), t;
}
-function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Yye(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function UOe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = Xye(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68599,10 +68635,10 @@ function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(wV, {
- icon: ROe,
+ return /* @__PURE__ */ (0, I.jsx)(CV, {
+ icon: zOe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(NL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -68615,7 +68651,7 @@ function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(IOe, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(LOe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -68624,7 +68660,7 @@ function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(UOe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(WOe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -68634,7 +68670,7 @@ function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function UOe({ onMore: e }) {
+function WOe({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
@@ -68651,7 +68687,7 @@ function UOe({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var WOe = BH({
+var GOe = zH({
padding: "none",
className: "overflow-hidden"
}), x$ = {
@@ -68662,11 +68698,11 @@ var WOe = BH({
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
function C$(e) {
- return `${WOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+ return `${GOe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
var w$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", T$ = {
- face: BH({
+ face: zH({
padding: "none",
radius: "plain",
interactive: !0,
@@ -68678,26 +68714,26 @@ var w$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", T
summary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",
detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",
arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"
-}, GOe = [
+}, KOe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], KOe = [
+], qOe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function qOe(e = {}) {
- return `${BH({
+function JOe(e = {}) {
+ return `${zH({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var JOe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", YOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+var YOe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", XOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
function E$({ interactive: e = !1 } = {}) {
- return BH({
+ return zH({
padding: "none",
radius: "plain",
interactive: e,
@@ -68705,7 +68741,7 @@ function E$({ interactive: e = !1 } = {}) {
});
}
var D$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function XOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+function ZOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -68738,13 +68774,13 @@ function XOe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function ZOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function QOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, I.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${GOe[n % 4]} ${KOe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${KOe[n % 4]} ${qOe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -68765,10 +68801,10 @@ function ZOe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var O$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", k$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", A$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", j$ = "disabled data-skeleton-action", QOe = "aria-disabled=\"true\"", M$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, N$ = (e, t, n) => `<div class="${x$[n]}"><div class="flex flex-col gap-2">
+var O$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", k$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", A$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", j$ = "disabled data-skeleton-action", $Oe = "aria-disabled=\"true\"", M$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, N$ = (e, t, n) => `<div class="${x$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function $Oe() {
+function eke() {
return M$(`<section aria-label="扫描与采集" class="${C$("stack")}" data-cleanup-task data-cleanup-processing>
${N$("扫描与采集", O$, "stack")}
<footer class="${S$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${ws("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Ds({
@@ -68780,19 +68816,19 @@ function $Oe() {
})}</span></footer>
</section>`);
}
-function eke() {
+function tke() {
return M$(`<section aria-label="媒体修复" class="${C$("split")}" data-cleanup-task data-cleanup-processing>
${N$("媒体修复", k$, "split")}
<footer class="${S$.split}">${ks(A$, {
className: "w-48",
- attrs: QOe
+ attrs: $Oe
})}${Ds({
label: "开始修复",
attrs: j$
})}</footer>
</section>`);
}
-function tke() {
+function nke() {
let e = (e, t, n, r = "") => `<div class="${T$.face}"><span class="${T$.icon}">${ws(t, "size-5")}</span><span class="${T$.body}"><span class="${T$.title}">${e}</span><span class="${T$.summary}">${n}</span>${r ? `<span class="${T$.detail}">${r}</span>` : ""}</span>${ws("chevron-right", T$.arrow)}</div>`, t = (e, t) => `<div class="${E$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${ws(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${A$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${A$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => qf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
<section class="flex flex-col gap-4">${n("待处理事项")}<div class="${D$}">${[
@@ -68802,18 +68838,18 @@ function tke() {
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${$Oe()}</div>
+ <div id="libraryProcessing" class="scroll-mt-20">${eke()}</div>
<section class="flex flex-col gap-4">${n("整理与维护")}<div class="${w$}">${r(!1)}</div></section>
<section class="flex flex-col gap-4">${n("清理与删除")}<div class="${w$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var nke = BH({
+var rke = zH({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), rke = "border-t border-border-button-default p-4 first:border-t-0";
-function ike({ id: e, children: t }) {
+}), ike = "border-t border-border-button-default p-4 first:border-t-0";
+function ake({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
@@ -68864,7 +68900,7 @@ function L$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var ake = {
+var oke = {
success: "lime",
progress: "blue",
warning: "yellow",
@@ -68872,15 +68908,15 @@ var ake = {
neutral: "neutral"
};
function R$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(aW, {
+ return /* @__PURE__ */ (0, I.jsx)(iW, {
"data-status-tone": e,
variant: "caption",
- color: ake[e],
+ color: oke[e],
...t
});
}
// src/react/components/path-line.tsx
-function oke({ className: e }) {
+function ske({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -68893,7 +68929,7 @@ function oke({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var ske = "打开文件管理器失败,请重试";
+var cke = "打开文件管理器失败,请重试";
function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
@@ -68905,7 +68941,7 @@ function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
try {
await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");
} catch (e) {
- l.current && c(e instanceof or ? e.message : ske);
+ l.current && c(e instanceof or ? e.message : cke);
} finally {
l.current && o(!1);
}
@@ -68920,12 +68956,12 @@ function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(xL, {
- icon: oke,
+ children: [/* @__PURE__ */ (0, I.jsx)(bL, {
+ icon: ske,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...OV(a)
+ ...DV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -68935,7 +68971,7 @@ function z$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function cke(e, t) {
+async function lke(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -68958,69 +68994,69 @@ async function cke(e, t) {
rows: n
}, null, 2);
}
-function lke(e, t) {
+function uke(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var uke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", dke = (e) => {
+var dke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", fke = (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(",")}。`;
-}, fke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + dke(e);
-function pke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = v_e(e), o = OH(), s = OH(), [c, l] = (0, F.useState)(""), u = mH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = h_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && hH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = fH(e), y = $V(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(uH, {
+}, pke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + fke(e);
+function mke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = y_e(e), o = DH(), s = DH(), [c, l] = (0, F.useState)(""), u = pH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = g_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && mH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = dH(e), y = QV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(lH, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(dH, n), l(t ? e.job_id : "");
+ H.setQueryData(uH, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(!!o.busy),
- onClick: () => void o.run("export", (t) => cke(e, t), (t) => {
- lke(e.job_id, t), i("已导出问题清单");
+ ...DV(!!o.busy),
+ onClick: () => void o.run("export", (t) => lke(e, t), (t) => {
+ uke(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? gH : "",
+ m ? hH : "",
f
].filter(Boolean).join("\n") : f || `这一趟有 ${(e.issue_count || 0).toLocaleString()} 项问题。`;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- v ? /* @__PURE__ */ (0, I.jsx)(x_e, {
+ v ? /* @__PURE__ */ (0, I.jsx)(S_e, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "warning",
title: "处理较慢",
- children: uke
+ children: dke
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "success",
title: "处理完成",
- children: fke(n)
+ children: pke(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: p ? m ? "warning" : "error" : "neutral",
className: "gap-0 p-3",
title: p ? m ? "处理已结束,部分项目需处理" : "处理未完成" : void 0,
action: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- m ? /* @__PURE__ */ (0, I.jsx)(DH, {
- href: _H,
+ m ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ href: gH,
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69034,7 +69070,7 @@ function pke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...OV(!!s.busy),
+ ...DV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69042,7 +69078,7 @@ function pke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3",
- children: /* @__PURE__ */ (0, I.jsx)($H, {
+ children: /* @__PURE__ */ (0, I.jsx)(QH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69079,18 +69115,18 @@ function pke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null] }),
children: S
}) : null,
- e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...OV(!!s.busy),
+ ...DV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "warning",
children: o.error || s.error
}) : null
@@ -69098,16 +69134,16 @@ function pke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function B$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = zH(e), o = Ft({
- mutationFn: (e) => V(uH, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = RH(e), o = Ft({
+ mutationFn: (e) => V(lH, e),
onSuccess: (e) => {
- a(), H.setQueryData(dH, e), H.invalidateQueries({ queryKey: dH });
+ a(), H.setQueryData(uH, e), H.invalidateQueries({ queryKey: uH });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = hU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? xH : cr(r.error) : "", d = o.isPending || mH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = mU(c), u = o.error ? cr(o.error) : r.isError ? r.data ? bH : cr(r.error) : "", d = o.isPending || pH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69116,33 +69152,33 @@ function B$(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(DH, {
+ /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/sources",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(DH, {
+ /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(DH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(EH, {
href: "/review",
size: "small",
- trailingIcon: NB,
+ trailingIcon: MB,
children: "复核资料"
}) : null,
/* @__PURE__ */ (0, I.jsx)(YK, {
scan: !0,
busy: o.isPending,
- occupied: mH(s),
+ occupied: pH(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(p_e(s))
+ onOccupied: () => t(m_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69152,7 +69188,7 @@ function B$(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(P$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(aW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(P$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(iW, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69160,10 +69196,10 @@ function B$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (mH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (pH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => mU(c, !0),
+ onClick: () => pU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
@@ -69174,17 +69210,17 @@ function B$(e) {
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
children: /* @__PURE__ */ (0, I.jsx)(R$, { children: "已暂停" })
- }) : mH(s) ? /* @__PURE__ */ (0, I.jsx)(I_e, { state: s }) : null,
- mH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }) : pH(s) ? /* @__PURE__ */ (0, I.jsx)(L_e, { state: s }) : null,
+ pH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: vH(s)
+ children: _H(s)
}) : null,
- mH(s) ? /* @__PURE__ */ (0, I.jsx)(sU, { traffic: s.traffic }) : null,
- mH(s) ? /* @__PURE__ */ (0, I.jsx)(RH, { state: s }) : null
+ pH(s) ? /* @__PURE__ */ (0, I.jsx)(oU, { traffic: s.traffic }) : null,
+ pH(s) ? /* @__PURE__ */ (0, I.jsx)(LH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(pke, {
+ }), /* @__PURE__ */ (0, I.jsx)(mke, {
state: s,
problem: u,
settled: i,
@@ -69199,30 +69235,30 @@ function B$(e) {
});
}
// src/react/playlists/playlists.ts
-var mke = "/api/playlists", V$ = "/api/playlist", H$ = ["playlists"], U$ = (e) => B(mke, e);
-async function hke(e) {
+var hke = "/api/playlists", V$ = "/api/playlist", H$ = ["playlists"], U$ = (e) => B(hke, e);
+async function gke(e) {
await H.fetchQuery({
queryKey: H$,
queryFn: () => U$(e),
staleTime: 0
});
}
-var gke = () => H.invalidateQueries({
+var _ke = () => H.invalidateQueries({
queryKey: H$,
exact: !0
-}), _ke = (e) => e.current_asset_id || e.preview_asset_id || null, vke = (e) => `/poster?id=${e}&c=4`, yke = (e) => V(V$, {
+}), vke = (e) => e.current_asset_id || e.preview_asset_id || null, yke = (e) => `/poster?id=${e}&c=4`, bke = (e) => V(V$, {
action: "create",
name: e,
asset_ids: []
-}), bke = (e, t) => V(V$, {
+}), xke = (e, t) => V(V$, {
action: "rename",
id: e,
name: t
-}), xke = (e) => V(V$, {
+}), Ske = (e) => V(V$, {
action: "delete",
id: e
-}), Ske = (e) => B(`${V$}?id=${e}`).catch(() => null);
-function Cke(e) {
+}), Cke = (e) => B(`${V$}?id=${e}`).catch(() => null);
+function wke(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return V(V$, {
action: "create",
@@ -69233,8 +69269,8 @@ function Cke(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var W$ = "/api/custom-metadata", G$ = ["custom-metadata"], K$ = (e) => B(W$, e), wke = "/api/scraping", Tke = "/api/scraping/settings", Eke = "/api/scraping/check", q$ = "/api/scraping/cover", Dke = "/api/scraping/amane-bridge", Oke = "/api/scraping/amane-bridge/check", kke = "/api/scraping/amane-bridge/rebuild", J$ = ["scraping"], Y$ = ["scraping", "cover"], X$ = ["scraping", "amane-bridge"], Ake = 262144, Z$ = (e) => B(wke, e), Q$ = (e) => B(q$, e), $$ = (e) => B(Dke, e);
-async function jke(e) {
+var W$ = "/api/custom-metadata", G$ = ["custom-metadata"], K$ = (e) => B(W$, e), Tke = "/api/scraping", Eke = "/api/scraping/settings", Dke = "/api/scraping/check", q$ = "/api/scraping/cover", Oke = "/api/scraping/amane-bridge", kke = "/api/scraping/amane-bridge/check", Ake = "/api/scraping/amane-bridge/rebuild", J$ = ["scraping"], Y$ = ["scraping", "cover"], X$ = ["scraping", "amane-bridge"], jke = 262144, Z$ = (e) => B(Tke, e), Q$ = (e) => B(q$, e), $$ = (e) => B(Oke, e);
+async function Mke(e) {
await Promise.all([
H.fetchQuery({
queryKey: J$,
@@ -69254,7 +69290,7 @@ async function jke(e) {
})
]);
}
-function Mke(e, t) {
+function Nke(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
// src/react/search/search.ts
@@ -69271,7 +69307,7 @@ var e1 = /* @__PURE__ */ new Set([
"photo",
"release"
]), n1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Nke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function Pke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
@@ -69360,7 +69396,7 @@ function Nke({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function Pke(e, t, n = Math.random) {
+function Fke(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -69369,7 +69405,7 @@ function Pke(e, t, n = Math.random) {
return r.filter((e) => !t.some((t) => n1(t) === n1(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var Fke = () => ({
+var Ike = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69388,7 +69424,7 @@ var Fke = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), r1 = (e) => Nke({
+}), r1 = (e) => Pke({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69397,18 +69433,18 @@ var Fke = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), Ike = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), i1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+}), Lke = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), i1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function Lke(e) {
+function Rke(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= Fke();
+ n.current ??= Ike();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= Rke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= zke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus(), c = () => {
@@ -69423,7 +69459,7 @@ function Lke(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = r1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Bke, {
+ let c = r1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Vke, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69455,7 +69491,7 @@ function Lke(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(zke, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(Bke, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69482,7 +69518,7 @@ function Lke(e) {
]
});
}
-function Rke(e, t, n, r) {
+function zke(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -69540,9 +69576,9 @@ function Rke(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : Pke(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Fke(t.pool, o()), t.active = -1;
let a = n();
- a && (Ike(r1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Lke(r1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -69615,7 +69651,7 @@ function Rke(e, t, n, r) {
openPath: C
};
}
-function zke({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -69631,7 +69667,7 @@ function zke({ tabs: e, kind: t, onPick: n, wire: r }) {
onClick: () => n(e),
children: [r, i ? /* @__PURE__ */ (0, I.jsx)(AW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(XI, {
+ return /* @__PURE__ */ (0, I.jsxs)(YI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -69641,8 +69677,8 @@ function zke({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var a1 = (e) => e.preventDefault();
-function Bke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- vL();
+function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ _L();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -69802,7 +69838,7 @@ function s1({ item: e, kind: t }) {
}
// src/react/settings/configuration.ts
var c1 = ["configuration"], l1 = (e) => B(iX, e);
-async function Vke(e) {
+async function Hke(e) {
await H.fetchQuery({
queryKey: c1,
queryFn: () => l1(e)
@@ -69855,7 +69891,7 @@ function f1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function Hke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function Uke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -69889,7 +69925,7 @@ function Hke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var Uke = [
+var Wke = [
[
"strength",
"强度",
@@ -69916,8 +69952,8 @@ var Uke = [
100
]
];
-function Wke({ host: e, spot: t, index: n, glow: r }) {
- let i = Qce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = $V(), [l, u] = (0, F.useState)("all");
+function Gke({ host: e, spot: t, index: n, glow: r }) {
+ let i = $ce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = QV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -69930,7 +69966,7 @@ function Wke({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = tM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
+ r[t].color = eM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -69955,7 +69991,7 @@ function Wke({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -69967,7 +70003,7 @@ function Wke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: tle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: nle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -69981,7 +70017,7 @@ function Wke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: nle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: rle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -69998,8 +70034,8 @@ function Wke({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function Gke({ host: e }) {
- let t = e.store.value.homeGlow, n = Jj(t.preset);
+function Kke({ host: e }) {
+ let t = e.store.value.homeGlow, n = qj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70018,10 +70054,10 @@ function Gke({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: $ce(t.preset)
+ children: ele(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(GM, {
+ /* @__PURE__ */ (0, I.jsx)(WM, {
store: e.store,
label: "光晕配色"
}),
@@ -70032,7 +70068,7 @@ function Gke({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: Uke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Hke, {
+ children: Wke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Uke, {
field: r,
label: i,
max: a,
@@ -70053,7 +70089,7 @@ function Gke({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = rM(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = nM(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70072,7 +70108,7 @@ function Gke({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Gj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(Wke, {
+ children: Wj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(Gke, {
host: e,
spot: n,
index: r,
@@ -70084,7 +70120,7 @@ function Gke({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var Kke = {
+var qke = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70138,8 +70174,8 @@ function m1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = Kke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Pj(Number(localStorage.getItem(p1(e))), o, s, n && n > 0 ? n : l);
+ let a = qke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Nj(Number(localStorage.getItem(p1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -70221,8 +70257,8 @@ function _1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var qke = "__home__", v1 = (e) => e === "" ? qke : e;
-function Jke({ host: e }) {
+var Jke = "__home__", v1 = (e) => e === "" ? Jke : e;
+function Yke({ host: e }) {
let t = g1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
let a = _1(n, e, r, i);
a && t(a);
@@ -70284,9 +70320,9 @@ function Jke({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(JF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70300,7 +70336,7 @@ function Jke({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70310,7 +70346,7 @@ function Jke({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70322,7 +70358,7 @@ function Jke({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "eye-off" })
})
]
})]
@@ -70342,13 +70378,13 @@ function Jke({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(JF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -70366,7 +70402,7 @@ function Jke({ host: e }) {
onClick: () => {
s(v1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, v1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -70389,7 +70425,7 @@ var y1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Yke = [
+], Xke = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -70398,7 +70434,7 @@ var y1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Xke = [["desc", "降序"], ["asc", "升序"]], Zke = [[
+], Zke = [["desc", "降序"], ["asc", "升序"]], Qke = [[
"cover",
"官方封面",
""
@@ -70406,7 +70442,7 @@ var y1 = [
"thumbnail",
"预览图",
""
-]], Qke = [
+]], $ke = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -70425,32 +70461,32 @@ var y1 = [
"切片",
"隐藏切片"
]
-], $ke = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
+], eAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, S1 = 0, C1 = null, w1 = /* @__PURE__ */ new Set();
-function eAe(e) {
+function tAe(e) {
return w1.add(e), () => {
w1.delete(e);
};
}
-function tAe() {
+function nAe() {
for (let e of [...w1]) e();
}
function T1(e) {
x1 = {
...x1,
...e
- }, (0, Lt.flushSync)(tAe);
+ }, (0, Lt.flushSync)(nAe);
}
-async function nAe(e) {
+async function rAe(e) {
let t = x1.epoch, n = await e.configurable();
x1.open && x1.epoch === t && T1({ configurable: n });
}
-function rAe(e = "") {
+function iAe(e = "") {
let t = b1;
if (!t) return;
let n = y1.findIndex(([t]) => t === e);
@@ -70459,7 +70495,7 @@ function rAe(e = "") {
return;
}
as(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Uwe();
+ let r = Wwe();
T1({
open: !0,
closing: !1,
@@ -70468,7 +70504,7 @@ function rAe(e = "") {
tab: n >= 0 ? n : x1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), nAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), rAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function E1(e = !0) {
if (!x1.open || x1.closing) return;
@@ -70482,31 +70518,31 @@ function E1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var iAe = {
- open: rAe,
+var aAe = {
+ open: iAe,
close: E1,
isOpen: () => x1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function aAe(e) {
- return b1 = e, iAe;
+function oAe(e) {
+ return b1 = e, aAe;
}
-function oAe() {
- let e = (0, F.useSyncExternalStore)(eAe, () => x1);
- return b1 ? /* @__PURE__ */ (0, I.jsx)(lAe, {
+function sAe() {
+ let e = (0, F.useSyncExternalStore)(tAe, () => x1);
+ return b1 ? /* @__PURE__ */ (0, I.jsx)(uAe, {
host: b1,
view: e
}) : null;
}
-function sAe(e) {
+function cAe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll($ke)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(eAe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var D1 = (e) => `settings-tab-${e}`, O1 = (e) => `settings-group-${e}`;
-function cAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -70578,7 +70614,7 @@ function cAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(JF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(jde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Mde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -70589,9 +70625,9 @@ function cAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(JF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })
]
})
})
@@ -70608,7 +70644,7 @@ function k1({ index: e, tab: t, children: n, cards: r = !1 }) {
hidden: e !== t,
children: [
/* @__PURE__ */ (0, I.jsx)("h3", { children: y1[e][0] }),
- /* @__PURE__ */ (0, I.jsx)(Dve, { chapter: [
+ /* @__PURE__ */ (0, I.jsx)(Ove, { chapter: [
"appearance",
"playback",
"jav-settings",
@@ -70644,7 +70680,7 @@ function j1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function lAe({ host: e, view: t }) {
+function uAe({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -70676,7 +70712,7 @@ function lAe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: sAe,
+ onKeyDown: cAe,
onClick: (e) => {
e.target === e.currentTarget && E1();
},
@@ -70690,13 +70726,13 @@ function lAe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
children: y1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), /* @__PURE__ */ (0, I.jsx)(EV, {
id: "settingsClose",
label: "关闭设置",
onPress: () => E1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(cAe, {
+ /* @__PURE__ */ (0, I.jsx)(lAe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -70765,7 +70801,7 @@ function lAe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Gke, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(Kke, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -70777,18 +70813,18 @@ function lAe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(Jke, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(Yke, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(dAe, {
+ /* @__PURE__ */ (0, I.jsx)(fAe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(fAe, {
+ /* @__PURE__ */ (0, I.jsx)(pAe, {
host: e,
tab: t.tab,
epoch: d
@@ -70797,7 +70833,7 @@ function lAe({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(gAe, {
+ /* @__PURE__ */ (0, I.jsx)(_Ae, {
host: e,
epoch: d
}),
@@ -70819,7 +70855,7 @@ function lAe({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(NL, {
+ children: /* @__PURE__ */ (0, I.jsx)(ML, {
variant: "secondary",
href: "/taste",
onClick: () => E1(!1),
@@ -70847,7 +70883,7 @@ function lAe({ host: e, view: t }) {
})
});
}
-function uAe(e, t) {
+function dAe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Gs("arrow-up", "arrow-down", "a", {
@@ -70857,7 +70893,7 @@ function uAe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function dAe({ host: e, tab: t, epoch: n }) {
+function fAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 1,
@@ -70889,7 +70925,7 @@ function dAe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, I.jsx)(f1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Yke,
+ options: Xke,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -70898,7 +70934,7 @@ function dAe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, I.jsx)(f1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Xke,
+ options: Zke,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -70906,7 +70942,7 @@ function dAe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => uAe(e, o)
+ decorate: (e) => dAe(e, o)
})]
})
}),
@@ -70947,7 +70983,7 @@ function dAe({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Pj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Nj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -70956,14 +70992,14 @@ function dAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(hAe, {
+ /* @__PURE__ */ (0, I.jsx)(gAe, {
host: e,
epoch: n
})
]
});
}
-function fAe({ host: e, tab: t, epoch: n }) {
+function pAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(k1, {
index: 2,
@@ -70973,7 +71009,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(pAe, {
+ /* @__PURE__ */ (0, I.jsx)(mAe, {
host: e,
epoch: n
}),
@@ -70983,7 +71019,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Zke,
+ options: Qke,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71007,7 +71043,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Pj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Nj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -71020,7 +71056,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Qke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(mAe, {
+ $ke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(hAe, {
host: e,
id: t,
settingKey: n,
@@ -71030,7 +71066,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
]
});
}
-function pAe({ host: e, epoch: t }) {
+function mAe({ host: e, epoch: t }) {
let n = Pt({
queryKey: uX,
queryFn: ({ signal: e }) => hX(e),
@@ -71060,12 +71096,12 @@ function pAe({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function mAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function hAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = gX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), qc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -71090,7 +71126,7 @@ function mAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function hAe({ host: e, epoch: t }) {
+function gAe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(A1, {
@@ -71125,7 +71161,7 @@ function hAe({ host: e, epoch: t }) {
})
] });
}
-function gAe({ host: e, epoch: t }) {
+function _Ae({ host: e, epoch: t }) {
let n = e.store.value, r = gX();
return /* @__PURE__ */ (0, I.jsx)(j1, {
title: "搜索记录数量",
@@ -71136,14 +71172,14 @@ function gAe({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Pj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Nj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function _Ae(e, t, n, r) {
+function vAe(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -71279,7 +71315,7 @@ function _Ae(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var M1 = "__home__", vAe = {
+var M1 = "__home__", yAe = {
creator: 26,
tag: 30,
tech: 16
@@ -71291,7 +71327,7 @@ var M1 = "__home__", vAe = {
},
epoch: 0
}, I1 = /* @__PURE__ */ new Set();
-function yAe(e) {
+function bAe(e) {
return I1.add(e), () => {
I1.delete(e);
};
@@ -71299,7 +71335,7 @@ function yAe(e) {
function L1() {
for (let e of [...I1]) e();
}
-var bAe = {
+var xAe = {
render(e) {
F1 = {
...F1,
@@ -71313,7 +71349,7 @@ var bAe = {
}, (0, Lt.flushSync)(L1);
}
};
-function xAe(e) {
+function SAe(e) {
return P1 = e, F1 = {
...F1,
props: {
@@ -71321,26 +71357,26 @@ function xAe(e) {
filters: {},
latest: null
}
- }, bAe;
+ }, xAe;
}
-function SAe() {
- let e = (0, F.useSyncExternalStore)(yAe, () => F1);
- return P1 ? /* @__PURE__ */ (0, I.jsx)(CAe, {
+function CAe() {
+ let e = (0, F.useSyncExternalStore)(bAe, () => F1);
+ return P1 ? /* @__PURE__ */ (0, I.jsx)(wAe, {
host: P1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function CAe({ host: e, props: t, epoch: n }) {
+function wAe({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(wAe, {
+ /* @__PURE__ */ (0, I.jsx)(TAe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(EAe, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(DAe, {
host: e,
content: t.content,
filters: t.filters,
@@ -71348,8 +71384,8 @@ function CAe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function wAe({ host: e, epoch: t, version: n }) {
- let r = g1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = jL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function TAe({ host: e, epoch: t, version: n }) {
+ let r = g1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = AL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -71368,7 +71404,7 @@ function wAe({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = _Ae(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = vAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -71404,7 +71440,7 @@ function wAe({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(JF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(qF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || M1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -71427,7 +71463,7 @@ function wAe({ host: e, epoch: t, version: n }) {
}), p) : null] });
}
var R1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function TAe(e) {
+function EAe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -71441,7 +71477,7 @@ function TAe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function EAe({ host: e, content: t, filters: n, latest: r }) {
+function DAe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && Zs(e.scroll, "drawer");
@@ -71450,8 +71486,8 @@ function EAe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? DAe(e, t.facets, n, r, i) : OAe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(kAe, {
+ let a = t.kind === "catalog" ? OAe(e, t.facets, n, r, i) : kAe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(AAe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -71460,8 +71496,8 @@ function EAe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function DAe(e, t, n, r, i) {
- let a = TAe(r), o = (t, r, i) => {
+function OAe(e, t, n, r, i) {
+ let a = EAe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = R1(n, r);
return /* @__PURE__ */ (0, I.jsx)(V1, {
@@ -71486,12 +71522,12 @@ function DAe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(jAe, {
+ body: /* @__PURE__ */ (0, I.jsx)(MAe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: vAe[d],
+ limit: yAe[d],
filterKey: l,
selected: f,
counts: a,
@@ -71530,7 +71566,7 @@ function DAe(e, t, n, r, i) {
} : null
];
}
-function OAe(e, t, n) {
+function kAe(e, t, n) {
let r = t.providers || [], i = R1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -71577,7 +71613,7 @@ function z1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function kAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => z1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -71603,7 +71639,7 @@ function kAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -71624,8 +71660,8 @@ function kAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var B1 = (0, F.createContext)(() => {});
-function AAe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(JF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+function jAe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -71648,7 +71684,7 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(AAe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(jAe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -71663,7 +71699,7 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function jAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function MAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, F.useContext)(B1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -71704,7 +71740,7 @@ function jAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(JF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
}) : null] });
}
function H1({ rows: e, host: t, selected: n, badges: r }) {
@@ -71813,11 +71849,11 @@ function G1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", MAe = [
+var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", NAe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], NAe = [
+], PAe = [
[
"读本地 NFO 和图片",
"✓",
@@ -71848,7 +71884,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], PAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", FAe = [
+], FAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", IAe = [
{
provider: "coomer",
label: "Coomer",
@@ -71938,7 +71974,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", IAe = "peach.configuration.shape.v1";
+], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", LAe = "peach.configuration.shape.v1";
function Z1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -71947,11 +71983,11 @@ function Z1() {
return {};
}
}
-function LAe(e, t) {
+function RAe(e, t) {
try {
let n = Z1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(IAe, JSON.stringify({
+ localStorage.setItem(LAe, JSON.stringify({
...n,
[e]: t
}));
@@ -71962,13 +71998,13 @@ var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: n0
-}), l0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, RAe = (e, t, n) => {
+}), l0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, zAe = (e, t, n) => {
let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${s0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${RAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "", n = "4em") => f0(e, t, r0(n)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${ks(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, zAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${zAe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, BAe = FAe;
-function VAe(e = Q1("credentials")) {
+}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${zAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "", n = "4em") => f0(e, t, r0(n)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${ks(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, BAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${BAe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, VAe = IAe;
+function HAe(e = Q1("credentials")) {
let t = new Set(t0(e?.done, 64, String));
- return BAe.map((e) => {
+ return VAe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -71977,19 +72013,19 @@ function VAe(e = Q1("credentials")) {
};
});
}
-function HAe(e) {
+function UAe(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? h0(z(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</div></div>` : "";
return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${x0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function C0() {
- let e = VAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = HAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return d0("来源凭据", u0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(HAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(UAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
}
function w0() {
let e = t0(Q1("indexers")?.open, 20, $1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -72004,25 +72040,25 @@ function D0() {
let e = Q1("cloudProxy"), t = t0(e?.accounts, 12, (e) => Array.isArray(e) ? [$1(e[0]), $1(e[1])] : [!1, !1]), n = e0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${g0(b0(r0("6em")))}${h0(r0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${g0(b0(r0("8em")))}${h0(r0("50%"))}${E0("数据代理", e)}${E0("API 代理", t)}<div class="flex justify-end">${c0("保存配置")}</div></div>`).join("") : h0(r0("60%"));
return d0("CloudDrive 代理", u0(`${h0(X1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), c0("重新读取", "secondary"));
}
-var O0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, UAe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var O0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, WAe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${Ds({
glyph: "folder-search",
variant: "secondary",
attrs: n0
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${O0("来源", ks(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", ks(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", ks(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, WAe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, GAe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Ds({
label: "自动识别",
variant: "secondary",
attrs: n0
})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(r0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${UAe(t).repeat(e)}<div class="flex">${Ds({
+ <div data-library-folders>${WAe(t).repeat(e)}<div class="flex">${Ds({
label: "添加文件夹",
variant: "secondary",
attrs: n0
-})}</div></div></div>`, GAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, KAe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function qAe(e = Q1("media")) {
+})}</div></div></div>`, KAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, qAe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function JAe(e = Q1("media")) {
let t = t0(e?.folders, 12, (e) => e0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -72032,7 +72068,7 @@ function qAe(e = Q1("media")) {
cloud: !1
};
}
-function JAe() {
+function YAe() {
let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${ks(r0("4em"), { prefix: "对应目录" })}${Ds({
glyph: "trash",
variant: "secondary",
@@ -72040,13 +72076,13 @@ function JAe() {
})}</div>`;
return d0("自动发现新文件", u0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${o0()}</div>`) + p0("发现新文件后自动入库", t ? r0("10em") : "") + p0("监视本机文件夹", t && $1(e?.watchLocal) ? r0("12em") : "") + p0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? f0("Webhook 配置", r0("20em"), "") : "") + (r ? u0(x0("查看配置"), !0) : "") + (n ? u0(`<div class="flex flex-col gap-3">${g0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(e0(e?.prefixes, 20))}</div><div>${c0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? c0("更换密钥", "secondary") : "") + c0("保存配置"));
}
-var YAe = () => {
- let e = qAe();
- return d0("媒体库与目录", u0(`${GAe}<div class="flex flex-col gap-4">${e.folders.map((t) => WAe(t, e.folders.length)).join("")}</div>
+var XAe = () => {
+ let e = JAe();
+ return d0("媒体库与目录", u0(`${KAe}<div class="flex flex-col gap-4">${e.folders.map((t) => GAe(t, e.folders.length)).join("")}</div>
<div class="self-start">${c0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${q1}</p>
- ${e.cloud ? KAe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + JAe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, XAe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + m0("订阅源拉取") + p0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + m0("头像刷新", "重新获取关注创作者的头像。") + m0("favicon 刷新", "重新获取来源站点的图标。")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), ZAe = () => {
+ ${e.cloud ? qAe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + YAe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, ZAe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + m0("订阅源拉取") + p0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + m0("头像刷新", "重新获取关注创作者的头像。") + m0("favicon 刷新", "重新获取来源站点的图标。")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), QAe = () => {
let e = Q1("downloads"), t = $1(e?.pikpak), n = $1(e?.pikpakRoots) ? v0(b0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${g0(b0("PikPak 根目录对应的媒体目录"))}${h0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = $1(e?.cloud) ? d0("云下载", u0(_0("CloudDrive2 地址") + _0("CloudDrive2 API 令牌", "需要离线任务权限。") + ($1(e?.has115) ? _0(b0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? _0(b0("PikPak 目标目录"), "目录要已经存在。") + n : "") + _0("等待上限(小时)", r0("14em"))), c0("检查连接", "secondary") + c0("保存配置")) : "", i = $1(e?.pikpakLoggedIn);
return r + (t ? d0("PikPak 账号", i ? S0(["账号", r0("4em")]) : u0(_0("账号") + _0("密码") + y0("保存密码,登录过期时自动重新登录")), i ? c0("登出", "secondary") : ($1(e?.browserLogin) ? c0("用浏览器登录", "secondary") : "") + c0("登录"), {
aside: o0(),
@@ -72060,24 +72096,24 @@ var YAe = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function QAe(e) {
+function $Ae(e) {
let t = e === "locked" ? "" : _0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + _0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (k0[e] ? h0(k0[e]) : "") + (e === "open" ? a0("100%", "64px") : "") + (e === "password" || e === "legacy" ? y0("关闭访问密码") : "") + (e === "password" ? _0("当前访问密码 *") : "") + t;
}
-var $Ae = () => {
+var eje = () => {
let e = Q1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = $1(e?.tunnelNamed), r = (n && $1(e?.tunnelNamedMode) ? h0(A0.named) + _0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + _0("隧道令牌", r0("16em")) : h0(A0.quick)) + ($1(e?.tunnelNote) ? a0("100%", "64px") : ""), i = e0(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${_0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${c0("复制地址", "secondary")}</div>`).join("");
- return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0(QAe(t)), t === "locked" ? "" : c0("保存配置")) + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
-}, eje = [
+ return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0($Ae(t)), t === "locked" ? "" : c0("保存配置")) + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
+}, tje = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], tje = () => {
+], nje = () => {
let e = Q1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -72088,20 +72124,20 @@ var $Ae = () => {
return d0("检查更新", S0(t) + (n ? u0(h0(r0("50%")).repeat(n), !0) : ""), c0("检查更新"), {
aside: o0("4em"),
status: r0("5em")
- }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : eje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", c0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
+ }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : tje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", c0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
};
-function nje(e) {
+function rje(e) {
switch (e) {
case "系统诊断": return G1();
- case "来源与订阅": return XAe();
- case "下载渠道": return ZAe();
- case "网络与访问": return $Ae();
- case "应用与维护": return tje();
- default: return YAe();
+ case "来源与订阅": return ZAe();
+ case "下载渠道": return QAe();
+ case "网络与访问": return eje();
+ case "应用与维护": return nje();
+ default: return XAe();
}
}
-function rje(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${nje(e)}</div></div></div>`;
+function ije(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${rje(e)}</div></div></div>`;
}
// src/react/jav/discovery-sorts.ts
var j0 = [
@@ -72112,7 +72148,7 @@ var j0 = [
],
[
"release_date",
- Ij[1],
+ Fj[1],
"按发行日期排序"
],
[
@@ -72131,10 +72167,10 @@ var j0 = [
"按番号排序"
]
];
-function ije(e) {
+function aje(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function aje(e) {
+function oje(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -72159,7 +72195,7 @@ function aje(e) {
};
}
// src/jav-skeleton.ts
-var M0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, oje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, N0 = "w-full min-w-0";
+var M0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, sje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, N0 = "w-full min-w-0";
function P0() {
return [
"w-20",
@@ -72170,10 +72206,10 @@ function P0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function F0(e, t = bM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${M0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${oje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${M0("80%")}${M0("60%")}${M0("40%")}</div></div>`).join("")}</div>`;
- let n = OM({
- ...DM({
+function F0(e, t = yM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${M0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${sje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${M0("80%")}${M0("60%")}${M0("40%")}</div></div>`).join("")}</div>`;
+ let n = DM({
+ ...EM({
active: !0,
home: !1,
portrait: !1
@@ -72189,7 +72225,7 @@ function F0(e, t = bM()) {
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function sje(e) {
+function cje(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
<div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Ds({
@@ -72197,12 +72233,12 @@ function sje(e) {
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${SU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${xU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
<form aria-label="${t}">${Es("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${M0("100%")}</div>${F0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${cje()}${F0(e)}</section>`}</div></div>`;
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${M0("100%")}</div>${F0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${lje()}${F0(e)}</section>`}</div></div>`;
}
-function cje() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${bM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
+function lje() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${yM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${P0()}</div></div>
@@ -72218,7 +72254,7 @@ function cje() {
}
// src/management-skeletons.ts
var I0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", L0 = (e = "60%") => `<span class="${I0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, R0 = "disabled data-skeleton-action", z0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function lje() {
+function uje() {
let e = [
"馆藏视频",
"看过",
@@ -72259,7 +72295,7 @@ function lje() {
</section>
</div></div>`;
}
-function uje() {
+function dje() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -72315,7 +72351,7 @@ function uje() {
</div>
</div></div>`;
}
-function dje() {
+function fje() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${I0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${L0("70%")}</span>
@@ -72343,7 +72379,7 @@ function dje() {
${t.repeat(2)}
</div></div>`;
}
-function fje() {
+function pje() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${I0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${L0("80%")}</h3><p class="text-body-2-regular">${L0("60%")}</p></div>
@@ -72361,14 +72397,14 @@ function fje() {
</div></div>`;
}
// src/board-skeleton.ts
-var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pje = () => `${B0("80%")}${B0("48%")}`, V0 = (e, t) => e.repeat(t), H0 = "disabled data-skeleton-action", U0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, W0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, mje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", G0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje = () => `${B0("80%")}${B0("48%")}`, V0 = (e, t) => e.repeat(t), H0 = "disabled data-skeleton-action", U0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, W0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, hje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", G0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${mje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${U0("3em")}</b></div>`).join("")}</div>`, hje = (e = "") => qZ.some(([t]) => t === e) ? e : "list", K0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${qZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, q0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, gje = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${hje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${U0("3em")}</b></div>`).join("")}</div>`, gje = (e = "") => qZ.some(([t]) => t === e) ? e : "list", K0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${qZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, q0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, _je = ({ table: e, sort: t, dir: n }) => {
let r = lr.find(([e]) => e === t)[1];
return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${U0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({
glyph: "refresh-cw",
@@ -72403,7 +72439,7 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pje
size: "small",
glyph: "trash",
attrs: H0
-})}</span>`, _je = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${q0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${U0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${W0(14, 14)}</span>${W0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${U0("113px")}</span>${J0()}</span></div>`, Y0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${W0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${U0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
+})}</span>`, vje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${q0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${U0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${W0(14, 14)}</span>${W0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${U0("113px")}</span>${J0()}</span></div>`, Y0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${W0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${U0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -72420,13 +72456,13 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pje
glyph: "chevron-up",
label: "收起",
attrs: H0
-})}</span></span></div><div data-source-divider>${V0(_je(), e)}</div></section>`, vje = () => {
+})}</span></span></div><div data-source-divider>${V0(vje(), e)}</div></section>`, yje = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, yje = [
+}, bje = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -72434,13 +72470,13 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pje
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], bje = {
+], xje = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, X0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", xje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${yje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${bje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${X0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${V0(`<tr>${[
+}, X0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Sje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${bje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${xje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${X0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${V0(`<tr>${[
q0(),
`<span class="flex min-w-0 items-center gap-2">${W0(32, 32, !0)}${U0("5em")}</span>`,
U0("10em"),
@@ -72448,37 +72484,37 @@ var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pje
W0(48, 24),
U0("113px"),
J0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Sje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${U0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${W0(204, 32)}</div></div>`, Cje = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${U0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Cje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${U0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${W0(204, 32)}</div></div>`, wje = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${U0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${U0(e)}</span>`).join("")}</div>`, wje = (e) => {
- let t = hje(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4">${Cje()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || vje(), a = n ? xje(i, r) : `${q0("全选本页")}<div class="flex flex-col gap-3">${Y0(3)}${Y0(4)}${Y0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${gje({
+].map((e) => `<span class="text-body-medium">${U0(e)}</span>`).join("")}</div>`, Tje = (e) => {
+ let t = gje(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4">${wje()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || yje(), a = n ? Sje(i, r) : `${q0("全选本页")}<div class="flex flex-col gap-3">${Y0(3)}${Y0(4)}${Y0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${_je({
table: n,
...r
- })}${a}${Sje(n, i)}</div></div></div></div></div>`;
+ })}${a}${Cje(n, i)}</div></div></div></div></div>`;
};
-function Tje() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${B0("85%")}${B0("65%")}${V0(pje(), 4)}</div></aside></div>`;
+function Eje() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${B0("85%")}${B0("65%")}${V0(mje(), 4)}</div></aside></div>`;
}
-function Eje(e, t = {}) {
+function Dje(e, t = {}) {
let n = "";
- if (e === "/stats") n = lje();
- else if (e === "/jav") n = sje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = uje();
- else if (e === "/subscriptions") n = wje(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = rje(Df[e.split("/")[2]]);
+ if (e === "/stats") n = uje();
+ else if (e === "/jav") n = cje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = dje();
+ else if (e === "/subscriptions") n = Tje(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = ije(Df[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${U0("8em")}</span><span class="text-caption-1-regular">${U0("14em")}</span>${U0("60%")}${U0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${U0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = dje();
- else if (e === "/quality-goals") n = fje();
+ else if (e === "/duplicates") n = fje();
+ else if (e === "/quality-goals") n = pje();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Ds({
label: "新建",
attrs: H0
@@ -72487,7 +72523,7 @@ function Eje(e, t = {}) {
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function Dje(e) {
+function Oje(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -72495,10 +72531,10 @@ function Dje(e) {
}
function Z0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return Dje(n ?? t.body);
+ return Oje(n ?? t.body);
}
var Q0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function Oje(e) {
+function kje(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
let t = e.matches(Q0) ? e : e.querySelector(Q0);
@@ -72511,13 +72547,13 @@ function $0(e) {
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var e2 = (e) => ["follow-item", e], kje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Aje = "/api/follow/save", jje = "/api/follow/media/hide", t2 = class extends Error {
+var e2 = (e) => ["follow-item", e], Aje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, jje = "/api/follow/save", Mje = "/api/follow/media/hide", t2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function n2(e, t) {
- let n = await B(kje(e), t);
+ let n = await B(Aje(e), t);
for (let t of n.groups || []) {
let r = ca(t).find((t) => t.id === e);
if (r) return {
@@ -72529,7 +72565,7 @@ async function n2(e, t) {
}
throw new t2();
}
-function Mje(e) {
+function Nje(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ca(t.group).find((t) => t.id === e);
@@ -72547,13 +72583,13 @@ async function r2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? Mje(e.id);
+ } : H.getQueryData(n) ?? Nje(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
queryFn: () => n2(e.id, t)
}), await i;
}
-function Nje(e, t, n, r) {
+function Pje(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && _a(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -72568,32 +72604,32 @@ function Nje(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var Pje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Fje = {
+var Fje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Ije = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, Ije = {
+}, Lje = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function Lje(e) {
+function Rje(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return Fje[t] || t;
+ return Ije[t] || t;
} catch {
return "外部文件页";
}
}
function i2(e, t) {
- return Ije[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return Lje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function Rje(e, t, n = "") {
+function zje(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -72602,16 +72638,16 @@ function Rje(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var zje = (e) => String(e.name || "").trim(), a2 = (e, t) => e.tag_types?.[t] || "unknown", Bje = /* @__PURE__ */ new Set([
+var Bje = (e) => String(e.name || "").trim(), a2 = (e, t) => e.tag_types?.[t] || "unknown", Vje = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function Vje(e, t) {
+function Hje(e, t) {
let n = a2(e, t);
- return `r34-${Bje.has(n) ? n : "general"}`;
+ return `r34-${Vje.has(n) ? n : "general"}`;
}
var o2 = [
"copyright",
@@ -72620,7 +72656,7 @@ var o2 = [
"general",
"metadata"
];
-function Hje(e, t) {
+function Uje(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = o2.indexOf(a2(e, t));
return n < 0 ? o2.length : n;
@@ -72631,12 +72667,12 @@ function s2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var Uje = (e, t) => ({
+var Wje = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), c2 = (e) => e?.size ? { size: e.size } : {};
-function Wje(e, t) {
+function Gje(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -72657,7 +72693,7 @@ function Wje(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var Gje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", u2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", d2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", f2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", p2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", m2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", h2 = "disabled data-skeleton-action", g2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, _2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, v2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, y2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, Kje = [
+var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", u2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", d2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", f2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", p2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", m2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", h2 = "disabled data-skeleton-action", g2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, _2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, v2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, y2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, qje = [
"3em",
"5em",
"5em",
@@ -72667,7 +72703,7 @@ var Gje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
"8em",
"8em",
"10em"
-], qje = [
+], Jje = [
"5.8em",
"6.4em",
"7em",
@@ -72682,7 +72718,7 @@ var Gje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
size: "small",
label: g2(t)
});
-function Jje() {
+function Yje() {
return `<section class="${C$("stack")}">
<div class="${x$.stack}">${v2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${l2}</p>
@@ -72696,9 +72732,9 @@ function Jje() {
</div>
<p class="text-caption-1-regular text-text-secondary">${u2}</p>
${y2(g2("12em"), { label: "文件名模板" })}${y2(g2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${Kje.map((e) => b2("secondary", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${qje.map((e) => b2("secondary", e)).join("")}</div></div>
<p class="text-caption-1-regular text-text-secondary">路径示例:${g2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${qje.map((e) => b2("ghost", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${Jje.map((e) => b2("ghost", e)).join("")}</div></div>
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${d2}</p>
</div>
</div>
@@ -72708,7 +72744,7 @@ function Jje() {
})}</footer>
</section>`;
}
-var Yje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+var Xje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${C$("split")}"><div class="${x$.split}">${v2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${f2}</p></div>
<footer class="${S$.split}">${Ds({
@@ -72716,7 +72752,7 @@ var Yje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
label: "检查文件",
attrs: h2
})}</footer></section>
-</section>`, x2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${g2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${g2("14em")}</small>` : ""}</div>`, Xje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+</section>`, x2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${g2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${g2("14em")}</small>` : ""}</div>`, Zje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${C$("stack")}"><div class="${x$.stack}">${v2("链接管理", "mb-2")}
<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${x2("链接总数", !0)}${[
0,
@@ -72736,7 +72772,7 @@ var Yje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
</section>`;
function S2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${q0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${X0}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${q0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${BH({
+ return `<div data-data-table-panel class="${zH({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
@@ -72758,14 +72794,14 @@ function S2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${g2("8em")}</span><div data-toolbar-actions>${ks("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var Zje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${g2(e)}</span><small class="text-caption-1-regular">${g2(t)}</small></span>`, Qje = {
+var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${g2(e)}</span><small class="text-caption-1-regular">${g2(t)}</small></span>`, $je = {
organize: {
label: "正在读取整理配置",
- body: Jje
+ body: Yje
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: Yje
+ body: Xje
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
@@ -72777,7 +72813,7 @@ var Zje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${Zje("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${Qje("70%", "40%")}</span>`
},
{
label: "个人记录",
@@ -72799,11 +72835,11 @@ var Zje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: eke
+ body: tke
},
links: {
label: "正在读取链接统计",
- body: Xje
+ body: Zje
},
"batch-delete": {
label: "正在读取女优列表",
@@ -72838,7 +72874,7 @@ var Zje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
}
};
function C2(e) {
- let { label: t, body: n } = Qje[e];
+ let { label: t, body: n } = $je[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
@@ -72850,7 +72886,7 @@ var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), $je = [
+}), eMe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -72860,15 +72896,15 @@ var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], eMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], tMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${$je.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${eMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, tMe = {
- "/data-cleanup": () => tke(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, nMe = {
+ "/data-cleanup": () => nke(),
...Object.fromEntries(qf.map((e) => [e.path, () => C2(e.key)])),
"/resource-sync": () => C2("resource-sync"),
- "/review": () => eMe(),
+ "/review": () => tMe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${w2("正在读取采集来源", {
cards: !0,
@@ -72878,13 +72914,13 @@ var w2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
})}</div>`
};
function T2(e, { followLayout: t, followSort: n, followDir: r }) {
- return Eje(e, {
+ return Dje(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (tMe[e] ?? (() => w2("正在读取页面")))();
+ }) || (nMe[e] ?? (() => w2("正在读取页面")))();
}
var E2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function D2(e, t) {
@@ -72911,11 +72947,11 @@ function O2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(wV, {
+ children: /* @__PURE__ */ (0, I.jsx)(CV, {
size: "compact",
- icon: fV,
+ icon: dV,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(NL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(ML, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73019,7 +73055,7 @@ function A2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(nMe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(rMe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73038,7 +73074,7 @@ function A2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function nMe({ item: e, selected: t, onSelect: n, render: r }) {
+function rMe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -73064,7 +73100,7 @@ function nMe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var rMe = (e, t, n) => [
+var iMe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -73086,7 +73122,7 @@ function j2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function iMe(e, t, n, r) {
+async function aMe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ga(i),
status: "new",
@@ -73115,7 +73151,7 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = OH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = DH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73147,7 +73183,7 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...OV(!!g.busy),
+ ...DV(!!g.busy),
onClick: () => _(e),
children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "pencil" })
}),
@@ -73161,7 +73197,7 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, I.jsx)(aMe, {
+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(oMe, {
tags: e,
candidates: h,
label: a,
@@ -73172,11 +73208,11 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
loading: m.isFetching
})]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -73194,8 +73230,8 @@ function N2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function aMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = $V(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = QV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -73240,7 +73276,7 @@ function aMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Lue(_, t, UP()) : {
+ let w = p ? Rue(_, t, HP()) : {
recent: [],
results: [],
create: ""
@@ -73303,7 +73339,7 @@ function aMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...OV(!!i),
+ ...DV(!!i),
children: /* @__PURE__ */ (0, I.jsx)(M2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
@@ -73378,8 +73414,8 @@ function aMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function oMe({ item: e, label: t, actions: n }) {
- let r = OH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function sMe({ item: e, label: t, actions: n }) {
+ let r = DH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -73402,7 +73438,7 @@ function oMe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && WP(s);
+ o === "add" && UP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -73419,9 +73455,9 @@ function oMe({ item: e, label: t, actions: n }) {
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
children: [/* @__PURE__ */ (0, I.jsx)(N2, {
- tags: Hje(e, t).map((t) => ({
+ tags: Uje(e, t).map((t) => ({
k: t,
- cat: Vje(e, t)
+ cat: Hje(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -73430,19 +73466,19 @@ function oMe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => OV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ busyAttrs: () => DV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var P2 = (e) => Number(e) > 0, sMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var P2 = (e) => Number(e) > 0, cMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), F2 = R("external-link", "ui-externalmark");
-function cMe(e) {
+function lMe(e) {
let { id: t, actions: n } = e, r = Pt({
queryKey: e2(t),
queryFn: ({ signal: e }) => n2(t, e)
@@ -73450,10 +73486,10 @@ function cMe(e) {
queryKey: ra,
queryFn: ({ signal: e }) => ia(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(dMe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(fMe, {
...e,
data: r.data,
- context: Uje(r.data, a),
+ context: Wje(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -73464,7 +73500,7 @@ function cMe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(I2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? lMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(uMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(GG, {
+ children: r.isError ? uMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(dMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(GG, {
message: bn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -73472,8 +73508,8 @@ function cMe(e) {
})
});
}
-var lMe = (e) => e instanceof t2 || e instanceof or && e.status === 404;
-function uMe({ onBack: e }) {
+var uMe = (e) => e instanceof t2 || e instanceof or && e.status === 404;
+function dMe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -73491,8 +73527,8 @@ var I2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = Nje(c, l, n, i), d = _Me(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = Pje(c, l, n, i), d = vMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -73512,7 +73548,7 @@ function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? Pje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(B2, {
+ let g = !u.embedded.length && u.collection ? Fje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(B2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -73525,7 +73561,7 @@ function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(mMe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hMe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -73535,14 +73571,14 @@ function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(pMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(mMe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(hMe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(gMe, {
item: c,
data: e,
context: t,
@@ -73554,7 +73590,7 @@ function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, I.jsx)(k2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(fMe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(pMe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -73564,10 +73600,10 @@ function dMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function fMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Pt({
- queryKey: rMe(e.item.id, t, n),
- queryFn: ({ signal: r }) => iMe(e, t, n, r)
+ queryKey: iMe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => aMe(e, t, n, r)
}), [s] = (0, F.useState)(() => w2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -73607,8 +73643,8 @@ function fMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function pMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = Wje(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function mMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = Gje(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -73629,7 +73665,7 @@ function pMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void FZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void PZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -73676,7 +73712,7 @@ function z2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function mMe({ group: e, itemId: t, helpers: n, actions: r }) {
+function hMe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = _a(e), a = z2(n);
return /* @__PURE__ */ (0, I.jsx)(zK, {
kind: "collection",
@@ -73686,7 +73722,7 @@ function mMe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${SG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = Rje(e, n, i ? n.provider_label : ""), o = i ? bG(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = zje(e, n, i ? n.provider_label : ""), o = i ? bG(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, I.jsxs)(BK, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -73734,7 +73770,7 @@ function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${SG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Lbe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Rbe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(BK, {
@@ -73746,7 +73782,7 @@ function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(L2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: zje(n)
+ children: Bje(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -73754,7 +73790,7 @@ function B2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
@@ -73842,7 +73878,7 @@ function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(gMe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(_Me, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -73865,7 +73901,7 @@ function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [Lje(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Rje(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: F2 }
})]
@@ -73967,7 +74003,7 @@ function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(sMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(R2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(cMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -73976,7 +74012,7 @@ function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(oMe, {
+ /* @__PURE__ */ (0, I.jsx)(sMe, {
item: e,
label: o.tagLabel,
actions: s
@@ -73985,7 +74021,7 @@ function hMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function gMe({ text: e }) {
+function _Me({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -73998,7 +74034,7 @@ function gMe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: eL(e),
+ lang: $I(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74010,7 +74046,7 @@ function gMe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function _Me(e, t, n) {
+function vMe(e, t, n) {
let r = e.id, i = e2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -74030,7 +74066,7 @@ function _Me(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && bW(), t.toast(Gje(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && yW(), t.toast(Kje(n), { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: r,
to: i
@@ -74040,7 +74076,7 @@ function _Me(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Ft({
- mutationFn: () => V(Aje, { item: r }),
+ mutationFn: () => V(jje, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74048,7 +74084,7 @@ function _Me(e, t, n) {
onSettled: () => l("save", !1)
}), m = Ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(jje, {
+ await V(Mje, {
item: r,
media: e,
hidden: t
@@ -74064,12 +74100,12 @@ function _Me(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Pt({
- queryKey: Qve(r),
- queryFn: ({ signal: e }) => tye(r, e)
+ queryKey: $ve(r),
+ queryFn: ({ signal: e }) => nye(r, e)
}).data?.want ?? null, g = Ft({
- mutationFn: async (e) => (e ? await yW([e.id]) : await vW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await vW([e.id]) : await _W({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), bW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), yW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74109,7 +74145,7 @@ function _Me(e, t, n) {
}
// src/react/components/identity-cell.tsx
function V2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- vL();
+ _L();
let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z($n(o))}</span>` + ho({
@@ -74221,7 +74257,7 @@ function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74239,20 +74275,20 @@ function W2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var G2 = (e) => ["jav-detail", e], K2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), vMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), q2 = (e, t) => H.ensureQueryData({
+var G2 = (e) => ["jav-detail", e], K2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), yMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), q2 = (e, t) => H.ensureQueryData({
queryKey: G2(e.code),
queryFn: () => K2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function yMe(e, t) {
+function bMe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
var J2 = "peach.playback-target.v1", Y2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function bMe() {
+function xMe() {
try {
return localStorage.getItem(J2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
@@ -74260,7 +74296,7 @@ function bMe() {
}
}
function X2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(bMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = OH();
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(xMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = DH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
@@ -74307,12 +74343,12 @@ function X2({ id: e, onOpened: t }) {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...OV(f.busy === "open"),
+ ...DV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(ZH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(XH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -74321,16 +74357,16 @@ function X2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(XH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(YH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var xMe = JI({
+var SMe = qI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -74392,8 +74428,8 @@ var xMe = JI({
}
}
});
-function SMe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = xMe[t];
+function CMe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = SMe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -74404,11 +74440,11 @@ function SMe({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function Z2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(Cme, {
+ return /* @__PURE__ */ (0, I.jsx)(wme, {
ref: i,
...a,
className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SMe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CMe, {
state: e,
size: n,
shape: r
@@ -74419,7 +74455,7 @@ function Z2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var CMe = "/api/cover-crop", wMe = (e, t) => V(CMe, {
+var wMe = "/api/cover-crop", TMe = (e, t) => V(wMe, {
code: e,
box: t
});
@@ -74437,7 +74473,7 @@ function Q2({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function TMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74448,12 +74484,12 @@ function TMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(xV, {
+ }), /* @__PURE__ */ (0, I.jsx)(bV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(EMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(DMe, {
code: e,
coverUrl: t,
box: n,
@@ -74462,9 +74498,9 @@ function TMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function EMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = $V(), f = Ft({
- mutationFn: (t) => wMe(e, t),
+function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = QV(), f = Ft({
+ mutationFn: (t) => TMe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -74476,7 +74512,7 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : oDe(e, to);
+ } : sDe(e, to);
c(cQ(t, e, null));
}
let m = f.isPending;
@@ -74484,11 +74520,11 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(SV, { children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(xV, { children: /* @__PURE__ */ (0, I.jsx)(Q2, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(tR, {
+ /* @__PURE__ */ (0, I.jsx)(eR, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -74497,14 +74533,14 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: cr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(xL, {
- icon: RB,
+ /* @__PURE__ */ (0, I.jsx)(bL, {
+ icon: LB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -74541,14 +74577,14 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(m),
+ ...DV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...OV(m),
+ ...DV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -74566,14 +74602,14 @@ var $2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), t4 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
-function DMe(e) {
+function OMe(e) {
let { queue: t, actions: n } = e, r = Pt({
- queryKey: t ? wP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => NP(t, e.helpers, n),
+ queryKey: t ? CP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => MP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? IP(i, e.id) : t ? null : e.id, o = Pt({
- queryKey: CP(a ?? 0),
- queryFn: ({ signal: e }) => MP(a, e),
+ }), i = t && r.data || null, a = i ? FP(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: SP(a ?? 0),
+ queryFn: ({ signal: e }) => jP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -74596,9 +74632,9 @@ function DMe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(OMe, {
+ return /* @__PURE__ */ (0, I.jsx)(kMe, {
...e,
- item: Pue(o.data, i),
+ item: Fue(o.data, i),
queue: i
}, o.data.id);
}
@@ -74611,23 +74647,23 @@ var n4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function OMe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = UMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function kMe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = WMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(TP, {
+ n?.kind === "playlist" && V(wP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = rP() ? "" : Wue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = LP(n, t.id);
+ let s = nP() ? "" : Gue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = IP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(kMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(AMe, {
item: t,
gate: s,
helpers: i,
@@ -74640,7 +74676,7 @@ function OMe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(PMe, {
+ }), /* @__PURE__ */ (0, I.jsx)(FMe, {
item: t,
queue: n,
write: a,
@@ -74649,13 +74685,13 @@ function OMe(e) {
})]
}), /* @__PURE__ */ (0, I.jsx)(k2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(jMe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(MMe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(HMe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(UMe, {
...e,
item: n ? {
...t,
@@ -74664,7 +74700,7 @@ function OMe(e) {
}) : null
})] });
}
-function kMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Pt({
queryKey: G2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -74754,7 +74790,7 @@ function kMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(f.isFetching),
+ ...DV(f.isFetching),
title: f.data?.message || bn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -74763,7 +74799,7 @@ function kMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(AMe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(jMe, {
item: e,
badge: y,
helpers: n,
@@ -74804,7 +74840,7 @@ function kMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function AMe({ item: e, badge: t, helpers: n, actions: r }) {
+function jMe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -74829,8 +74865,8 @@ function AMe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function jMe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Bue(e), a = (0, F.useRef)(null), o = NMe(e, t, r), s = (0, F.useRef)(o);
+function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Vue(e), a = (0, F.useRef)(null), o = PMe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -74838,7 +74874,7 @@ function jMe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = MMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = NMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -74866,10 +74902,10 @@ function jMe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${Rue[i.edition_label] || "censored"}`,
+ className: `javedition ${zue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && FP(i);
+ }) : null, s = e.kind === "playlist" && PP(i);
return /* @__PURE__ */ (0, I.jsxs)(BK, {
current: i.id === t,
"data-queue-item": i.id,
@@ -74909,14 +74945,14 @@ function jMe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? GP(i.part_label) : jo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? WP(i.part_label) : jo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function MMe(e, t) {
- let n = Ft({ mutationFn: (t) => V(TP, {
+function NMe(e, t) {
+ let n = Ft({ mutationFn: (t) => V(wP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -74929,11 +74965,11 @@ function MMe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function NMe(e, t, n) {
- let r = wP({
+function PMe(e, t, n) {
+ let r = CP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, PP(e)), e), a = (t) => V(TP, {
+ }), i = (e) => (H.setQueryData(r, NP(e)), e), a = (t) => V(wP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ft({
@@ -74949,8 +74985,8 @@ function NMe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Hue(s, t, r, c);
- if (Uue(l, s)) return;
+ let l = Uue(s, t, r, c);
+ if (Wue(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -74992,7 +75028,7 @@ function NMe(e, t, n) {
}
};
}
-function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -75000,7 +75036,7 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(FMe, {
+ /* @__PURE__ */ (0, I.jsx)(IMe, {
item: e,
queue: t,
helpers: r,
@@ -75012,7 +75048,7 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(LMe, {
+ /* @__PURE__ */ (0, I.jsx)(RMe, {
item: e,
write: n
}),
@@ -75051,12 +75087,12 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(RMe, {
+ /* @__PURE__ */ (0, I.jsx)(zMe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(zMe, {
+ /* @__PURE__ */ (0, I.jsx)(BMe, {
item: e,
write: n,
helpers: r,
@@ -75065,10 +75101,10 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
/* @__PURE__ */ (0, I.jsx)(ZK, {
assetIds: XK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: CP(e.id) });
+ H.invalidateQueries({ queryKey: SP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(BMe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(VMe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75162,7 +75198,7 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(VMe, {
+ /* @__PURE__ */ (0, I.jsx)(HMe, {
item: e,
open: s,
write: n
@@ -75186,8 +75222,8 @@ function PMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function FMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = U2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Vue(e, t);
+function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = U2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Hue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75214,23 +75250,23 @@ function FMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(qH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(KH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(TMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(EMe, {
code: e.cover_key || e.code || "",
coverUrl: co(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: CP(e.id),
+ queryKey: SP(e.id),
exact: !0
- }), yP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), vP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(IMe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(LMe, {
id: e.id,
actions: r,
onStatus: i
@@ -75240,7 +75276,7 @@ function FMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function IMe({ id: e, actions: t, onStatus: n }) {
+function LMe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -75273,14 +75309,14 @@ function IMe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, I.jsx)($2, { name: "folder-sync" })
})] });
}
-function LMe({ item: e, write: t }) {
- let n = xP(e.rating);
+function RMe({ item: e, write: t }) {
+ let n = bP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": bP(e.rating),
+ "data-value": yP(e.rating),
children: [/* @__PURE__ */ (0, I.jsx)(uY, {
value: n,
onRate: (e) => t.rate(e),
@@ -75295,12 +75331,12 @@ function LMe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Aue(e.rating)
+ children: jue(e.rating)
})]
});
}
-function RMe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Fue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function zMe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => Iue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, I.jsx)(V2, {
kind: e,
@@ -75346,7 +75382,7 @@ function RMe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: MB,
+ trailingIcon: jB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -75371,12 +75407,12 @@ function RMe({ item: e, actions: t }) {
})]
});
}
-function zMe({ item: e, write: t, helpers: n, actions: r }) {
+function BMe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(N2, {
id: "detailTags",
- tags: Iue(e, n),
+ tags: Lue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -75387,8 +75423,8 @@ function zMe({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function BMe({ item: e }) {
- let t = Gue(e);
+function VMe({ item: e }) {
+ let t = Kue(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75422,7 +75458,7 @@ function BMe({ item: e }) {
})]
});
}
-function VMe({ item: e, open: t, write: n }) {
+function HMe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -75461,10 +75497,10 @@ function VMe({ item: e, open: t, write: n }) {
})]
});
}
-function HMe(e) {
+function UMe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
- queryKey: jue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Nue(t.id, n), e)).items || []
+ queryKey: Mue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Pue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(O2, {
wireDrag: r.wireDrag,
@@ -75490,8 +75526,8 @@ function HMe(e) {
}) : /* @__PURE__ */ (0, I.jsx)(e4, { html: o })
});
}
-function UMe(e, t, n) {
- let r = e.id, i = CP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function WMe(e, t, n) {
+ let r = e.id, i = SP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -75507,7 +75543,7 @@ function UMe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return vP(r, n), t;
+ return _P(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -75522,7 +75558,7 @@ function UMe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(EP, t === void 0 ? { kind: e } : {
+ let n = await m(TP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -75542,21 +75578,21 @@ function UMe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = SP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${xP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = xP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${bP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(KP(e, r), { undo: async () => {
+ t.toast(GP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(OP, {});
+ let e = await m(DP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(OP, {})).watch_later });
+ p({ watch_later: (await m(DP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -75566,9 +75602,9 @@ function UMe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(kP, { wanted: !e.wanted });
+ }), r = await m(OP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(kP, e));
+ n(await m(OP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -75582,7 +75618,7 @@ function UMe(e, t, n) {
});
u("保存中…");
try {
- o(await m(AP, {
+ o(await m(kP, {
liked: a,
reason: i
}));
@@ -75592,7 +75628,7 @@ function UMe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(AP, r));
+ o(await m(kP, r));
} });
});
},
@@ -75601,30 +75637,30 @@ function UMe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => BP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(DP, {
+ p((t) => zP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(EP, {
operation: "add",
tag: e.k
- }), p((t) => VP(t, e));
+ }), p((t) => BP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(DP, {
+ let e = await m(EP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- zP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => VP(e, {
+ RP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => BP(e, {
k: i,
cat: "general"
- })), WP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(DP, {
+ })), UP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(EP, {
operation: "remove",
tag: i
- }), p((e) => BP(e, i));
+ }), p((e) => zP(e, i));
} }));
});
}
@@ -75643,12 +75679,12 @@ function a4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function WMe(e, t = Date.now()) {
+function GMe(e, t = Date.now()) {
let n = a4(e);
return n !== void 0 && i4(t) > n ? Infinity : r4;
}
function o4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : WMe(t, n) === Infinity ? i4(e) > a4(t) : n - e < r4;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : GMe(t, n) === Infinity ? i4(e) > a4(t) : n - e < r4;
}
// src/react/wants/resource-cache.ts
var s4 = "peach.want-resources.v2";
@@ -75670,11 +75706,11 @@ function u4() {
return [];
}
}
-function GMe(e, t) {
+function KMe(e, t) {
let n = u4().find((t) => t.code === e);
return n && o4(n.saved, t) ? n : void 0;
}
-function KMe(e) {
+function qMe(e) {
let t = new Map(u4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -75683,7 +75719,7 @@ function KMe(e) {
}
return n;
}
-function qMe(e, t) {
+function JMe(e, t) {
if (t.state === "ready" && c4(t)) try {
let n = u4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(s4, JSON.stringify([{
@@ -75694,11 +75730,11 @@ function qMe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function JMe(e) {
+function YMe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Yn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function YMe(e) {
+function XMe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
@@ -75713,7 +75749,7 @@ function d4({ icon: e, children: t, title: n }) {
});
}
function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = OH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => GMe(h, e.release_date), [h, e.release_date]);
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = DH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => KMe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -75733,7 +75769,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", qMe(h, i), i;
+ return m.current = n && i.state === "busy", JMe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -75748,7 +75784,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && eye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && tye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -75756,7 +75792,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await V(sW, {
+ let n = await V(oW, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -75767,7 +75803,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: cW });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: sW });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -75785,39 +75821,39 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: rV,
- ...OV(x),
+ leadingIcon: nV,
+ ...DV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(VH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(BH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(CV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
- children: YMe(e)
+ children: XMe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(NL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: HB,
+ trailingIcon: VB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -75832,7 +75868,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(aW, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iW, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -75847,25 +75883,25 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, I.jsx)(d4, {
- icon: rge,
+ icon: ige,
children: e.source
}),
/* @__PURE__ */ (0, I.jsx)(d4, {
- icon: YB,
+ icon: JB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: JMe(e.size)
+ children: YMe(e.size)
}),
e.files ? /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: Khe,
+ icon: qhe,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, I.jsx)(d4, {
- icon: Phe,
+ icon: Fhe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(d4, {
- icon: nV,
+ icon: tV,
children: e
}, e))
]
@@ -75874,11 +75910,11 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(NL, {
+ /* @__PURE__ */ (0, I.jsx)(ML, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: HB,
+ trailingIcon: VB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -75887,18 +75923,18 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Whe,
- ...OV(f.busy === `copy:${e.id}`),
+ leadingIcon: Ghe,
+ ...DV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? nU(v.key) : zhe,
+ leadingIcon: v ? tU(v.key) : Bhe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...OV(f.busy === e.id),
+ ...DV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -75909,7 +75945,7 @@ function f4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)($H, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(QH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -75932,7 +75968,7 @@ function m4() {
return [];
}
}
-function XMe(e, t) {
+function ZMe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -75942,7 +75978,7 @@ function XMe(e, t) {
i.length <= 2e6 && localStorage.setItem(p4, i);
} catch {}
}
-function ZMe(e, t) {
+function QMe(e, t) {
let n = m4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
@@ -75954,11 +75990,11 @@ function ZMe(e, t) {
saved: i
} : void 0;
}
-function QMe(e, t, n) {
+function $Me(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && o4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function $Me(e) {
+function eNe(e) {
let t = (0, F.useRef)(!1), n = Pt({
queryKey: G2(e.code),
queryFn: ({ signal: n }) => {
@@ -75973,7 +76009,7 @@ function $Me(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(eNe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(tNe, {
...e,
item: n.data,
retry: r,
@@ -75996,7 +76032,7 @@ var h4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -76016,13 +76052,13 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = OH(), m = () => {
- p.run("want", async (e) => d ? (await yW([d], e), null) : (await vW({ code: t.code }, e)).want.id, (t) => {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = DH(), m = () => {
+ p.run("want", async (e) => d ? (await vW([d], e), null) : (await _W({ code: t.code }, e)).want.id, (t) => {
f(t), H.setQueryData(G2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), bW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), yW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76039,7 +76075,7 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(rNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(EQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(iNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(EQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
@@ -76062,7 +76098,7 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(tNe, { item: t }),
+ /* @__PURE__ */ (0, I.jsx)(nNe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(v4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
@@ -76078,7 +76114,7 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(nNe, {
+ /* @__PURE__ */ (0, I.jsx)(rNe, {
item: t,
navigate: n.navigate
}),
@@ -76117,14 +76153,14 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: eL(t.summary),
+ lang: $I(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(a),
+ ...DV(a),
onClick: i,
children: "立即重试"
}),
@@ -76133,10 +76169,10 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(NL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: HB,
+ trailingIcon: VB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76146,7 +76182,7 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...OV(!!p.busy),
+ ...DV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -76164,16 +76200,16 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(iNe, {
+ /* @__PURE__ */ (0, I.jsx)(aNe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(aNe, {
+ /* @__PURE__ */ (0, I.jsx)(oNe, {
item: t,
actions: n,
readOnly: r
@@ -76181,7 +76217,7 @@ function eNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(mW, {
+ /* @__PURE__ */ (0, I.jsx)(pW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
@@ -76197,7 +76233,7 @@ var g4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function tNe({ item: e }) {
+function nNe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = U2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
@@ -76214,7 +76250,7 @@ function tNe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: eL(a),
+ lang: $I(a),
children: a
})] }) : null]
})
@@ -76228,7 +76264,7 @@ function tNe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(qH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(KH, {})
})
})]
});
@@ -76246,7 +76282,7 @@ function v4({ score: e, review: t = !1 }) {
})]
});
}
-function nNe({ item: e, navigate: t }) {
+function rNe({ item: e, navigate: t }) {
let n = (e, n) => t(Nn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -76288,18 +76324,18 @@ function nNe({ item: e, navigate: t }) {
})]
});
}
-function rNe({ src: e }) {
+function iNe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), _ue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), vue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -76312,8 +76348,8 @@ function rNe({ src: e }) {
}) : null
});
}
-function iNe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ZMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
+function aNe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => QMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -76322,12 +76358,12 @@ function iNe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => QMe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => $Me(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await vMe(e, n, t, s.current);
- if (XMe(e, i), !i.ok || i.cache_stale) {
+ let i = await yMe(e, n, t, s.current);
+ if (ZMe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -76337,7 +76373,7 @@ function iNe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: yMe
+ getNextPageParam: bMe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -76345,10 +76381,10 @@ function iNe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? cr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)($H, {
+ children: /* @__PURE__ */ (0, I.jsxs)(QH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Fhe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Ihe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -76397,28 +76433,28 @@ function iNe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: eL(e.content),
+ lang: $I(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(c.isFetching),
+ ...DV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(c.isFetching),
+ ...DV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -76426,13 +76462,13 @@ function iNe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...OV(c.isFetchingNextPage),
+ ...DV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(CV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(SV, {
tone: "neutral",
children: [
"已显示 ",
@@ -76444,15 +76480,15 @@ function iNe({ code: e, count: t, released: n }) {
})
});
}
-function aNe({ item: e, actions: t, readOnly: n }) {
+function oNe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Pt({
- queryKey: cW,
+ queryKey: sW,
enabled: r,
- queryFn: ({ signal: e }) => B(`${sW}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${oW}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)($H, {
+ children: /* @__PURE__ */ (0, I.jsx)(QH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(g4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
@@ -76476,16 +76512,16 @@ function aNe({ item: e, actions: t, readOnly: n }) {
}
// src/react/stage/stage-player.ts
var y4 = null, b4 = null, x4 = null, S4 = null, C4 = null, w4 = !1, T4 = 0, E4 = null, D4 = () => !1, O4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function oNe(e, t) {
- y4 = e, D4 = () => t.isOpen(), E4 = () => t.requestClose(), Nle({
+function sNe(e, t) {
+ y4 = e, D4 = () => t.isOpen(), E4 = () => t.requestClose(), Ple({
...e.player,
stage: () => document.getElementById("stage")
- }), Ple({
+ }), Fle({
inMiniplayer: (e) => b4?.player === e,
kind: (e) => b4?.player === e ? b4.kind : x4?.kind ?? S4?.kind ?? "item",
expand: () => J4(),
toMiniplayer: () => Y4()
- }), k4 || (k4 = !0, addEventListener("pagehide", () => QN()));
+ }), k4 || (k4 = !0, addEventListener("pagehide", () => ZN()));
}
var k4 = !1;
function A4() {
@@ -76495,10 +76531,10 @@ function A4() {
function j4(e) {
S4 = e;
}
-var sNe = () => S4;
+var cNe = () => S4;
function M4(e, t) {
let { kind: n, item: r, media: i = null } = t, a = O4(n, r.id, i?.index ?? null);
- if (b4 && b4.key === a) return lNe(e, b4);
+ if (b4 && b4.key === a) return uNe(e, b4);
b4 && q4();
let o = {
player: null,
@@ -76510,7 +76546,7 @@ function M4(e, t) {
x4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = dP(s, {
+ let c = uP(s, {
kind: n,
item: r,
media: i,
@@ -76523,10 +76559,10 @@ function M4(e, t) {
});
return () => {
let e = !!o.player && b4?.player === o.player;
- x4 === o && (x4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), QN());
+ x4 === o && (x4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), ZN());
};
}
-async function cNe(e, t, n) {
+async function lNe(e, t, n) {
let r = await wn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
@@ -76550,9 +76586,9 @@ async function cNe(e, t, n) {
s || (s = !0, e && S4 === a && P4(!0), o(), S4 === a && j4(null));
};
}
-function lNe(e, t) {
+function uNe(e, t) {
let { player: n } = t;
- G4(t), b4 = null, K4(), n.el().classList.remove("vjs-peach-mini"), lP(e), e.append(n.el()), tN(n);
+ G4(t), b4 = null, K4(), n.el().classList.remove("vjs-peach-mini"), cP(e), e.append(n.el()), eN(n);
let r = {
player: n,
kind: t.kind,
@@ -76561,9 +76597,9 @@ function lNe(e, t) {
key: t.key
};
x4 = r;
- let i = uP(n, e);
- return nN(n), () => {
- x4 === r && (x4 = null), i(), b4?.player !== n && (eN() === n && tN(null), UN(n), QN());
+ let i = lP(n, e);
+ return tN(n), () => {
+ x4 === r && (x4 = null), i(), b4?.player !== n && ($M() === n && eN(null), HN(n), ZN());
};
}
var N4 = () => {
@@ -76576,7 +76612,7 @@ function P4(e) {
let n = x4, r = n?.player, i = S4;
if (!n || !r || r.isDisposed() || !i || !C4) return;
let a = A4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && pNe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && mNe({
player: r,
kind: n.kind,
item: n.item,
@@ -76591,11 +76627,11 @@ function I4(e) {
C4 = e, C4 && U4();
}
var L4 = () => !!b4 && !b4.pending && !b4.player.isDisposed();
-function uNe() {
+function dNe() {
return L4() ? C4?.frame.querySelector("video") ?? null : null;
}
-function dNe() {
- return D4() ? document.getElementById("stage")?.querySelector("video") ?? null : N4()?.el().querySelector("video") ?? uNe();
+function fNe() {
+ return D4() ? document.getElementById("stage")?.querySelector("video") ?? null : N4()?.el().querySelector("video") ?? dNe();
}
function R4(e) {
C4 && (C4.title.textContent = e.title || "", C4.sub.textContent = e.sub || "", C4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -76644,7 +76680,7 @@ function W4(e) {
function G4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function fNe() {
+function pNe() {
let e = C4?.root;
if (!e) return;
let t = e.hidden;
@@ -76665,7 +76701,7 @@ function K4() {
e.style.transform = "";
}
}
-function pNe(e, t) {
+function mNe(e, t) {
if (!C4) return;
let n = {
...e,
@@ -76673,13 +76709,13 @@ function pNe(e, t) {
off: [],
pending: !1
};
- b4 = n, T4++, e.player.el().classList.add("vjs-peach-mini"), C4.frame.prepend(e.player.el()), R4(t), W4(n), fNe(), nN(e.player);
+ b4 = n, T4++, e.player.el().classList.add("vjs-peach-mini"), C4.frame.prepend(e.player.el()), R4(t), W4(n), pNe(), tN(e.player);
}
function q4() {
let e = b4;
e && G4(e), b4 = null, T4++;
let t = e?.player ?? null;
- t && eN() === t && tN(null), UN(t), t && QN(), C4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), QM(), K4();
+ t && $M() === t && eN(null), HN(t), t && ZN(), C4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), ZM(), K4();
}
function J4() {
if (!L4() || !b4) return;
@@ -76689,7 +76725,7 @@ function J4() {
function Y4() {
L4() && !D4() ? J4() : D4() && N4() && E4 && (w4 = !0, E4());
}
-function mNe() {
+function hNe() {
let e = b4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -76702,7 +76738,7 @@ function X4(e) {
function Z4(e) {
return !(!L4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || A4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function hNe(e) {
+async function gNe(e) {
if (!L4() || !b4 || !C4) return;
let t = ++T4, n = await wn(`/api/item?id=${e}`).catch(() => null);
if (t !== T4 || !L4() || !b4 || !C4 || !n || n.error) return;
@@ -76711,7 +76747,7 @@ async function hNe(e) {
return;
}
let r = b4;
- G4(r), eN() === r.player && tN(null), UN(r.player), QN(), C4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ G4(r), $M() === r.player && eN(null), HN(r.player), ZN(), C4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", C4.frame.prepend(i);
let a = {
@@ -76720,14 +76756,14 @@ async function hNe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- R4(a), dP(i, {
+ R4(a), uP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== T4) {
- r && eN() === r && tN(null), UN(r);
+ r && $M() === r && eN(null), HN(r);
return;
}
if (!r) {
@@ -76754,9 +76790,9 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), gNe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, $4 = (e) => (t) => {
+}), _Ne = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, $4 = (e) => (t) => {
t.stopPropagation(), e();
-}, _Ne = (0, F.memo)(function() {
+}, vNe = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => (I4({
root: e.current,
@@ -76768,7 +76804,7 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => I4(null)), []), (0, F.useEffect)(() => bNe(e.current, t.current), []), (0, F.useEffect)(() => vNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => I4(null)), []), (0, F.useEffect)(() => xNe(e.current, t.current), []), (0, F.useEffect)(() => yNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -76818,8 +76854,8 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: $4(mNe),
- dangerouslySetInnerHTML: gNe
+ onClick: $4(hNe),
+ dangerouslySetInnerHTML: _Ne
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
@@ -76858,7 +76894,7 @@ var Q4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function vNe(e) {
+function yNe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -76872,7 +76908,7 @@ function vNe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function yNe(e, t, n) {
+function bNe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -76894,7 +76930,7 @@ function yNe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function bNe(e, t) {
+function xNe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -76920,7 +76956,7 @@ function bNe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), yNe(e, i.dx, i.dy));
+ }, 0), bNe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -76939,25 +76975,25 @@ function l3() {
if (!e3) throw Error("舞台还没有接上宿主(configureStage)");
return e3;
}
-function xNe(e) {
+function SNe(e) {
return r3.add(e), () => {
r3.delete(e);
};
}
-function SNe() {
+function CNe() {
for (let e of [...r3]) e();
}
function u3() {
- (0, Lt.flushSync)(SNe);
+ (0, Lt.flushSync)(CNe);
}
-function CNe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(wNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(_Ne, {})] });
+function wNe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(TNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(vNe, {})] });
}
var d3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: Tje() }
+ dangerouslySetInnerHTML: { __html: Eje() }
});
function f3(e) {
let t = e.currentTarget;
@@ -76966,14 +77002,14 @@ function f3(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function p3() {
- let e = c3(), t = e && Oje(e);
+ let e = c3(), t = e && kje(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
}))) : m3();
}
-function wNe({ view: e }) {
+function TNe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -76981,7 +77017,7 @@ function wNe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(DMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)($Me, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(cMe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(OMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(eNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(lMe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77008,7 +77044,7 @@ function wNe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(DD, {
+ children: /* @__PURE__ */ (0, I.jsx)(ED, {
getContainer: () => Z0(t.current),
children: i
})
@@ -77101,7 +77137,7 @@ function g3(e) {
}
};
}
-function TNe(e, t) {
+function ENe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -77118,7 +77154,7 @@ function _3(e) {
let t = c3();
return !t3 || t3.content.kind !== e || o3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function ENe(e) {
+async function DNe(e) {
!n3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (n3 = {
left: window.scrollX,
top: window.scrollY,
@@ -77126,7 +77162,7 @@ async function ENe(e) {
});
let t = _3(e.kind);
if (t) {
- await ONe(e, t);
+ await kNe(e, t);
return;
}
t3 && v3({ miniplayer: !1 });
@@ -77139,12 +77175,12 @@ async function ENe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? RP(i.props, r.signal) : i.kind === "jav" ? q2(i.props, r.signal) : r2(i.props, r.signal);
+ let a = i.kind === "item" ? LP(i.props, r.signal) : i.kind === "jav" ? q2(i.props, r.signal) : r2(i.props, r.signal);
if (n !== i3 || t3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = DNe(i);
+ let o = ONe(i);
t3 = {
...t3,
phase: o ? "content" : "skeleton"
@@ -77165,31 +77201,31 @@ async function ENe(e) {
t3 = {
...t3,
phase: c ? "content" : "reveal"
- }, u3(), c || TNe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, u3(), c || ENe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function DNe(e) {
+function ONe(e) {
if (e.kind === "jav") return !!H.getQueryData(G2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(e2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(wP(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(CP(t)) : null;
if (t && !r) return !1;
- let i = r ? IP(r, n) : n;
- return i != null && !!H.getQueryData(CP(i));
+ let i = r ? FP(r, n) : n;
+ return i != null && !!H.getQueryData(SP(i));
}
-async function ONe(e, t) {
+async function kNe(e, t) {
let n = ++i3;
a3?.abort();
let r = new AbortController();
a3 = r, s3 = !1;
let i = g3(e);
try {
- i.kind === "item" ? await RP(i.props, r.signal) : i.kind === "jav" ? await q2(i.props, r.signal) : await r2(i.props, r.signal);
+ i.kind === "item" ? await LP(i.props, r.signal) : i.kind === "jav" ? await q2(i.props, r.signal) : await r2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== i3 || !t3 || _3(e.kind) !== t) return;
- e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN), Al(t), QM(), t3 = {
+ e.kind === "jav" ? q4() : F4(e.kind, e.id ?? NaN), Al(t), ZM(), t3 = {
...t3,
request: e,
content: i,
@@ -77198,7 +77234,7 @@ async function ONe(e, t) {
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function kNe() {
+function ANe() {
$0(null);
let e = c3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -77213,7 +77249,7 @@ function kNe() {
function v3({ miniplayer: e = !0 } = {}) {
if (i3++, a3?.abort(), a3 = null, P4(e), !t3) return;
let t = c3();
- t && Al(t), QM(), $0(null), t?.open && t.close(), t3 = null, o3 = !1, s3 = !1, u3(), j4(null), document.body.removeAttribute("data-detail-open");
+ t && Al(t), ZM(), $0(null), t?.open && t.close(), t3 = null, o3 = !1, s3 = !1, u3(), j4(null), document.body.removeAttribute("data-detail-open");
let n = n3;
n3 = null;
let r = () => {
@@ -77225,7 +77261,7 @@ function v3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function ANe(e) {
+function jNe(e) {
t3 && (t3 = {
...t3,
content: t3.content.kind === "item" ? {
@@ -77243,62 +77279,62 @@ function ANe(e) {
}
}, u3());
}
-function jNe() {
- let e = sNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, l3().player.settings().javImage) : "";
+function MNe() {
+ let e = cNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, l3().player.settings().javImage) : "";
if (!n) return;
let r = N4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var MNe = {
- open: ENe,
- update: ANe,
- exit: kNe,
+var NNe = {
+ open: DNe,
+ update: jNe,
+ exit: ANe,
dispose: v3,
requestClose: m3,
requestEscape: p3,
- repaintPoster: jNe,
+ repaintPoster: MNe,
isOpen: () => !!t3,
showing: () => t3 && _3(t3.content.kind) ? t3.content.kind : null,
- activeVideo: () => dNe(),
- mountWallPlayer: cNe,
+ activeVideo: () => fNe(),
+ mountWallPlayer: lNe,
toggleTheater: () => {
- t3 && AN(!l3().player.settings().theaterMode);
+ t3 && kN(!l3().player.settings().theaterMode);
},
toggleMiniplayer: () => Y4(),
closeMiniplayer: () => q4(),
miniplayerActive: () => L4(),
miniplayerTakesCard: (e) => Z4(e),
miniplayerPlay: (e) => {
- hNe(e);
+ gNe(e);
}
};
-function NNe(e) {
- return e3 = e, oNe(e, {
+function PNe(e) {
+ return e3 = e, sNe(e, {
isOpen: () => !!t3,
requestClose: m3
- }), MNe;
+ }), NNe;
}
-function PNe() {
- let e = (0, F.useSyncExternalStore)(xNe, () => t3);
- return e3 ? /* @__PURE__ */ (0, I.jsx)(CNe, { view: e }) : null;
+function FNe() {
+ let e = (0, F.useSyncExternalStore)(SNe, () => t3);
+ return e3 ? /* @__PURE__ */ (0, I.jsx)(wNe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var FNe = "/api/stats", y3 = ["stats"], b3 = (e) => B(FNe, e);
-async function INe(e) {
+var INe = "/api/stats", y3 = ["stats"], b3 = (e) => B(INe, e);
+async function LNe(e) {
await H.fetchQuery({
queryKey: y3,
queryFn: () => b3(e)
});
}
-var x3 = (e) => e != null && Number.isFinite(e), LNe = (e) => x3(e) ? e.toLocaleString() : "未取得", RNe = (e, t) => x3(e) && x3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, zNe = (e, t) => {
- let n = RNe(e, t);
+var x3 = (e) => e != null && Number.isFinite(e), RNe = (e) => x3(e) ? e.toLocaleString() : "未取得", zNe = (e, t) => x3(e) && x3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, BNe = (e, t) => {
+ let n = zNe(e, t);
return !n && x3(e) && e > 0 && x3(t) && t > 0 ? "<1%" : `${n}%`;
}, S3 = (e) => {
if (!x3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, C3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, w3 = (e) => (e.max_reached || 0) * 100, BNe = (e) => e.kind === "online" ? "在线直接观看" : C3(e) < w3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", VNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function HNe(e, t = 6) {
+}, C3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, w3 = (e) => (e.max_reached || 0) * 100, VNe = (e) => e.kind === "online" ? "在线直接观看" : C3(e) < w3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", HNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function UNe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -77308,7 +77344,7 @@ function HNe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var UNe = (e) => Math.max(1, ...e) * 1.1, WNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, GNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), KNe = {
+var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, KNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), qNe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -77316,10 +77352,10 @@ var UNe = (e) => Math.max(1, ...e) * 1.1, WNe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, qNe = (e) => e.map((e) => ({
- name: KNe[e.k] ?? e.k,
+}, JNe = (e) => e.map((e) => ({
+ name: qNe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), JNe = {
+})).sort((e, t) => t.value - e.value), YNe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -77327,7 +77363,7 @@ var UNe = (e) => Math.max(1, ...e) * 1.1, WNe = (e, t) => e > 0 ? Math.max(e, t
}, T3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), YNe = (e) => T3(e, JNe), XNe = [
+})), XNe = (e) => T3(e, YNe), ZNe = [
[
1,
1,
@@ -77363,7 +77399,7 @@ var UNe = (e) => Math.max(1, ...e) * 1.1, WNe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], ZNe = (e) => XNe.map(([t, n, r]) => ({
+], QNe = (e) => ZNe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -77398,7 +77434,7 @@ function O3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function QNe(e, t) {
+function $Ne(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
@@ -77420,13 +77456,13 @@ function M3(e, t) {
function N3(e) {
return e.value;
}
-function $Ne(e) {
+function ePe(e) {
return e.index;
}
-function ePe(e) {
+function tPe(e) {
return e.nodes;
}
-function tPe(e) {
+function nPe(e) {
return e.links;
}
function P3(e, t) {
@@ -77441,8 +77477,8 @@ function F3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function nPe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = $Ne, c = QNe, l, u, d = ePe, f = tPe, p = 6;
+function rPe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ePe, c = $Ne, l, u, d = tPe, f = nPe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -77627,7 +77663,7 @@ function nPe() {
return m;
}
// node_modules/d3-path/src/path.js
-var I3 = Math.PI, L3 = 2 * I3, R3 = 1e-6, rPe = L3 - R3;
+var I3 = Math.PI, L3 = 2 * I3, R3 = 1e-6, iPe = L3 - R3;
function z3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -77668,7 +77704,7 @@ z3.prototype = B3.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) > R3 || Math.abs(this._y1 - l) > R3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % L3 + L3), d > rPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > R3 && (this._ += "A" + n + "," + n + ",0," + +(d >= I3) + "," + 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) > R3 || Math.abs(this._y1 - l) > R3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % L3 + L3), d > iPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > R3 && (this._ += "A" + n + "," + n + ",0," + +(d >= I3) + "," + 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";
@@ -77684,25 +77720,25 @@ function V3(e) {
};
}
// node_modules/d3-shape/src/point.js
-function iPe(e) {
+function aPe(e) {
return e[0];
}
-function aPe(e) {
+function oPe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var oPe = Array.prototype.slice;
+var sPe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function sPe(e) {
+function cPe(e) {
return e.source;
}
-function cPe(e) {
+function lPe(e) {
return e.target;
}
-function lPe(e) {
- var t = sPe, n = cPe, r = iPe, i = aPe, a = null;
+function uPe(e) {
+ var t = cPe, n = lPe, r = aPe, i = oPe, a = null;
function o() {
- var o, s = oPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = sPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = B3(), 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) {
@@ -77717,54 +77753,54 @@ function lPe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function uPe(e, t, n, r, i) {
+function dPe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function dPe() {
- return lPe(uPe);
+function fPe() {
+ return uPe(dPe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function fPe(e) {
+function pPe(e) {
return [e.source.x1, e.y0];
}
-function pPe(e) {
+function mPe(e) {
return [e.target.x0, e.y1];
}
-function mPe() {
- return dPe().source(fPe).target(pPe);
+function hPe() {
+ return fPe().source(pPe).target(mPe);
}
// src/react/taste/taste.ts
-var hPe = "/api/taste", H3 = "/api/taste/refresh", gPe = "/api/taste/import", U3 = "/api/taste/source", W3 = (e) => ["taste", e], _Pe = ["taste", "refresh"], vPe = [
+var gPe = "/api/taste", H3 = "/api/taste/refresh", _Pe = "/api/taste/import", U3 = "/api/taste/source", W3 = (e) => ["taste", e], vPe = ["taste", "refresh"], yPe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], yPe = 2e3, bPe = (e) => e?.stale && !e.error ? yPe : !1, xPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], bPe = 2e3, xPe = (e) => e?.stale && !e.error ? bPe : !1, SPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", SPe = (e, t) => V(U3, {
+}) : "—", CPe = (e, t) => V(U3, {
...e,
window: t
-}), G3 = (e, t, n = !1) => B(`${hPe}?window=${e}${n ? "&retry=1" : ""}`, t), CPe = (e) => B(H3, e);
-async function wPe(e, t) {
+}), G3 = (e, t, n = !1) => B(`${gPe}?window=${e}${n ? "&retry=1" : ""}`, t), wPe = (e) => B(H3, e);
+async function TPe(e, t) {
await H.fetchQuery({
queryKey: W3(e),
queryFn: () => G3(e, t)
});
}
-var TPe = (e) => V(H3, {
+var EPe = (e) => V(H3, {
window: e,
background: !0
-}), EPe = (e, t) => V(U3, {
+}), DPe = (e, t) => V(U3, {
operation: "remove",
source_key: e,
window: t
});
-async function DPe(e) {
- let t = await fetch(gPe, {
+async function OPe(e) {
+ let t = await fetch(_Pe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -77782,8 +77818,8 @@ async function DPe(e) {
}
return n;
}
-var OPe = 1e4, K3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function kPe(e) {
+var kPe = 1e4, K3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function APe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
@@ -77792,31 +77828,31 @@ function kPe(e) {
}) : K3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var APe = S3, jPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), MPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function NPe(e) {
+var jPe = S3, MPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), NPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function PPe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function PPe(e) {
- let t = e.map(MPe), n = Math.max(1, ...t);
+function FPe(e) {
+ let t = e.map(NPe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var q3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function FPe(e) {
+function IPe(e) {
let t = q3(e, 6);
return t.length < 3 ? [] : t;
}
var J3 = {
width: 720,
height: 435
-}, IPe = {
+}, LPe = {
source: 145,
target: 545
-}, Y3 = 30, LPe = 240;
+}, Y3 = 30, RPe = 240;
function X3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -77824,7 +77860,7 @@ function X3(e, t, n) {
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function RPe(e = []) {
+function zPe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = X3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = X3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -77836,7 +77872,7 @@ function RPe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * Y3 + LPe), u = nPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(Y3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * Y3 + RPe), u = rPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(Y3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -77851,7 +77887,7 @@ function RPe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = mPe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = hPe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -77882,14 +77918,14 @@ function RPe(e = []) {
height: l + J3.height - 404
};
}
-var zPe = (e) => er(e, 17), Z3 = {
+var BPe = (e) => er(e, 17), Z3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, BPe = [[
+}, VPe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -77897,7 +77933,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], VPe = [[
+]], HPe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -77905,7 +77941,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], HPe = [[
+]], UPe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -77913,7 +77949,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], UPe = [
+]], WPe = [
[
"studios",
"厂牌",
@@ -77929,7 +77965,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"系列",
"file-stack"
]
-], WPe = [[
+], GPe = [[
"local",
"本地",
"hard-drive"
@@ -77937,7 +77973,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"online",
"在线",
"rss"
-]], GPe = [
+]], KPe = [
[
"performers",
"艺人",
@@ -77953,7 +77989,7 @@ var zPe = (e) => er(e, 17), Z3 = {
"在线",
"rss"
]
-], KPe = [[
+], qPe = [[
"cloud",
"标签云",
"tags"
@@ -77980,12 +78016,12 @@ var e6 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), qPe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), JPe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${Xc("tag-view", "标签视图", KPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function JPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Z3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? HPe : c ? VPe : BPe, a) : "";
+ <span class="ml-auto">${Xc("tag-view", "标签视图", qPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function YPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = Z3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? UPe : c ? HPe : VPe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -77997,24 +78033,24 @@ function JPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? e6(WPe, n, "词表") : e === "performers" || e === "creators" ? e6(GPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? e6(UPe, e, "资料类型") : ""}
- ${e === "tags" ? qPe(r) : ""}
- ${e === "performers" && n !== "online" ? qTe(i) : ""}
+ ${e === "tags" ? e6(GPe, n, "词表") : e === "performers" || e === "creators" ? e6(KPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? e6(WPe, e, "资料类型") : ""}
+ ${e === "tags" ? JPe(r) : ""}
+ ${e === "performers" && n !== "online" ? YTe(i) : ""}
${rc({
kind: e,
layout: a,
mode: r
})}`;
}
-var YPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var XPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function t6(e, t, n) {
- let r = JPe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== YPe(r) && (e.innerHTML = r, uc(e));
+ let r = YPe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== XPe(r) && (e.innerHTML = r, uc(e));
}
// src/react/router/pages/index-entity.tsx
-var XPe = () => uu, ZPe = () => Yl, n6 = () => document.getElementById("index");
+var ZPe = () => uu, QPe = () => Yl, n6 = () => document.getElementById("index");
function r6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(xu, XPe);
+ let r = (0, F.useSyncExternalStore)(xu, ZPe);
Qd();
let i = Rf(W.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78062,10 +78098,10 @@ function r6(e, t, n = {}) {
i
]);
}
-async function QPe(e, t, n, r) {
+async function $Pe(e, t, n, r) {
let i = n6();
if (!i) return;
- let a = `/${t}`, o = $3(t, n), s = Q3(lM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ let a = `/${t}`, o = $3(t, n), s = Q3(cM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
c || (e.surfaceChanged("index", a), t6(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {
...o,
layout: s,
@@ -78077,23 +78113,23 @@ async function QPe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), lm(r, i));
}
-function $Pe(e) {
+function eFe(e) {
let t = n6(), n = t ? sp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function eFe({ epoch: e }) {
+function tFe({ epoch: e }) {
let t = (0, F.useContext)(iG), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];
return r6(e, (e, i) => {
- t && QPe(t, r, n.search, i);
- }, { shown: () => $Pe(`/${r}`) }), null;
+ t && $Pe(t, r, n.search, i);
+ }, { shown: () => eFe(`/${r}`) }), null;
}
-function tFe() {
- let e = rG(), t = (0, F.useSyncExternalStore)(xu, ZPe), n = (0, F.useRef)(t);
+function nFe() {
+ let e = rG(), t = (0, F.useSyncExternalStore)(xu, QPe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(n6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(eFe, { epoch: e }, e);
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(tFe, { epoch: e }, e);
}
-function nFe(e) {
+function rFe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78108,7 +78144,7 @@ function nFe(e) {
} : null;
}
var i6 = /* @__PURE__ */ new WeakMap();
-function rFe(e) {
+function iFe(e) {
let t = i6.get(e);
return t || (t = {
helpers: {
@@ -78125,7 +78161,7 @@ function a6() {
let e = n6(), t = e ? sp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function iFe(e, t, n, r, i, a, o) {
+async function aFe(e, t, n, r, i, a, o) {
let s = n6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -78149,7 +78185,7 @@ async function iFe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: rFe(e),
+ card: iFe(e),
resolvedEntity: o,
restoreNavigation: sm(),
actions: {
@@ -78166,7 +78202,7 @@ async function iFe(e, t, n, r, i, a, o) {
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
}) && a() && a6() && (e.surfaceShown?.("entity", r), lm(a, m.filter));
}
-function aFe({ target: e }) {
+function oFe({ target: e }) {
let t = (0, F.useContext)(iG), n = rG(), r = Qd();
return r6(n, (n, i) => {
let a = t?.entity;
@@ -78199,7 +78235,7 @@ function aFe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Nn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, n6()?.querySelector("[data-entity-filter]")) : iFe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, n6()?.querySelector("[data-entity-filter]")) : aFe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Ep(l + r.search + r.hash, {
@@ -78209,13 +78245,13 @@ function aFe({ target: e }) {
})();
}, { shown: () => a6() && !n6()?.hidden }), null;
}
-function oFe() {
- let e = nFe(Qd().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(aFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function sFe() {
+ let e = rFe(Qd().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(oFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), sFe = () => gu;
-async function cFe(e, t) {
+var o6 = () => document.getElementById("stats"), cFe = () => gu;
+async function lFe(e, t) {
let n = o6(), r = e.follow;
if (!n || !r) return;
let i = om("follow"), a = r.refresh(i), o = r.props();
@@ -78231,16 +78267,16 @@ async function cFe(e, t) {
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && lm(t, n.querySelector("[data-filter-frame]"));
}
-function lFe() {
+function uFe() {
let e = o6(), t = e ? sp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function uFe() {
+function dFe() {
let e = (0, F.useContext)(iG);
return r6(rG(), (t, n) => {
- e && cFe(e, n);
+ e && lFe(e, n);
}, {
- shown: lFe,
+ shown: uFe,
onCovered: () => {
W.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
@@ -78250,7 +78286,7 @@ function s6(e) {
let t = e ? sp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function dFe(e, t) {
+async function fFe(e, t) {
let n = o6();
n && (e.surfaceChanged("playlists", "/playlists"), D2(n, T2("/playlists", {
followLayout: "",
@@ -78261,36 +78297,36 @@ async function dFe(e, t) {
isCurrent: t
}), t() && lm(t));
}
-function fFe() {
- let e = (0, F.useContext)(iG), t = (0, F.useSyncExternalStore)(xu, sFe), n = (0, F.useRef)(t);
+function pFe() {
+ let e = (0, F.useContext)(iG), t = (0, F.useSyncExternalStore)(xu, cFe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = o6();
s6(e) && mp(e, { revision: t });
}, [t]), r6(rG(), (t, n) => {
- e && dFe(e, n);
+ e && fFe(e, n);
}, { shown: () => {
let e = o6();
return s6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function pFe() {
+function mFe() {
let e = new URLSearchParams(W.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function mFe() {
+function hFe() {
let e = (0, F.useContext)(iG);
return ZW(() => {
- e?.openImmerse(pFe());
+ e?.openImmerse(mFe());
}, !0), null;
}
-function hFe() {
- return /* @__PURE__ */ (0, I.jsx)(mFe, {}, rG());
+function gFe() {
+ return /* @__PURE__ */ (0, I.jsx)(hFe, {}, rG());
}
// src/react/router/pages/managed.tsx
-var gFe = () => uu > 0, c6 = () => (0, F.useSyncExternalStore)(xu, gFe), l6 = () => lM().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
+var _Fe = () => uu > 0, c6 = () => (0, F.useSyncExternalStore)(xu, _Fe), l6 = () => cM().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
function d6(e) {
return wn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Tn(e)) return null;
@@ -78304,11 +78340,11 @@ function f6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function _Fe(e, t) {
+async function vFe(e, t) {
if (e === "/jav") {
let e = await d6(t);
return t.live ? {
- tab: CU(u6().get("tab")),
+ tab: SU(u6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -78333,7 +78369,7 @@ async function _Fe(e, t) {
if (e === "/subscriptions") {
let e = YZ("?" + u6().toString()), n = await d6(t);
if (!t.live) return null;
- let r = lM().value;
+ let r = cM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
@@ -78343,10 +78379,10 @@ async function _Fe(e, t) {
}
return {};
}
-async function vFe(e, t, n) {
+async function yFe(e, t, n) {
let r = W.navigation.seq, i = () => n.live && W.navigation.seq === r;
- if (e === "/jav" && CU(u6().get("tab")) === "library") {
- W.replace(lve(window.location.search));
+ if (e === "/jav" && SU(u6().get("tab")) === "library") {
+ W.replace(uve(window.location.search));
return;
}
if (e === "/subscriptions" && u6().get("tab") === "wants") {
@@ -78378,7 +78414,7 @@ async function vFe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await _Fe(e, n);
+ let o = await vFe(e, n);
if (!o) return;
let s = await fp(e, o, {
container: a,
@@ -78400,12 +78436,12 @@ function p6({ path: e }) {
let n = Rf(W.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(yFe, {
+ return /* @__PURE__ */ (0, I.jsx)(bFe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function yFe({ path: e, covered: t }) {
+function bFe({ path: e, covered: t }) {
let n = (0, F.useContext)(iG), r = c6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && mp(document.getElementById("stats"), { section: Of(e) });
@@ -78417,14 +78453,14 @@ function yFe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && vFe(e, n, a);
+ a.live && yFe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function bFe() {
+function xFe() {
let e = c6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Rf(W.navigation.location.pathname)) return;
@@ -78438,11 +78474,11 @@ function bFe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var m6 = [], h6 = "peach.chunkReloadAt", xFe = 3e4;
-async function SFe() {
+var m6 = [], h6 = "peach.chunkReloadAt", SFe = 3e4;
+async function CFe() {
try {
let e = Number(sessionStorage.getItem(h6) || 0);
- if (Date.now() - e < xFe || !(await fetch("/healthz", {
+ if (Date.now() - e < SFe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -78455,7 +78491,7 @@ function g6(e) {
});
return m6.push(r), {
preload: () => r().catch(async (e) => {
- throw await SFe(), e;
+ throw await CFe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -78463,7 +78499,7 @@ function g6(e) {
}
};
}
-function CFe() {
+function wFe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...m6], n = () => {
@@ -78480,14 +78516,14 @@ async function _6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var v6 = g6(() => import("./peach-app.jav-page-DnRBlckl.js")), y6 = g6(() => import("./peach-app.stats-page-DhNggTPt.js")), b6 = g6(() => import("./peach-app.taste-page-O5P41pRb.js")), x6 = g6(() => import("./peach-app.review-page-kd1HFP2A.js")), S6 = g6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), C6 = g6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), w6 = g6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), T6 = g6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), E6 = g6(async () => {
+var v6 = g6(() => import("./peach-app.jav-page-ODKY3pI8.js")), y6 = g6(() => import("./peach-app.stats-page-DhNggTPt.js")), b6 = g6(() => import("./peach-app.taste-page-O5P41pRb.js")), x6 = g6(() => import("./peach-app.review-page-kd1HFP2A.js")), S6 = g6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), C6 = g6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), w6 = g6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), T6 = g6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), E6 = g6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BkqUJk6k.js"), import("./peach-app.diagnostics-page-yTNOV5os.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
}), D6 = g6(() => import("./peach-app.activity-page-CDOzqSMm.js")), O6 = g6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), k6 = g6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function wFe(e, t, n) {
+function TFe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -78497,7 +78533,7 @@ function wFe(e, t, n) {
}
var A6 = (e) => ({
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: e }),
- prefetch: (t, n) => _6(E6, Promise.all([Vke(n), ...e === "/settings/diagnostics" ? [pOe(n)] : []]).then(() => {})),
+ prefetch: (t, n) => _6(E6, Promise.all([Hke(n), ...e === "/settings/diagnostics" ? [mOe(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -78513,7 +78549,7 @@ var A6 = (e) => ({
}), j6 = {
...qf.reduce((e, t) => (e[t.path] = {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: t.path }),
- prefetch: (e, n) => _6(S6, LTe(t.key, n)),
+ prefetch: (e, n) => _6(S6, zTe(t.key, n)),
page: (e, n) => {
let { DataCleanupToolPage: r } = S6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -78537,7 +78573,7 @@ var A6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/stats" }),
- prefetch: (e, t) => _6(y6, INe(t)),
+ prefetch: (e, t) => _6(y6, LNe(t)),
page: (e, t) => {
let { StatsPage: n } = y6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -78548,7 +78584,7 @@ var A6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/taste" }),
- prefetch: (e, t) => _6(b6, wPe("all", t)),
+ prefetch: (e, t) => _6(b6, TPe("all", t)),
page: (e, t, n) => {
let { TastePage: r } = b6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -78561,7 +78597,7 @@ var A6 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/review" }),
- prefetch: (e, t) => _6(x6, Owe(t)),
+ prefetch: (e, t) => _6(x6, kwe(t)),
page: (e, t) => {
let { ReviewPage: n } = x6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -78576,20 +78612,20 @@ var A6 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/data-cleanup" }),
- prefetch: (e, t) => _6(S6, ITe(t)),
+ prefetch: (e, t) => _6(S6, RTe(t)),
page: (e, t, n) => {
let { DataCleanupPage: r } = S6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => wFe(e, t, n),
+ open: (e) => TFe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/duplicates" }),
- prefetch: (e, t) => _6(C6, WCe(t)),
+ prefetch: (e, t) => _6(C6, GCe(t)),
page: (e, t) => {
let { DuplicatesPage: n } = C6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -78601,13 +78637,13 @@ var A6 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/quality-goals" }),
- prefetch: (e, t) => _6(w6, nwe(t)),
+ prefetch: (e, t) => _6(w6, rwe(t)),
page: (e, t) => {
let { QualityGoalsPage: n } = w6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: rL,
- javDisplayName: nL,
+ javTitleHtml: nL,
+ javDisplayName: tL,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -78615,7 +78651,7 @@ var A6 = (e) => ({
},
"/sources": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/sources" }),
- prefetch: (e, t) => _6(T6, jke(t)),
+ prefetch: (e, t) => _6(T6, Mke(t)),
page: (e, t) => {
let { ScrapingPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
@@ -78629,7 +78665,7 @@ var A6 = (e) => ({
"/settings/diagnostics": A6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, I.jsx)(p6, { path: "/tasks" }),
- prefetch: (e, t) => _6(D6, Vfe(t)),
+ prefetch: (e, t) => _6(D6, Hfe(t)),
page: () => {
let { ActivityPage: e } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
@@ -78649,10 +78685,10 @@ var A6 = (e) => ({
});
}
}
-}, M6 = (e) => Object.hasOwn(j6, e), TFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(bFe, {}) } }, EFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(hFe, {}) } }, N6 = {
+}, M6 = (e) => Object.hasOwn(j6, e), EFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(xFe, {}) } }, DFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(gFe, {}) } }, N6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(fFe, {}),
- prefetch: (e, t) => _6(k6, hke(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(pFe, {}),
+ prefetch: (e, t) => _6(k6, gke(t)),
page: (e, t) => {
let { PlaylistsPage: n } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -78665,14 +78701,14 @@ var A6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(uFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(dFe, {}),
prefetch: (e, t) => aa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(GEe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(KEe, { ...e })
}
}, P6 = (e) => Object.hasOwn(N6, e), F6 = {
- element: /* @__PURE__ */ (0, I.jsx)(tFe, {}),
- prefetch: (e, t) => iEe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(DOe, {
+ element: /* @__PURE__ */ (0, I.jsx)(nFe, {}),
+ prefetch: (e, t) => oEe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(OOe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -78693,9 +78729,9 @@ var A6 = (e) => ({
"/tags": F6,
"/series": F6
}, L6 = {
- element: /* @__PURE__ */ (0, I.jsx)(oFe, {}),
- prefetch: (e) => KTe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(cOe, { ...e })
+ element: /* @__PURE__ */ (0, I.jsx)(sFe, {}),
+ prefetch: (e) => JTe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(lOe, { ...e })
}, R6 = {
"/performers/*": L6,
"/studios/*": L6,
@@ -78712,53 +78748,53 @@ var A6 = (e) => ({
"/junk-files": {
element: /* @__PURE__ */ (0, I.jsx)(KW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(BOe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(VOe, { ...e })
}
-}, B6 = (e) => Object.hasOwn(z6, e), DFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)($_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(B$, { ...e }), V6 = {
+}, B6 = (e) => Object.hasOwn(z6, e), OFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(eve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(B$, { ...e }), V6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Vye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Hye, { ...e })
},
"feed-new": {
- prefetch: (e) => HTe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(mOe, { ...e })
+ prefetch: (e) => WTe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(hOe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => bH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(DFe, { ...e })
+ prefetch: (e, t) => yH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(OFe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Lke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Rke, { ...e })
}
}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Yce, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xce, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(jle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Mle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(bfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(xfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Tde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Ede, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(oAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(sAe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(SAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(CAe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(PNe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(FNe, {})
}
}, W6 = (e) => Object.hasOwn(U6, e), G6 = [
"/",
@@ -78780,21 +78816,21 @@ var K6 = (e) => M6(e) || P6(e) || Object.hasOwn(I6, e) || Object.hasOwn(R6, e) |
function q6(e) {
return M6(e) ? j6[e] : P6(e) ? N6[e] : B6(e) ? z6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : Object.hasOwn(I6, e) ? I6[e] : R6[e];
}
-function OFe(e, t, n) {
+function kFe(e, t, n) {
return K6(e) ? q6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function kFe(e, t, n, r) {
+function AFe(e, t, n, r) {
return q6(e).page(t, n, r);
}
// src/react/application-residents.ts
var J6 = null, Y6 = null, X6 = 0, Z6 = /* @__PURE__ */ new Set();
-function AFe(e) {
+function jFe(e) {
return J6 = e, Y6 && e(Y6), () => {
J6 === e && (J6 = null);
};
}
-function jFe(e) {
- return J6 && (Y6 = e, J6(e), op(Promise.resolve(OFe)), CFe()), Promise.resolve();
+function MFe(e) {
+ return J6 && (Y6 = e, J6(e), op(Promise.resolve(kFe)), wFe()), Promise.resolve();
}
async function Q6(e, t, n = (e) => e) {
let r = X6;
@@ -78805,7 +78841,7 @@ async function Q6(e, t, n = (e) => e) {
place: () => n(t)
}) || r !== X6 || !J6) throw new DOMException("应用已卸载", "AbortError");
}
-function MFe() {
+function NFe() {
X6 += 1, J6 = null, Y6 = null, $6 = null, e8 = null, r8 = null, i8 = null, o8 = null, s8 = null, l8 = null, u8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null;
for (let e of Z6) e.remove();
Z6.clear(), a$();
@@ -78813,49 +78849,49 @@ function MFe() {
var $6 = null, e8 = null;
function t8(e) {
return $6 ??= (async () => {
- let t = NNe(e), n = document.createElement("div");
+ let t = PNe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await Q6("stage", n, (e) => (document.body.append(e), e)), e8 = t, t;
})(), $6;
}
var n8 = () => e8, r8 = null, i8 = null;
-function NFe(e) {
+function PFe(e) {
return r8 ??= (async () => {
- let t = wde(e), n = document.createElement("div");
+ let t = Tde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await Q6("immerse", n, (e) => (document.body.append(e), e)), i8 = t, t;
})(), r8;
}
var a8 = () => i8, o8 = null, s8 = null;
-function PFe(e) {
+function FFe(e) {
return o8 ??= (async () => {
- let t = aAe(e), n = document.createElement("div");
+ let t = oAe(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await Q6("settings-panel", n, (e) => (document.body.append(e), e)), s8 = t, t;
})(), o8;
}
var c8 = () => s8, l8 = null, u8 = null;
-function FFe(e) {
+function IFe(e) {
return l8 ??= (async () => {
- let t = xAe(e);
+ let t = SAe(e);
return await Q6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), u8 = t, t;
})(), l8;
}
var d8 = () => u8, f8 = null, p8 = null;
-function IFe(e) {
+function LFe(e) {
return f8 ??= (async () => {
- let t = yfe(e);
+ let t = bfe(e);
return await Q6("manage-header", e.root, (e) => (e.replaceChildren(), e)), p8 = t, t;
})(), f8;
}
var m8 = () => p8, h8 = null, g8 = null;
-function LFe(e) {
+function RFe(e) {
return h8 ??= (async () => {
- let t = Jce(e);
+ let t = Yce(e);
return await Q6("batch-dock", e.root), g8 = t, t;
})(), h8;
}
var _8 = () => g8, v8 = null;
-function RFe(e) {
+function zFe(e) {
return v8 ??= (async () => {
- Ale(e), await Q6("glow-picker", e.root);
+ jle(e), await Q6("glow-picker", e.root);
})(), v8;
}
function y8(e, t, n, r) {
@@ -78871,7 +78907,7 @@ var b8 = {
rollSeed: void 0,
seededSample: void 0
};
-function zFe() {
+function BFe() {
o$(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
@@ -78915,7 +78951,7 @@ function zFe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var BFe = [
+var VFe = [
"loc",
"creator",
"studio",
@@ -78937,9 +78973,9 @@ var BFe = [
"folder_recursive"
];
function x8(e, t, n, r = n.defaultSort) {
- return Wj(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return Uj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function VFe(e, t, n) {
+function HFe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -78965,18 +79001,18 @@ function VFe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function HFe(e, t) {
+function UFe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function UFe(e) {
+function WFe(e) {
let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of BFe) {
+ for (let t of VFe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Vj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Bj(e.sort ?? "") || n.set(t, r);
}
return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function WFe(e, t, n) {
+function GFe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -78992,7 +79028,7 @@ function WFe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Uj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Hj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79013,7 +79049,7 @@ function S8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var GFe = class {
+var KFe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79058,16 +79094,16 @@ var GFe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, C8 = Infinity, w8 = 0, KFe = (e, t = w8) => [
+}, C8 = Infinity, w8 = 0, qFe = (e, t = w8) => [
"facets",
e,
t
-], qFe = (e, t, n = w8) => [
+], JFe = (e, t, n = w8) => [
"tops",
e,
t,
n
-], JFe = (e, t = w8) => [
+], YFe = (e, t = w8) => [
"tops",
e,
t
@@ -79076,20 +79112,20 @@ async function T8(e) {
let t = String(e), n = await wn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await wn(`/api/tops?${r}`));
}
-function YFe(e, t) {
+function XFe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: KFe(e),
+ queryKey: qFe(e),
queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: C8
}), H.fetchQuery({
- queryKey: qFe(t, e),
+ queryKey: JFe(t, e),
queryFn: () => T8(t),
staleTime: C8
})]);
}
-function XFe(e) {
+function ZFe(e) {
return H.fetchQuery({
- queryKey: JFe(e),
+ queryKey: YFe(e),
queryFn: () => T8(e),
staleTime: C8
});
@@ -79210,11 +79246,11 @@ var D8 = [
"follow",
"activity",
"configuration"
-], ZFe = (e) => O8.filter(([t]) => k8.includes(t) && (t !== "configuration" || e)), A8 = O8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], QFe = (e) => O8.filter(([t]) => k8.includes(t) && (t !== "configuration" || e)), A8 = O8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), QFe = [...D8, ...A8], $Fe = {
+]]), $Fe = [...D8, ...A8], eIe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -79250,7 +79286,7 @@ function P8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function eIe(e) {
+function tIe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));
};
@@ -79351,11 +79387,11 @@ var F8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, I8 = new F8();
-function tIe() {
+function nIe() {
return I8.dispose(), I8 = new F8(), I8;
}
// src/application/source-action.ts
-function nIe(e) {
+function rIe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -79370,18 +79406,18 @@ function nIe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var L8 = () => Object.fromEntries(JX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+var L8 = () => Object.fromEntries(qX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
function R8(e, t) {
let n = new URLSearchParams(e), r = L8();
- for (let e of JX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+ for (let e of qX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Wj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Uj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function z8(e) {
let t = new URLSearchParams();
- for (let n of JX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Vj(e.sort || "") || t.set(n, e[n]);
+ for (let n of qX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Bj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function B8(e) {
@@ -79395,11 +79431,11 @@ function V8(e, t) {
let n = new URLSearchParams(z8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function rIe(e, t, n, r) {
+function iIe(e, t, n, r) {
let i = V8(n, r);
return Nn(e, t) + (i ? `?${i}` : "");
}
-function iIe() {
+function aIe() {
let e = "";
return {
fresh(t, n) {
@@ -79420,10 +79456,10 @@ function iIe() {
};
}
// src/react/entity-page/photo-surface.ts
-function aIe(e, t) {
+function oIe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function oIe(e) {
+function sIe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -79445,12 +79481,12 @@ function oIe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function sIe(e, t, n) {
+function cIe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(rIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(iIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -79477,7 +79513,7 @@ function sIe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Hj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Vj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -79528,7 +79564,7 @@ function sIe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function cIe(e) {
+function lIe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -79538,7 +79574,7 @@ function cIe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function lIe(e, t) {
+function uIe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? ho({
kind: e,
id: t.id,
@@ -79560,11 +79596,11 @@ function lIe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function uIe(e) {
- let t = iIe(), n = {
+function dIe(e) {
+ let t = aIe(), n = {
...e.helpers,
- portraitImg: lIe
- }, r = sIe(e.controller, n, e.actions);
+ portraitImg: uIe
+ }, r = cIe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -79573,12 +79609,12 @@ function uIe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: cIe(e.loading),
- photos: oIe(e.photos)
+ loading: lIe(e.loading),
+ photos: sIe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function dIe(e) {
+function fIe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : go(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Nn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -79605,23 +79641,23 @@ var H8 = {
function U8(e) {
return e.has_cover ? xo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Vs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : xo(e, "big").replace(/ src="[^"]*"/, ` src="${z(uo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function fIe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? rL({
+function pIe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? nL({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${vM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${_M}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${dIe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${fIe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function pIe() {
+function mIe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -79640,7 +79676,7 @@ function K8(e) {
localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
-function mIe() {
+function hIe() {
try {
let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
@@ -79651,7 +79687,7 @@ function mIe() {
function q8(e) {
!e || cp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
-function hIe(e, t) {
+function gIe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -79660,8 +79696,8 @@ function hIe(e, t) {
});
}
function J8(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${vM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return hIe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(fIe).join("")}${r}</div>`;
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${_M}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return gIe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(pIe).join("")}${r}</div>`;
}
function Y8(e) {
e && (t9(e), Z.appSettings.feedAutoScroll && Lc(e));
@@ -79669,7 +79705,7 @@ function Y8(e) {
function X8(e) {
return An(e) && e !== "/junk-files";
}
-function gIe() {
+function _Ie() {
let e = L("#feedNew");
cp(e) ? e.hidden = X.homeHasFeed !== !0 : (q8(e), fp("feed-new", {
host: e,
@@ -79688,26 +79724,26 @@ function Z8() {
function Q8() {
H8.feedRevision += 1, mp(L("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
}
-function _Ie() {
+function vIe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lc(e) : Rc(e));
}
var $8 = 0;
-function vIe([e]) {
+function yIe([e]) {
let t = e.contentRect.width >= H8.HERO_WIDE_PX;
cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
$8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function yIe() {
- H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${vM}"></div>
+function bIe() {
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${_M}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
<div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${Hn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
feedRowHtml: J8,
wireFeedRow: (e) => Y8(e)
- }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, I8.resize(vIe).observe(L("#index"));
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, I8.resize(yIe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function bIe(e, t, n, r = "") {
+function xIe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -79721,7 +79757,7 @@ function bIe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/filter-controls-skeleton.ts
-var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${bU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${xU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : ws(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${yU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${bU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
function r5(e, t) {
let n = pG(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
@@ -79782,14 +79818,14 @@ function o5() {
return Gl;
}
function s5(e, t, n = t7()) {
- return pLe(n).map(([n, r]) => {
- let i = e === n, a = Hj(n, e, t);
+ return mLe(n).map(([n, r]) => {
+ let i = e === n, a = Vj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Bj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Bj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && zj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? zj(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -79797,7 +79833,7 @@ function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function l5() {
- return aIe({
+ return oIe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -79810,12 +79846,12 @@ function u5() {
Y.photos.sync();
}
function d5() {
- l5() ? Cle(wM()) : LM();
+ l5() ? wle(CM()) : IM();
}
-function xIe(e) {
+function SIe(e) {
Y.photos.setSize(e);
}
-var f5 = nIe({
+var f5 = rIe({
request: (e) => wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -79827,7 +79863,7 @@ async function p5(e) {
let t = { textContent: "" };
return await f5(e, t), t.textContent;
}
-async function SIe(e) {
+async function CIe(e) {
let t = { textContent: "" }, n = [];
return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -79866,17 +79902,17 @@ async function m5(e, t, n) {
t.textContent = Y.sourceHint(e.message), b8.actionFailure("核对目录", e);
}
}
-function CIe(e) {
+function wIe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function wIe(e, t) {
+function TIe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && I8.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && I8.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function TIe(e, t) {
+async function EIe(e, t) {
let n = il({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -79918,12 +79954,12 @@ function h5(e, t) {
let n = ["performer", "studio"].includes(e) && H8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : r5(s5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: bM(),
- options: hM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = bIe(e, r, e === "agency" ? rc({
+ value: yM(),
+ options: mM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = xIe(e, r, e === "agency" ? rc({
kind: "performers",
layout: j5.peopleIndexLayout()
- }) : eY("正在读取作品", OM(DM({
+ }) : eY("正在读取作品", DM(EM({
active: n,
home: !1,
portrait: !1
@@ -79945,7 +79981,7 @@ function _5(e) {
function v5(e, t) {
y9(Y.application.fresh(e, t));
}
-function EIe() {
+function DIe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -79968,7 +80004,7 @@ function EIe() {
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function DIe() {
+function OIe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
let n = i5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -79986,9 +80022,9 @@ function DIe() {
feedRowHtml: J8,
receipt: (e, t) => b8.actionReceipt(e, t),
failure: (e, t) => b8.actionFailure(e, t),
- aliasForm: (e, t) => TIe(e, t),
- sourceToolsHtml: (e) => CIe(e),
- wireSourceTools: (e, t) => wIe(e, t),
+ aliasForm: (e, t) => EIe(e, t),
+ sourceToolsHtml: (e) => wIe(e),
+ wireSourceTools: (e, t) => TIe(e, t),
comboItems: (e) => I7(e),
sortKeys: (e, t, n) => s5(e, t, n)
}, Y.entityFollowActions = {
@@ -80013,8 +80049,8 @@ function DIe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function OIe() {
- Y.application = uIe({
+function kIe() {
+ Y.application = dIe({
controller: {
context: () => {
let e = o5();
@@ -80037,12 +80073,12 @@ function OIe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: H8.feedRevision,
- photoSize: wM(),
- photoLayout: TM(),
- photoLayouts: _M,
+ photoSize: CM(),
+ photoLayout: wM(),
+ photoLayouts: gM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: bM(),
- javLayouts: hM,
+ javLayout: yM(),
+ javLayouts: mM,
states: X.VIEW_PILLS,
peopleLayout: j5.peopleIndexLayout(),
layout: K7(),
@@ -80064,8 +80100,8 @@ function OIe() {
U.seed = e, bu();
},
setJavLayout: i7,
- javLayout: bM,
- setPhotoLayout: AM,
+ javLayout: yM,
+ setPhotoLayout: kM,
syncPhotoWalls: u5,
openEntity: v5,
photoViewActive: l5,
@@ -80090,15 +80126,15 @@ function OIe() {
},
photos: {
preferences: () => ({
- size: wM(),
- layout: TM(),
+ size: CM(),
+ layout: wM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: a5,
pushFollow: w9,
syncDensity: d5,
- storeSize: xle
+ storeSize: Sle
},
helpers: Y.entityPageHelpers,
actions: {
@@ -80114,7 +80150,7 @@ function OIe() {
}
// src/application/playlists.js
var y5 = { playlistWrite: void 0 };
-function kIe(e, t) {
+function AIe(e, t) {
e === "tag" ? (yu({ state: {
...U,
tag: t,
@@ -80130,7 +80166,7 @@ function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function AIe({ title: e, count: t, save: n }) {
+async function jIe({ title: e, count: t, save: n }) {
let r = il({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -80151,7 +80187,7 @@ async function AIe({ title: e, count: t, save: n }) {
}), y9("/playlists");
} }));
}
-async function jIe(e) {
+async function MIe(e) {
let t = ((await wn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ws(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = il({
title: "加入播放列表",
@@ -80200,7 +80236,7 @@ function x5() {
let e = sp(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (V5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));
}
-function MIe(e) {
+function NIe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
@@ -80208,7 +80244,7 @@ function MIe(e) {
function S5(e) {
yu({ configurationRequestedSection: e }), Q.navigatePath(Mf(e));
}
-function NIe() {
+function PIe() {
y5.playlistWrite = (e) => wn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -80233,12 +80269,12 @@ function T5(e, t, n, r, i, a = !1) {
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function PIe(e, t, n, r) {
+function FIe(e, t, n, r) {
let i = C5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: XU(n).view === "dismissed"
+ junkDismissed: YU(n).view === "dismissed"
};
}
// src/application/selection.js
@@ -80260,7 +80296,7 @@ function D5() {
}), w9({
selected: new Set(Jl),
selectMode: Yl
- }), E5.batchDockProps = WIe(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
+ }), E5.batchDockProps = GIe(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
}
function O5(e, t = !1) {
yu(w5({
@@ -80268,25 +80304,25 @@ function O5(e, t = !1) {
followSelected: Jl
}, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), D5();
}
-function FIe() {
+function IIe() {
return [...F5.gridCards()].map((e) => +e.dataset.id);
}
function k5(e, t = !1) {
yu(T5({
selected: ql,
followSelected: Jl
- }, A5(), C5(location.pathname), FIe(), e, t)), O5(!0);
+ }, A5(), C5(location.pathname), IIe(), e, t)), O5(!0);
}
-function IIe() {
+function LIe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function LIe(e, t = !1) {
+function RIe(e, t = !1) {
yu(T5({
selected: ql,
followSelected: Jl
- }, A5(), "follow", IIe(), e, t)), O5(!0);
+ }, A5(), "follow", LIe(), e, t)), O5(!0);
}
-async function RIe(e, t) {
+async function zIe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -80355,7 +80391,7 @@ async function RIe(e, t) {
}
});
}
-async function zIe() {
+async function BIe() {
let e = [...ql];
if (!e.length) return;
let t = il({
@@ -80387,7 +80423,7 @@ async function zIe() {
let { confirmed: n, result: r } = await t.done;
n && (O5(!1, !0), await o7(), b8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function BIe(e, t) {
+async function VIe(e, t) {
let n = [...Jl];
if (!n.length) return;
let r = {
@@ -80422,7 +80458,7 @@ async function BIe(e, t) {
}
});
}
-async function VIe(e, t) {
+async function HIe(e, t) {
let n = [...ql];
if (!n.length) return;
let r = {
@@ -80468,8 +80504,8 @@ async function VIe(e, t) {
}
});
}
-function HIe() {
- LFe({
+function UIe() {
+ RFe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
E5.BATCH_RUNNERS[e]?.(t, n);
@@ -80478,7 +80514,7 @@ function HIe() {
e.render(E5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function UIe() {
+function WIe() {
E5.batchDockProps = {
count: 0,
context: "catalog",
@@ -80491,14 +80527,14 @@ function UIe() {
["other", "其他"],
["none", "撤回判定"]
], E5.BATCH_RUNNERS = {
- batch: RIe,
- region: zIe,
- follow: BIe,
- junk: VIe,
+ batch: zIe,
+ region: BIe,
+ follow: VIe,
+ junk: HIe,
clear: () => O5(!1, !0)
}, I8.handler(L("#density"), "onclick", () => {
- l5() ? xIe(wM() === "big" ? "small" : "big") : Sle();
- }), LM(), Ol({
+ l5() ? SIe(CM() === "big" ? "small" : "big") : Cle();
+ }), IM(), Ol({
selecting: () => Yl,
censored: () => $7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -80518,8 +80554,8 @@ function A5() {
followLastSelectedId: Zl
};
}
-function WIe() {
- return PIe({
+function GIe() {
+ return FIe({
selected: ql,
followSelected: Jl
}, location.pathname, location.search, U.state);
@@ -80529,22 +80565,22 @@ var j5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function GIe() {
+function KIe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function KIe() {
+function qIe() {
return YZ(location.search);
}
-function qIe(e) {
+function JIe(e) {
return XZ(e);
}
-function JIe(e) {
- Q.route(qIe(e));
+function YIe(e) {
+ Q.route(JIe(e));
}
-function YIe(e = "") {
+function XIe(e = "") {
return ZZ(location.search, e);
}
-function XIe(e) {
+function ZIe(e) {
return P8(e);
}
function M5(e) {
@@ -80553,7 +80589,7 @@ function M5(e) {
function N5() {
L("#stats").hidden = !0, L("#index").hidden = !1, B7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function ZIe(e, t) {
+function QIe(e, t) {
yu({ state: {
...U,
state: "",
@@ -80564,16 +80600,16 @@ function ZIe(e, t) {
function P5(e) {
j5.controller.openFollowAuthor(e);
}
-function QIe(e) {
+function $Ie(e) {
j5.controller.openFollowTag(e);
}
-function $Ie() {
+function eLe() {
$.FOLLOW_MANAGE_TABS = JZ, I8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
}), j5.peopleIndexLayout = () => Q3(Z.appSettings.peopleLayout), j5.personAvatar = N8;
}
-function eLe() {
- j5.controller = eIe({
+function tLe() {
+ j5.controller = tIe({
route: Q.route,
followView: x9,
adoptFollowView: S9,
@@ -80599,7 +80635,7 @@ function I5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Lve(XU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Rve(YU(location.search)), uc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && T7({
count: null,
...O7()
})), L("#loadSentinel").hidden = !0, U7()) return;
@@ -80619,13 +80655,13 @@ function R5() {
});
return Promise.race([F5.entityShapesReady ||= W8(), e]);
}
-function tLe() {
+function nLe() {
let e = decodeURIComponent(location.pathname);
if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
else if (/^\/assets\/\d+$/.test(e)) L5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) L5();
else if (e === "/junk-files") I5("正在读取垃圾文件");
- else if (e === "/jav" && CU(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
+ else if (e === "/jav" && SU(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
L5();
let t = L("#stats");
@@ -80639,12 +80675,12 @@ function tLe() {
});
} else Q.routeMeta(e) ? I5() : (B7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function nLe() {
+function rLe() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => w2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: wM()
+ gridSize: CM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -80655,12 +80691,12 @@ function nLe() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), F5.setGridCards = (e) => tc(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
}), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => T2(e, {
- followLayout: GIe(),
+ followLayout: KIe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(KIe())
+ }))(qIe())
}), F5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", F5.entityShapesReady = null, F5.ENTITY_SHAPES_WAIT = 400, F5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = Qf(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, p9();
@@ -80674,7 +80710,7 @@ var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function rLe(e, t, n) {
+function iLe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${z5(r)}"/></svg>`;
@@ -80682,7 +80718,7 @@ function rLe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function iLe(e, t, n, r = !1) {
+function aLe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -80731,7 +80767,7 @@ function H5() {
function U5() {
L("#javLibraryHeader").hidden = !An(location.pathname) || !t7(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, X8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), Z5(), $5();
}
-function aLe() {
+function oLe() {
Q.route("/"), U5();
}
function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -80759,7 +80795,7 @@ function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function G5(e) {
- sRe({
+ cRe({
...x9(),
...e
}), m9({ filters: $.followSidebarFilters() });
@@ -80774,7 +80810,7 @@ function q5(e) {
function J5() {
K5() && q5(!1);
}
-function oLe() {
+function sLe() {
cu === null && (yu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {
yu({ runtimeConfigurable: !!e.configurable }), cu && X5() && Z5();
}).catch(() => {}));
@@ -80792,12 +80828,12 @@ function Y5(e = "", t = !1) {
replace: !0,
state: W.navigation.location.state
});
- return e ||= jf(location.pathname), PFe(B5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= jf(location.pathname), FFe(B5.settingsHost()).then((t) => (t.open(e), t));
}
-function sLe() {
+function cLe() {
Af(location.pathname) && (Nf(W.navigation.location.state) ? W.go(-1) : Q.navigatePath("/", !0));
}
-function cLe() {
+function lLe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
@@ -80832,31 +80868,31 @@ function cLe() {
}
};
}
-function lLe() {
+function uLe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = rLe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), I8.listen(e, "click", (e) => {
+ e.innerHTML = iLe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), I8.listen(e, "click", (e) => {
if (d8()) return;
let t = e.target.closest?.("[data-nav]");
t && l7(t.dataset.nav);
- }), FFe(cLe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
+ }), IFe(lLe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
}
-async function uLe() {
+async function dLe() {
let e = I8, t = null;
try {
t = await wn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && uM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && lM(t, (e) => Z.settingsEffects[e]?.());
}
function X5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
function Z5() {
let e = X5();
- oLe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), h9(), e !== "trash" && (E5.trashCount = null), Q5(e);
+ sLe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), h9(), e !== "trash" && (E5.trashCount = null), Q5(e);
}
-function dLe(e) {
+function fLe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -80867,16 +80903,16 @@ function dLe(e) {
}
function Q5(e = X5()) {
$5();
- let t = dLe(e), n = m8();
+ let t = fLe(e), n = m8();
if (n) n.render(t);
else {
- let e = kde(t);
+ let e = Ade(t);
e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
}
- let r = WF(t)?.title || "";
+ let r = UF(t)?.title || "";
r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && Qs(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function fLe() {
+function pLe() {
let e = B5.manageHeaderRoot();
I8.listen(e, "click", (e) => {
if (m8()) return;
@@ -80886,7 +80922,7 @@ function fLe() {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && P7();
- }), IFe({
+ }), LFe({
root: e,
openManage: e7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -80901,35 +80937,35 @@ function $5() {
}
function e7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(ZU()), U5(), h9(), N7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", bu(), Q.route(XU()), U5(), h9(), N7());
}
function t7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || fu : !1;
}
-function pLe(e = t7()) {
- let t = Fj.filter(([e]) => e !== "seed");
- return e ? [Ij, ...t] : t;
+function mLe(e = t7()) {
+ let t = Pj.filter(([e]) => e !== "seed");
+ return e ? [Fj, ...t] : t;
}
function n7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function r7() {
- return xM(n7());
+ return bM(n7());
}
-function mLe(e) {
- yle(e), a7(), L("#grid").hidden || Y7();
+function hLe(e) {
+ ble(e), a7(), L("#grid").hidden || Y7();
}
function i7(e) {
- kM(e), a7(), Y7();
+ OM(e), a7(), Y7();
}
function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === r7();
}), X.catalogFilterProps && T7({ layout: D7() });
}
-function hLe(e) {
- ble(e), a7(), Y7();
+function gLe(e) {
+ xle(e), a7(), Y7();
}
async function o7() {
E8(), X.mixRelatedCache.clear(), await Promise.all([s7(), N7()]);
@@ -80988,11 +81024,11 @@ function u7() {
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Mn, t[0]), r = An(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
L("#selectMode").hidden = !i, L("#density").hidden = !a, u5(), !i && Yl && O5(!1, !0);
}
-function gLe() {
+function _Le() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== B5.mobileFilterHost || location.pathname !== B5.mobileFilterPath) && (B5.mobileFilterScroll = null), B5.mobileFilterHost = t, B5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- B5.mobileFilterScroll = iLe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
+ B5.mobileFilterScroll = aLe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && B5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -81006,44 +81042,44 @@ function gLe() {
});
}
}
-function _Le() {
- gLe(), [".board-filter-frame", "#count"].forEach((e) => {
+function vLe() {
+ _Le(), [".board-filter-frame", "#count"].forEach((e) => {
let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
function d7() {
B5.stickyFrame ||= I8.frame(() => {
- B5.stickyFrame = 0, _Le();
+ B5.stickyFrame = 0, vLe();
});
}
-function vLe() {
+function yLe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), I8.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = D8, B5.MANAGE_SECTIONS = O8, B5.MANAGE_MENU_SECTIONS = k8, B5.manageMenuSections = () => ZFe(cu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = A8, B5.NAV_CATALOG = QFe, B5.DIRECT_MANAGE_NAV = $Fe, B5.settingsHost = () => ({
+ }), I8.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = D8, B5.MANAGE_SECTIONS = O8, B5.MANAGE_MENU_SECTIONS = k8, B5.manageMenuSections = () => QFe(cu === !0), B5.OPTIONAL_SIDEBAR_ITEMS = A8, B5.NAV_CATALOG = $Fe, B5.DIRECT_MANAGE_NAV = eIe, B5.settingsHost = () => ({
selectSection: (e) => Ep(Mf(e), {
replace: !0,
state: W.navigation.location.state
}),
- closed: sLe,
+ closed: cLe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Zo(e),
navCatalog: B5.NAV_CATALOG,
- themeOptions: mle,
- videoLayouts: hM,
+ themeOptions: hle,
+ videoLayouts: mM,
followInitialRanges: j8,
videoLayout: () => r7(),
- setVideoLayout: hLe,
+ setVideoLayout: gLe,
censored: $7,
- setCensored: BLe,
+ setCensored: VLe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: VLe,
+ setHighContrast: HLe,
receipt: (e) => b8.actionReceipt(e),
failure: b8.actionFailure,
- syncRemote: (e) => uM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => lM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => wn("/healthz").then((e) => (yu({ runtimeConfigurable: !!e.configurable }), cu)).catch(() => null)
@@ -81060,7 +81096,7 @@ var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
">": "&gt;",
"\"": "&quot;"
})[e]), m7 = (e) => e.repeat(f7);
-function yLe(e, t, n) {
+function bLe(e, t, n) {
let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = VG();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
@@ -81101,22 +81137,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function bLe() {
+function xLe() {
X.initialParams.has("loc") || (U.loc = h7(U.loc), bu());
}
function h7(e) {
- return HFe(e, Z.sourceOnline);
+ return UFe(e, Z.sourceOnline);
}
function g7(e = U) {
- return UFe(e);
+ return WFe(e);
}
-function xLe() {
- yu(S8(WFe(U, Z.appSettings, b8.rollSeed)));
+function SLe() {
+ yu(S8(GFe(U, Z.appSettings, b8.rollSeed)));
}
function _7(e = null) {
- xLe(), e && (Object.assign(U, e), bu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), h9(), N7();
+ SLe(), e && (Object.assign(U, e), bu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), h9(), N7();
}
-function SLe(e, t = null) {
+function CLe(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(n);
}
@@ -81125,13 +81161,13 @@ function v7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function CLe(e, t) {
+function wLe(e, t) {
n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : y7(e, t);
}
function y7(e, t) {
- e.edition_group ? JLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? YLe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
+ e.edition_group ? YLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? XLe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
}
-async function wLe(e, t) {
+async function TLe(e, t) {
try {
let n = await wn("/api/watch-later", {
method: "POST",
@@ -81148,7 +81184,7 @@ async function wLe(e, t) {
b8.actionFailure("更新稍后看", e);
}
}
-async function TLe(e, t) {
+async function ELe(e, t) {
try {
await wn("/api/batch", {
method: "POST",
@@ -81172,8 +81208,8 @@ async function TLe(e, t) {
throw b8.actionFailure("操作", e), e;
}
}
-async function ELe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = SP(i, t), o = async (t, r) => {
+async function DLe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = xP(i, t), o = async (t, r) => {
let i = (await wn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -81187,7 +81223,7 @@ async function ELe(e, t, n, r) {
};
try {
let e = await o(a, r);
- b8.actionReceipt(e ? `已评 ${xP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ b8.actionReceipt(e ? `已评 ${bP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || b8.actionFailure("评分", e), e;
}
@@ -81216,7 +81252,7 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return YFe(t.toString(), X.topsQueryParams(e).toString());
+ return XFe(t.toString(), X.topsQueryParams(e).toString());
}
function x7(e) {
o5().type !== "entity" && T7({ tags: k7(e) }), m9({ filters: { ...e } }), L7();
@@ -81242,7 +81278,7 @@ function C7(e) {
} }), Q.route(g7()), U5(), N7();
} else e(U), bu(), Q.route(g7()), x7(U), S7(Gl);
}
-function DLe() {
+function OLe() {
return {
tiers: null,
tiersPending: !1,
@@ -81278,9 +81314,9 @@ function T7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || DLe(),
+ ...X.catalogFilterProps || OLe(),
...e
- }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = yLe(X.catalogViews(), X.catalogFilterProps.state, O7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = bLe(X.catalogViews(), X.catalogFilterProps.state, O7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => mp(t, X.catalogFilterProps)).finally(() => {
@@ -81305,17 +81341,17 @@ function E7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Hj(e, U.sort, U.dir);
+ let t = Vj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, bu(), Z7());
},
- reshuffle: () => zLe(),
+ reshuffle: () => BLe(),
setLayout: (e) => {
- t7() ? i7(e) : mLe(e);
+ t7() ? i7(e) : hLe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await XFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await ZFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(A7) : n.map(j7);
}
};
@@ -81324,13 +81360,13 @@ function D7() {
return t7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: bM(),
- options: hM
+ value: yM(),
+ options: mM
} : n7() ? {
name: "home-layout",
label: "首页卡片版式",
value: r7(),
- options: hM
+ options: mM
} : null;
}
function O7() {
@@ -81368,7 +81404,7 @@ function j7(e) {
logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""
};
}
-function OLe(e, t) {
+function kLe(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? T7({
tiersPending: !0,
state: e.state || ""
@@ -81391,7 +81427,7 @@ async function N7() {
U.seed || "",
t7()
]);
- OLe(n, e);
+ kLe(n, e);
let i;
try {
i = await b7(t);
@@ -81447,7 +81483,7 @@ async function N7() {
latest: null
});
}
-function kLe(e, t) {
+function ALe(e, t) {
n9.total = e, U.state === "trash" && (E5.trashCount = {
total: n9.total,
shown: t
@@ -81516,12 +81552,12 @@ async function R7() {
filters: U
},
detailReturnBarsContext: null
- }), a9(!1), U.state === "ads") return MLe(e);
+ }), a9(!1), U.state === "ads") return NLe(e);
X.controller.page === "/junk-files" && B7(), I5(), U5();
let t = V7(e);
if (X8(location.pathname) && U.browse !== "folders") {
if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- gIe();
+ _Ie();
} else Z8();
return L7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -81533,10 +81569,10 @@ function B7() {
Al(e), hp(e), X.controller.clear(), e.innerHTML = "";
}
function V7(e) {
- return G7("/", jLe, e, { place: lRe });
+ return G7("/", MLe, e, { place: uRe });
}
-function ALe(e) {
- return G7("/junk-files", PLe, e);
+function jLe(e) {
+ return G7("/junk-files", FLe, e);
}
function H7() {
return !!sp(L("#grid"));
@@ -81564,7 +81600,7 @@ function G7(e, t, n, r = {}) {
}
function K7() {
let e = n7();
- return DM({
+ return EM({
active: t7() || e,
home: e,
portrait: U.orient === "竖屏"
@@ -81574,7 +81610,7 @@ function q7(e = "正在读取作品") {
return eY(e, J7());
}
function J7() {
- return U ? OM(K7()) : 16 / 9;
+ return U ? DM(K7()) : 16 / 9;
}
function Y7() {
U7() && (Al(L("#grid")), W7({
@@ -81585,7 +81621,7 @@ function Y7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function jLe() {
+function MLe() {
let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -81608,7 +81644,7 @@ function jLe() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !t7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: kLe,
+ onCount: ALe,
onCountFailed: () => T7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : KK({
jav: t7() && !t,
@@ -81618,11 +81654,11 @@ function jLe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function MLe(e) {
+function NLe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), I5("正在读取垃圾文件")), U5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), ALe(e);
+ return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), I5("正在读取垃圾文件")), U5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), jLe(e);
}
-async function NLe(e, t) {
+async function PLe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await wn("/api/batch", {
@@ -81647,9 +81683,9 @@ async function NLe(e, t) {
throw b8.actionFailure("操作", e), e;
}
}
-function PLe() {
+function FLe() {
return {
- ...XU(location.search),
+ ...YU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -81665,8 +81701,8 @@ function PLe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function FLe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => x8(e, t, Z.appSettings, n), yu(S8(VFe(location, Z.appSettings, b8.rollSeed))), X.searchValueSnapshot = {
+function ILe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => x8(e, t, Z.appSettings, n), yu(S8(HFe(location, Z.appSettings, b8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -81687,21 +81723,21 @@ function FLe() {
};
};
}
-function ILe() {
+function LLe() {
I8.handler(L("#wallBtn"), "onclick", () => {
O5(!1, !0);
let e = o5(), t = {
...Y.activeFilterState(),
jav: t7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(zbe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Bbe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => rL(e, t),
- displayName: (e, t) => nL(e, t),
+ titleHtml: (e, t) => nL(e, t),
+ displayName: (e, t) => tL(e, t),
tagLabel: (e) => Pl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -81709,11 +81745,11 @@ function ILe() {
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: y7,
- open: (e, t) => CLe(e, t),
- openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : SLe(e, t),
+ open: (e, t) => wLe(e, t),
+ openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : CLe(e, t),
openShort: (e) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : f9(e.id),
openShorts: () => f9(),
- openMix: (e, t) => qLe(e, e, !0, t),
+ openMix: (e, t) => JLe(e, e, !0, t),
openEntity: (e, t) => v5(e, t),
openUnowned: () => _7({ owner: "none" }),
toggleTag: (e) => {
@@ -81722,9 +81758,9 @@ function ILe() {
});
},
toggleSelection: (e, t) => k5(e, t),
- watchLater: (e, t) => wLe(e, t),
- rate: (e, t, n, r) => ELe(e, t, n, r),
- resourceOperation: (e, t) => TLe(e, t),
+ watchLater: (e, t) => TLe(e, t),
+ rate: (e, t, n, r) => DLe(e, t, n, r),
+ resourceOperation: (e, t) => ELe(e, t),
mixRelated: (e) => v7(e),
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -81764,7 +81800,7 @@ function ILe() {
X.catalogFilterProps && T7({ comboHidden: !0 });
};
}
-function LLe() {
+function RLe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Yl && O5(!1, !0), Q.route(e);
@@ -81781,10 +81817,10 @@ function LLe() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => NLe(e, t)
+ operate: (e, t) => PLe(e, t)
};
}
-X.controller = new GFe();
+X.controller = new KFe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -81818,7 +81854,7 @@ async function X7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), bLe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), xLe(), Z.sourceOnline;
}
function Z7() {
let e = Q.surfacePath();
@@ -81829,7 +81865,7 @@ function Z7() {
state: W.navigation.location.state
}), t;
}
-function RLe(e) {
+function zLe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -81861,7 +81897,7 @@ function Q7(e, t) {
value: e.k,
label: tr[e.k] || e.k,
n: e.n ?? null,
- dot: RLe(e.k),
+ dot: zLe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -81874,7 +81910,7 @@ function Q7(e, t) {
duration: !!e.stats?.duration
};
}
-async function zLe(e = !1) {
+async function BLe(e = !1) {
if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || n9.stageOpen() || n9.immerseOpen() || Yl || ql.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -81906,47 +81942,47 @@ function $7() {
function e9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function BLe(e) {
+function VLe(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), e9(e), e && Al();
}
-function VLe(e) {
+function HLe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function t9(e) {
return Dc(e, { drag: !0 });
}
-function HLe() {
+function ULe() {
["#nrow", "#count"].forEach((e) => t9(L(e))), document.querySelectorAll(".tier,.srow").forEach(t9);
}
-function ULe() {
+function WLe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function WLe() {
+function GLe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = lM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), pM(), _le(), RM(), VM(), HM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = cM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), fM(), vle(), LM(), BM(), VM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
Xt(Z.appSettings.performerNameLanguage), F5.syncPageTitle(location.href), X.barsRendered = "", N7();
},
- theme: () => pM(),
+ theme: () => fM(),
uiSounds: () => {
Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");
},
- glowFrame: () => BM(),
+ glowFrame: () => zM(),
glow: () => {
- BM(), VM();
+ zM(), BM();
},
batchSize: () => {
location.pathname === "/" && R7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
sortDirection: () => {
- U.dir = Uj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
+ U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Z7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -81955,14 +81991,14 @@ function WLe() {
},
seekSeconds: () => Y7(),
groupCollapse: () => s7(),
- feedAutoScroll: () => _Ie(),
+ feedAutoScroll: () => vIe(),
feedLimit: () => Q8(),
feedCompilations: () => Q8(),
miniplayer: () => {
Z.appSettings.miniplayer || n8()?.closeMiniplayer();
},
javImage: () => {
- io(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), KLe();
+ io(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), qLe();
},
searchHistoryLimit: () => mp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -81973,7 +82009,7 @@ function WLe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Us;
}
-function GLe() {
+function KLe() {
Z.CENSOR_KEY = "peach-censor", e9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82009,7 +82045,7 @@ function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), d7(), e && Q.route($l || "/");
}
-function KLe() {
+function qLe() {
n8()?.repaintPoster();
}
function o9(e, t, n, r, i = null, a = {}) {
@@ -82034,13 +82070,13 @@ function o9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => l9(n == null ? null : +n, !1, s, i, !0, e), yu({ queueOpens: du + 1 });
} else return l9(n == null ? null : +n, !1, s, i, r);
}
-function qLe(e, t = e, n = !0, r = null) {
+function JLe(e, t = e, n = !0, r = null) {
return o9("mix", e, t, n, r);
}
-function JLe(e, t = e, n = !0, r = null) {
+function YLe(e, t = e, n = !0, r = null) {
return o9("editions", e, t, n, r);
}
-function YLe(e, t = e, n = !0, r = null) {
+function XLe(e, t = e, n = !0, r = null) {
return o9("parts", e, t, n, r);
}
function s9(e, t = null, n = !0) {
@@ -82138,9 +82174,9 @@ async function d9(e, t = !0) {
}), d7());
}
async function f9(e = null, t = !0) {
- t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await NFe(n9.immerseHost)).open(e));
+ t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await PFe(n9.immerseHost)).open(e));
}
-function XLe() {
+function ZLe() {
n9.total = 0, n9.facets = null, n9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -82156,11 +82192,11 @@ function XLe() {
openItem: (e) => void l9(e)
}, n9.stageOpen = () => !!n8()?.isOpen();
}
-function ZLe() {
+function QLe() {
n9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => rL(e),
- displayName: (e) => nL(e),
+ titleHtml: (e) => nL(e),
+ displayName: (e) => tL(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Pl(e),
isDurationTag: (e) => ir.has(e),
@@ -82209,12 +82245,12 @@ function ZLe() {
openTag: (e) => C7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => jIe(e),
- saveMix: (e) => AIe(e),
+ addToPlaylist: (e) => MIe(e),
+ saveMix: (e) => jIe(e),
editPlaylist: () => y9("/playlists"),
openPlaylists: () => y9("/playlists"),
reveal: (e) => p5(e),
- sync: (e) => SIe(e),
+ sync: (e) => CIe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Uf(), a9(!0, !1, { miniplayer: !1 })), await R7());
},
@@ -82224,7 +82260,7 @@ function ZLe() {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => nL(e),
+ displayName: (e) => tL(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => _7(),
openItem: (e) => void l9(e),
@@ -82288,7 +82324,7 @@ function v9() {
function y9(e) {
Q.route(e), yu({ pageOpens: uu + 1 });
}
-function QLe() {
+function $Le() {
Q.routeMeta = (e) => {
let t = Qf(e);
return t ? { route: t } : null;
@@ -82296,7 +82332,7 @@ function QLe() {
let t = Qf(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Rf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? f9(ULe()) : e === "/follow" ? T9() : e === "/playlists" || Q.catalogPage(e) ? y9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? YIe() : e) : (O5(!1, !0), y9(M5({
+ e === "/immerse" ? f9(WLe()) : e === "/follow" ? T9() : e === "/playlists" || Q.catalogPage(e) ? y9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? XIe() : e) : (O5(!1, !0), y9(M5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -82305,7 +82341,7 @@ function QLe() {
})));
};
}
-function $Le() {
+function eRe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -82324,15 +82360,15 @@ function $Le() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function eRe(e, t, n) {
+function tRe(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function tRe(e, t = 0, n = 0) {
- return n > 0 ? eRe(e, t, n) : Vs(e);
+function nRe(e, t = 0, n = 0) {
+ return n > 0 ? tRe(e, t, n) : Vs(e);
}
-async function nRe(e) {
+async function rRe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -82347,14 +82383,14 @@ async function nRe(e) {
await t(2e3);
}
}
-function rRe(e) {
+function iRe(e) {
let t = e.note || ((e) => Rs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Vs, r = e.progress || ((e, t, n) => tRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Vs, r = e.progress || ((e, t, n) => nRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- nRe({
+ rRe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -82403,7 +82439,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function iRe(e) {
+function aRe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
b8.toast({ text: Vi(e) }, {
warn: !!t,
@@ -82418,7 +82454,7 @@ function iRe(e) {
function b9() {
return Oa(x9());
}
-function aRe() {
+function oRe() {
return $.controller.read();
}
function x9() {
@@ -82439,17 +82475,17 @@ function x9() {
function S9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function oRe() {
+function sRe() {
let e = sp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function C9() {
- return !!oRe();
+ return !!sRe();
}
function w9(e) {
C9() && mp(L("#stats"), e);
}
-function sRe(e, t = {}) {
+function cRe(e, t = {}) {
return $.controller.route(e, t);
}
function T9(e = !1) {
@@ -82473,16 +82509,16 @@ async function E9(e, t = !0, n = null, r = !1) {
resume: t ? null : r9()
}), d7();
}
-async function cRe() {
- await i9(), a9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && C9() ? (aRe(), w9({ view: x9() })) : yu({ pageOpens: uu + 1 }));
+async function lRe() {
+ await i9(), a9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && C9() ? (oRe(), w9({ view: x9() })) : yu({ pageOpens: uu + 1 }));
}
-function lRe(e) {
+function uRe(e) {
let t = document.createElement("div");
return t.className = "peach-react", tc(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function uRe() {
+function dRe() {
$.followFeedHelpers = Il({
wireDrag: (e) => {
e && t9(e);
@@ -82491,22 +82527,22 @@ function uRe() {
e && Dc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: rRe
+ jobProgress: iRe
}), $.followFeedActions = {
loaded: (e) => W5(e),
openDetail: (e) => E9(e),
openAuthor: (e) => Q.navigatePath(Nn("creator", e)),
- toggleSelection: (e, t) => LIe(e, t),
+ toggleSelection: (e, t) => RIe(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- AM(e), u5();
+ kM(e), u5();
},
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => b8.actionReceipt(e, { undo: t }),
failure: (e, t) => b8.actionFailure(e, t),
- checkReport: (e) => iRe(e)
+ checkReport: (e) => aRe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
@@ -82516,7 +82552,7 @@ function uRe() {
view: x9,
adoptView: S9,
rememberReturn: (e) => yu({ followDetailReturnPath: e }),
- close: () => void cRe(),
+ close: () => void lRe(),
open: (e, t, n) => void E9(e, !0, t, n),
drawer: W5,
openAuthor: (e) => Q.navigatePath(Nn("creator", e))
@@ -82525,7 +82561,7 @@ function uRe() {
failure: b8.actionFailure
});
}
-function dRe() {
+function fRe() {
$.controller = ja({
location: () => location,
view: x9,
@@ -82543,8 +82579,8 @@ function dRe() {
preferences: () => ({
selectMode: Yl,
selected: Jl,
- photoSize: wM(),
- photoLayout: TM(),
+ photoSize: CM(),
+ photoLayout: wM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: C9,
@@ -82569,8 +82605,8 @@ function dRe() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function fRe() {
- pEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), I8.own(Kc()), Ua(document.body), X.homeHasFeed = mIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
+function pRe() {
+ hEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), I8.own(Kc()), Ua(document.body), X.homeHasFeed = hIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -82581,12 +82617,12 @@ function fRe() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function pRe() {
- IU({ reopen: !0 });
+async function mRe() {
+ FU({ reopen: !0 });
}
-function mRe() {
+function hRe() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- yu({ cameFromSetup: t }), I8.handler(document.getElementById("tutorialBtn"), "onclick", () => IU()), IU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ yu({ cameFromSetup: t }), I8.handler(document.getElementById("tutorialBtn"), "onclick", () => FU()), FU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -82597,7 +82633,7 @@ function mRe() {
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-async function hRe(e) {
+async function gRe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -82709,7 +82745,7 @@ async function hRe(e) {
];
}
// src/application/search-morph.js
-function gRe(e, t, n, r, i, a, o) {
+function _Re(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -82734,7 +82770,7 @@ var D9 = {
function O9() {
D9.searchControl?.close();
}
-function _Re(e) {
+function vRe(e) {
let t = e ? eo({
...e,
is_jav: !!e.code
@@ -82753,7 +82789,7 @@ function A9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Bc();
t.classList.add("search-morphing");
- let h = t.animate(gRe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(_Re(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -82762,13 +82798,13 @@ function A9(e) {
D9.searchMorph === h && k9();
});
}
-function vRe() {
+function yRe() {
return n9.immerseOpen() ? a8().activeVideo() : n8()?.activeVideo() || null;
}
-function yRe(e) {
+function bRe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function bRe() {
+function xRe() {
D9.searchControl = null, D9.searchActions = {
search: (e) => {
X.rememberSearchValue(), a9(!1), U.q = e, bu(), Q.route(U.jav === "1" ? g7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
@@ -82780,9 +82816,9 @@ function bRe() {
$.followMediaView = t, E9(e, !0, n);
}
}, D9.searchHelpers = {
- pool: () => Hbe(U, wn),
- recommendations: () => hRe(wn),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : _Re(e)}</span>`,
+ pool: () => Ube(U, wn),
+ recommendations: () => gRe(wn),
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : vRe(e)}</span>`,
present: (e) => ss(e),
dismiss: (e) => cs(e),
wireScroller: (e) => Dc(e),
@@ -82816,7 +82852,7 @@ function bRe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function xRe() {
+function SRe() {
D9.searchMorph = null, D9.searchMorphViewport = innerWidth, I8.listen.bind(I8, window)("resize", () => {
innerWidth !== D9.searchMorphViewport && (D9.searchMorphViewport = innerWidth, k9());
}, { passive: !0 }), I8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), I8.handler(L("#searchBtn"), "onclick", () => {
@@ -82858,7 +82894,7 @@ function xRe() {
}
return;
}
- if (yRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (bRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -82866,26 +82902,26 @@ function xRe() {
return;
}
}
- let t = vRe();
+ let t = yRe();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), n8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), pP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), fP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), fP(t);
+ e.preventDefault(), dP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), DN(t, ".vjs-mute-control");
+ e.preventDefault(), EN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), DN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), EN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -82896,7 +82932,7 @@ function xRe() {
});
}
// src/history/links.ts
-function SRe(e) {
+function CRe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -82919,23 +82955,23 @@ var j9 = {
shellActions: void 0,
routing: void 0
};
-function CRe() {
+function wRe() {
let e = I8, t = (e) => {
e.kind === "item" ? l9(e.id, !1) : e.kind === "jav" ? d9(e.code, !1) : e.kind === "follow" ? E9(e.id, !1) : o9(e.queue, e.key, e.item, !1);
};
- if (pIe(), F5.entityShapesReady = W8(), tLe(), location.pathname === "/") {
+ if (mIe(), F5.entityShapesReady = W8(), nLe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), lLe(), j9.shellActions = {
+ X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), uLe(), j9.shellActions = {
openSettings: (e) => Y5(e, !0),
closeSettings: () => c8()?.close(!1),
openItem: (e) => void l9(e),
openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- aLe(), F7(e);
+ oLe(), F7(e);
},
- openTasteSignal: kIe,
+ openTasteSignal: AIe,
navigate: (e) => {
let n = new URL(e, location.href), r = Lf(n.pathname, n.search);
if (r) {
@@ -82954,9 +82990,9 @@ function CRe() {
toast: (e, t) => b8.toast(e, t),
failure: b8.actionFailure,
revealSource: p5,
- reopenTutorial: pRe,
- routeReview: MIe,
- routeFollowManage: JIe,
+ reopenTutorial: mRe,
+ routeReview: NIe,
+ routeFollowManage: YIe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -82967,10 +83003,10 @@ function CRe() {
},
exitSelectMode: () => O5(!1, !1),
personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
- authorAvatar: (e) => XIe(e),
- showIndexTags: ZIe,
+ authorAvatar: (e) => ZIe(e),
+ showIndexTags: QIe,
openFollowAuthor: P5,
- openFollowTag: QIe,
+ openFollowTag: $Ie,
openPlaylist: (e, t) => void s9(e, t, !0),
canFlip: () => !Yl && !$7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -83031,23 +83067,23 @@ function CRe() {
}
}
}, j9.routing = !1, e.listen(document, "click", (e) => {
- let t = SRe(e);
+ let t = CRe(e);
t && (e.preventDefault(), j9.shellActions.navigate(t));
}), I8.own(W.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Rf(e.location.pathname) && a9(!1), j9.routing && !e.claimed && v9();
- })), jFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), fLe(), HIe(), Z5(), Promise.all([
+ })), MFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), pLe(), UIe(), Z5(), Promise.all([
X7(),
- uLe(),
+ dLe(),
F5.entityShapesReady
]).then(() => {
- e.isActive && (F5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), h9(), HLe(), j9.routing = !0, yu({ pageOpens: 1 }), v9(), d7());
+ e.isActive && (F5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), h9(), ULe(), j9.routing = !0, yu({ pageOpens: 1 }), v9(), d7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var M9 = !1;
-async function wRe(e, t) {
+async function TRe(e, t) {
if (M9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -83069,7 +83105,7 @@ async function wRe(e, t) {
}
}
// src/application/chrome.js
-function TRe() {
+function ERe() {
(() => {
let e = I8, t = [
"#brandHome",
@@ -83169,14 +83205,14 @@ function TRe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && wRe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), pM();
+ t.getAttribute("aria-pressed") !== "true" && TRe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), fM();
});
- })), pM();
+ })), fM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);
- e.own(y.dispose), e.own(kle(v)), RFe({
+ e.own(y.dispose), e.own(Ale(v)), zFe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -83319,15 +83355,15 @@ function TRe() {
})(), q5(!K5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function ERe() {
- fRe(), QLe(), nLe(), $Le(), WLe(), zFe(), FLe(), mRe(), EIe(), XLe(), UIe(), ILe(), yIe(), NIe(), uRe(), $Ie(), DIe(), dRe(), eLe(), OIe(), vLe(), LLe(), bRe(), ZLe(), xRe(), GLe(), CRe(), TRe(), I8.own(B7), I8.own(g9);
+function DRe() {
+ pRe(), $Le(), rLe(), eRe(), GLe(), BFe(), ILe(), hRe(), DIe(), ZLe(), WIe(), LLe(), bIe(), PIe(), dRe(), eLe(), OIe(), fRe(), tLe(), kIe(), yLe(), RLe(), xRe(), QLe(), SRe(), KLe(), wRe(), ERe(), I8.own(B7), I8.own(g9);
}
// src/ui-kit/middle-truncate.ts
-var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
+var ORe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + DRe + (r ? e.slice(-r).join("") : "");
-}, ORe = (e, t) => {
+ return e.slice(0, n).join("") + ORe + (r ? e.slice(-r).join("") : "");
+}, kRe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -83335,21 +83371,21 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(V9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, kRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, ARe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, jRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, MRe = /[＀-￯]/u, NRe = (e) => ARe.test(e) ? 1 : jRe.test(e) && !MRe.test(e) ? 2 : 0, PRe = (e) => {
+}, ARe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, jRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, MRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, NRe = /[＀-￯]/u, PRe = (e) => jRe.test(e) ? 1 : MRe.test(e) && !NRe.test(e) ? 2 : 0, FRe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = NRe(r);
+ let e = PRe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, FRe = null, IRe = (e, t) => {
- let n = getComputedStyle(e), r = (FRe ||= document.createElement("canvas")).getContext("2d");
+}, IRe = null, LRe = (e, t) => {
+ let n = getComputedStyle(e), r = (IRe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += PRe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += FRe(e) * s), t;
};
}, H9 = [
"font-family",
@@ -83376,7 +83412,7 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], U9 = null, LRe = (e) => {
+], U9 = null, RRe = (e) => {
if (!U9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", U9 = {
@@ -83387,8 +83423,8 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
U9.box.isConnected || document.documentElement.append(U9.box);
let t = getComputedStyle(e), n = H9.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = U9.groups.get(i);
return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(H9[t], e)), a.lang = r, U9.box.append(a), U9.groups.set(i, a)), a;
-}, RRe = 8, zRe = (e) => {
- for (let t = 0; e.length && t < RRe; t++) {
+}, zRe = 8, BRe = (e) => {
+ for (let t = 0; e.length && t < zRe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = V9(e.fit.parts, t), e.group.append(n), n;
@@ -83406,28 +83442,28 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, BRe = (e) => {
+}, VRe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = kRe.test(e), i = IRe(n.element, r);
- if (n.kept = ORe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = ARe.test(e), i = LRe(n.element, r);
+ if (n.kept = kRe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: LRe(n.element),
+ group: RRe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- zRe(t);
-}, VRe = (e) => {
+ BRe(t);
+}, HRe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, HRe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return VRe(e);
+}, URe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return HRe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -83436,7 +83472,7 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, URe = () => {
+}, WRe = () => {
I9 = 0;
let e = [];
for (let t of F9) {
@@ -83444,12 +83480,12 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n && t.isConnected && e.push({
element: t,
state: n,
- available: HRe(t),
+ available: URe(t),
parts: B9(n.full),
kept: 0
});
}
- F9.clear(), BRe(e.filter((e) => e.available > 0));
+ F9.clear(), VRe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? V9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -83457,7 +83493,7 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, W9 = (e) => {
- P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(URe));
+ P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(WRe));
}, G9 = (e) => {
e instanceof HTMLElement && (P9.has(e) || P9.set(e, {
full: e.textContent || "",
@@ -83468,7 +83504,7 @@ var DRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function WRe(e = document) {
+function GRe(e = document) {
z9?.(), L9 = /* @__PURE__ */ new WeakSet();
let t = !0;
R9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -83535,7 +83571,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], GRe = {
+], KRe = {
catalog: [
...q9,
...J9,
@@ -83556,10 +83592,10 @@ var q9 = [
"avatar-choices"
]
};
-function KRe() {
+function qRe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of GRe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of KRe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -83572,12 +83608,12 @@ function KRe() {
})), t || Promise.resolve();
};
}
-function qRe() {
+function JRe() {
let e = Pt({
- queryKey: aL,
- queryFn: ({ signal: e }) => sL(e),
- refetchInterval: (e) => oL(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(KRe), r = e.data?.result_versions;
+ queryKey: iL,
+ queryFn: ({ signal: e }) => oL(e),
+ refetchInterval: (e) => aL(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(qRe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -83587,52 +83623,52 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function JRe() {
+function YRe() {
if (!X9) {
- let e = tIe();
+ let e = nIe();
X9 = {
effects: e,
owners: 0
- }, e.own(WRe(document)), e.own(() => {
+ }, e.own(GRe(document)), e.own(() => {
Al(), H.cancelQueries();
- }), e.own(MFe), e.own(gp), e.own(as);
+ }), e.own(NFe), e.own(gp), e.own(as);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function YRe() {
+function XRe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = JRe(), r = AFe(t);
+ let e = X9 === null, n = YRe(), r = jFe(t);
if (e) try {
- ERe();
+ DRe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(uye, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(dye, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(qRe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(JRe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function XRe(e) {
+function ZRe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Rt.createRoot)(e, dye);
+ let n = (0, Rt.createRoot)(e, fye);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(YRe, {}))), n;
+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(XRe, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-XRe($9);
-export { tR as $2ec61d1d4f780267$export$a8a3e93435678ff9, lR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Ez as $542a13ca2fa5b484$export$5b6b19405a83ff9d, DD as $72abaeab4d80592f$export$78efe591171d7d45, vB as $76d00c5a4edb230a$export$76ccd210b9029917, hB as $76d00c5a4edb230a$export$816b5d811295e6bc, xB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, CB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, mB as $76d00c5a4edb230a$export$f850895b287ef28e, fhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, dhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, che as $b4f18e3395fe64d7$export$b2539bed5023c21c, DB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, hhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, mE as $ea3928288112382f$export$439d29a4e110a164, zz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, qz as $fe21c36db05242bb$export$d7b12c4107be0d61, Yhe as $l, Zj as ACCENTS, Oke as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, kke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, oW as ArtSlot, m2 as BATCH_DELETE_TEXT, J as Button, NL as ButtonLink, iV as Bx, T$ as CLEANUP_ENTRY, w$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, c1 as CONFIGURATION_KEY, iX as CONFIGURATION_URL, Ake as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, QV as Checkbox, ZV as CheckboxGlyph, HV as ChevronSortDown, aW as Chip, mW as CloudDownloadDialog, qH as CollapseChevron, KH as CollapseRegion, v$ as CollectionSummary, cwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, WQ as DIAGNOSTICS_KEY, oTe as DIRECTORY_TEMPLATE_ERROR, j0 as DISCOVERY_SORTS, cW as DOWNLOADS_KEY, sW as DOWNLOADS_URL, wY as DUPLICATES_KEY, aY as DataTableFooter, tY as DataTableFrame, iY as DataTableSort, $H as Disclosure, Wve as DownloadsPanel, Bhe as E3, lwe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, XB as Ea, bge as EmptyFocusButton, wV as EmptyState, ZH as ErrorText, U_e as ExternalLink, Br as FEEDS_KEY, fX as FEED_SCHEDULE_KEY, S$ as FIELDSET_FOOT, IPe as FLOW_LABEL_X, J3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, j8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, qZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, dX as FOLLOW_SCHEDULE_KEY, K_e as Fact, G_e as FactList, QH as FieldLabel, F$ as Fieldset, P$ as FieldsetTitle, lpe as FilterGlass, EL as FilterGlassRows, TL as FilterIconButton, DL as FilterPill, H_e as Footer, tV as Gg, OL as GlassPill, cV as HN, XH as Help, hV as HintText, OPe as IDLE_POLL_MS, ZCe as IDLE_REPAIR, xL as IconButton, KQ as IndexSearch, bV as Input, yV as InputBase, L$ as IssueRow, hM as JAV_LAYOUTS, N0 as JAV_RECOMMENDATION_GRID, RX as JUNK_KEY, NW as JavHeader, GCe as KEEP_LABELS, Hr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, dH as LIBRARY_PROCESSING_KEY, XY as LINKS_KEY, ZY as LINK_CHECK_KEY, Nwe as LINK_KINDS, QY as LINK_PRUNE_KEY, tr as LOC, mV as Label, B$ as LibraryProcessingCard, VV as LibraryShortcuts, DH as LinkButton, Zhe as Lo, VH as LoadingDots, Vhe as M6, Rwe as MEDIA_PROCESSING_KEY, mX as MEDIA_PROCESSING_URL, kY as MEDIA_REPAIR_KEY, OY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, KV as MENU_ITEM, qV as MENU_ITEM_INTERACTIVE, GV as MENU_POPOVER_SURFACE, $he as Ma, jH as MenuDialog, bK as MixCard, xV as ModalFrame, wx as MotionConfigContext, fV as NR, I$ as NameLink, CV as Note, gge as OA, vX as ORGANIZE_KEY, d2 as ORGANIZE_PARAMETER_HINT, u2 as ORGANIZE_SCOPE_HINT, l2 as ORGANIZE_TEXT, xX as ORPHAN_RECORDS_KEY, p2 as ORPHAN_RECORDS_TEXT, $B as OV, RB as P7, FX as PERFORMER_DELETE_KEY, $ve as PHASES, aX as PICK_FOLDER_URL, D$ as PLAIN_STAT_STRIP, H$ as PLAYLISTS_KEY, MAe as POLICY_COLUMNS, PAe as POLICY_COVER_NOTE, NAe as POLICY_MATRIX, K1 as POLICY_SUMMARY, rY as Pagination, z$ as PathLine, uV as Pf, XI as PillTabList, XOe as PlainStat, UH as Progress, PY as QUALITY_GOALS_KEY, lV as RB, k$ as REPAIR_CARD_TEXT, AY as REPAIR_LIBRARIES_KEY, EX as RESOURCE_APPLY_KEY, TX as RESOURCE_SCAN_KEY, f2 as RESOURCE_SYNC_TEXT, nke as RESULT_PANEL, rke as RESULT_SECTION, swe as REVIEW_CATEGORIES, LX as REVIEW_COUNTS_KEY, uwe as REVIEW_DECISION_LABELS, LY as REVIEW_KEY, RY as REVIEW_LABELS, BY as REVIEW_QUEUES, VY as REVIEW_QUEUE_LABELS, GG as RetryNote, hge as Rf, pV as Rk, z_e as Rows, Eke as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, Tke as SCRAPING_SETTINGS_URL, yU as SEGMENT, vU as SEGMENTED_TRACK, uX as SETTINGS_KEY, oX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, y3 as STATS_KEY, JOe as STAT_STRIP, YOe as STAT_STRIP_SIX, R_e as Section, ike as SectionHeading, V_e as SectionSkeleton, _U as SegmentedRadioGroup, sve as SegmentedTabList, RG as Segments, nY as Select, nW as Select$1, f1 as SelectField, rW as SelectItem, fY as SelectionActions, kj as SelectionDock, pY as SelectionPopover, JH as SettingsCard, L_e as SettingsRow, YH as SettingsSectionLabel, X_e as SiteLabel, _G as SortDirectionIcon, BG as SortKeys, DQ as SourceAvatar, rU as SourceLabel, eU as SourceMark, B_e as Stack, ZOe as StatCard, R$ as StatusLabel, fge as Su, Z2 as Switch, aL as TASKS_KEY, _Pe as TASTE_REFRESH_KEY, vPe as TASTE_WINDOWS, pX as THUMBNAIL_JOBS_KEY, BX as TRASH_KEY, Hfe as TRIGGER_LABELS, KJ as Table, mY as TableColumnControls, hY as TableColumnResizer, _Y as TableSelectionHeader, p$ as TagManager, W_e as TaskCenterLink, WH as TaskProgress, _V as TextField, gV as TextFieldContext, ZB as Un, gW as WANTS_KEY, f4 as WantMagnets, Wg as WithPromise, HB as Wt, YB as Xc, dV as Xf, WB as Xl, UB as Xt, BB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, mge as aB, Ti as addAlias, wi as addSource, vW as addWant, pS as animate, B as apiGet, V as apiSend, lM as appSettingsStore, TTe as applyConfirmText, PX as applyLeftovers, wTe as applyPlanText, DTe as applyText, pM as applyTheme, vy as asNumber, pTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Pq as autoResetPageIndex, go as avatarInner, T3 as bandRows, sTe as baseName, XCe as batchOperate, mue as beginPlayerGuidePreview, Pj as boundedPreference, qCe as bulkCloudPreferences, OV as busyProps, pge as cB, KMe as cachedMagnetStates, Rg as calcGeneratorVelocity, _we as canApprove, pg as cancelFrame, vTe as candidateText, BH as cardClass, OM as cardRatio, JB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Lwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Mke as checkText, Gi as checkedText, oK as clickedBlank, J5 as closeDrawerAfterNav, zCe as cloudLocations, D0 as cloudProxySkeleton, qC as clsx, nge as cn, sv as collectMotionValues, eJ as columnVisibilityFeature, VJ as column_getCanSort, LJ as column_getSortFn, hwe as commonReviewSources, Of as configurationSection, SPe as configureTasteBrowser, ol as confirmModal, Bfe as controlTask, gq as copyInstancePropertiesWithoutMemos, co as coverUrl, Gq as createColumnHelper, yke as createPlaylist, Yi as credentialDone, C0 as credentialsSkeleton, Ewe as currentReviewRow, q as cx, rV as dZ, Cwe as decisionPayload, wwe as decisionReceipt, Swe as defaultChoice, kTe as deletePerformerVideos, xke as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, OW as discoveryArtwork, CW as discoveryKey, ije as discoveryScore, a9 as disposeStage, UCe as distinctName, zi as dropSources, dge as du, JCe as duplicateVictims, fL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Nq as expandRowModel, MB as f1, yo as facePos, $r as feedIntervalText, $$ as fetchAmaneBridge, _i as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, gi as fetchCredentials, K$ as fetchCustomSources, IX as fetchDeletePerformers, OTe as fetchDeletePlan, GQ as fetchDiagnostics, wW as fetchDiscoveries, EY as fetchDuplicates, Ife as fetchEarlier, Vwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Bwe as fetchFollowSchedule, HX as fetchJunkSummary, yH as fetchLibraryProcessing, tX as fetchLinkCheck, nX as fetchLinkPrune, eX as fetchLinkStats, zwe as fetchMediaProcessing, jY as fetchMediaRepair, yr as fetchMediaSources, yX as fetchOrganize, $we as fetchOrganizeExample, SX as fetchOrphanRecords, Ai as fetchPending, U$ as fetchPlaylists, FY as fetchQualityGoals, DW as fetchReleases, MY as fetchRepairLibraries, vi as fetchResolveJob, OX as fetchResourceApply, DX as fetchResourceScan, qY as fetchReview, VX as fetchReviewCounts, hX as fetchSettings, Z$ as fetchSources, b3 as fetchStats, yi as fetchSuggestions, sL as fetchTasks, G3 as fetchTaste, CPe as fetchTasteJob, Hwe as fetchThumbnailJobs, UX as fetchTrashSummary, _W as fetchWants, pwe as filterReviewRows, $n as firstGrapheme, QK as flexRender, RPe as flowGraph, zPe as flowLabel, LNe as fmtCount, qn as fmtDur, Yn as fmtSize, Ffe as foldByKind, Qfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, epe as followupDetail, Pfe as followupTally, fg as frame, IB as g4, rJ as getDefaultPaginationState, DM as gridLayout, ci as groupByAuthor, Zfe as groupFollowups, WY as groupReviewRows, STe as hasChanges, kX as hasResourceRoots, lL as hasResultProblems, kPe as historySpan, NB as i2, DPe as importTasteExport, w0 as indexersSkeleton, Pg as interpolate, bW as invalidateWants, dL as isActive, Qr as isBroken, Kr as isLayout, vv as isMotionValue, zY as isReviewCategory, $fe as isRoutine, T0 as javBrowserSkeleton, F0 as javContentSkeleton, bM as javLayout, P0 as javTagSkeleton, PTe as junkBreakdown, Ske as keepPlaylist, ke as keepPreviousData, fi as keepSelected, x3 as known, Ihe as l7, Xfe as latestOfKind, Qn as leadingGraphemes, YNe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, LB as m7, nV as mM, En as mapLimit, ki as markItem, E3 as max, qNe as mediumRows, Lfe as mergeFinished, D3 as min, jwe as mirrorText, ewe as missingToolText, DY as mixedCloudPreferences, gL as momentText, mS as motion, lv as motionValue, nn as nameFallback, He as notifyManager, Hhe as oe, lTe as organizeOutcome, Z0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, xwe as pendingGenres, zNe as percentText, nTe as pickOrganizeFolder, E$ as plainStatClass, cTe as planSummary, S3 as playedFor, VNe as playedItemUrl, oL as pollInterval, Js as popCount, vke as posterUrl, tbe as previewLibraryColor, tTe as previewOrganize, rwe as previewUrl, Jfe as problemDestination, mH as processingActive, pL as progressText, nU as providerIcon, Iwe as pruneText, jX as purgeCount, mTe as purgeOrphan, aV as pv, uge as qE, H as queryClient, PB as r2, FPe as radarRows, WNe as radialArc, GNe as radialBarSize, UNe as radialCeiling, HNe as radialSlices, WN as randomId, NPe as rankDetail, PPe as rankShares, w3 as reachedShare, mL as readableErrorHeadline, aje as recommendationScore, Dwe as recordGenre, gTe as recordsText, Cke as recreatePlaylist, gke as refreshPlaylists, Cl as relayoutCovers, TW as releaseFilters, EW as releaseKey, Bi as reloadFollowManage, Awe as reloadReview, LAe as rememberShape, iTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, EPe as removeTasteSource, yW as removeWants, Di as renameAliasGroup, bke as renamePlaylist, Se as replaceEqualDeep, ZNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, fq as require_with_selector, nye as resetWants, pr as resolveFollowSort, Vg as resolveStartTime, f_e as restartEffectText, _ke as resumeAssetId, fwe as reviewGroupingOptions, UY as reviewQueueData, HY as reviewQueueOf, NTe as reviewSummary, mwe as reviewWindow, ywe as rowEvidence, KY as rowFieldName, uJ as rowPaginationFeature, jJ as rowSelectionFeature, WJ as rowSortingFeature, GY as rowSubject, bwe as rowTags, vwe as rowTitle, Nhe as s5, Oi as saveCredential, CTe as scanLine, qwe as schedulePollInterval, SW as searchNote, gwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, kwe as settleReviewRows, HCe as sharedNamePrefix, Ep as shellNavigate, y8 as showToast, zn as siteMarkUrl, wq as skipFirstRun, JI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, ETe as sourceMeta, zs as spinnerHtml, Mg as spring, EV as spriteGlyph, bi as startCheck, Pwe as startLinkCheck, Fwe as startLinkPrune, rTe as startOrganize, xi as startResolve, bTe as startResourceApply, yTe as startResourceScan, TPe as startTasteRefresh, qOe as statCardClass, Wfe as statusLabel, $Ce as statusLine, Zr as statusText, kM as storeJavLayout, Twe as submitDecision, _L as summaryItems, Kq as tableFeatures, Tq as tableMemo, ui as tableRows, qfe as taskIssues, Yfe as taskSubject, K3 as tasteDate, jPe as tasteDimensions, APe as tasteHours, W3 as tasteKey, bPe as tasteRefetchInterval, xPe as tasteTime, eL as textLang, $m as time, qhe as tl, mi as toggleGroup, q3 as topScores, ige as um, Qhe as uo, OH as useAction, HZ as useBackgroundJob, JU as useClientUpdates, dm as useConstant, vL as useEntityNames, wL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, aK as useLibraryTints, Ft as useMutation, $V as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, nS as useReducedMotion, Kwe as useRunSchedule, Wwe as useSaveFollowSchedule, gX as useSaveSettings, Jwe as useSaveThumbnailMode, GJ as useTable, cY as useTablePreferences, jL as useViewGlide, YCe as victimBytes, Jhe as vl, xW as wantName, BNe as watchNote, C3 as watchedShare, Dc as wireHorizontalScroller, aTe as withOrganizeJob, uve as writeJavQuery };
+ZRe($9);
+export { eR as $2ec61d1d4f780267$export$a8a3e93435678ff9, cR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Tz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ED as $72abaeab4d80592f$export$78efe591171d7d45, _B as $76d00c5a4edb230a$export$76ccd210b9029917, mB as $76d00c5a4edb230a$export$816b5d811295e6bc, bB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, SB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, pB as $76d00c5a4edb230a$export$f850895b287ef28e, phe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, fhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, lhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, EB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, ghe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, pE as $ea3928288112382f$export$439d29a4e110a164, Rz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Gz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Xhe as $l, Xj as ACCENTS, kke as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, Ake as AMANE_BRIDGE_REBUILD_URL, or as ApiError, aW as ArtSlot, m2 as BATCH_DELETE_TEXT, J as Button, ML as ButtonLink, rV as Bx, T$ as CLEANUP_ENTRY, w$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, c1 as CONFIGURATION_KEY, iX as CONFIGURATION_URL, jke as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, ZV as Checkbox, XV as CheckboxGlyph, VV as ChevronSortDown, iW as Chip, pW as CloudDownloadDialog, KH as CollapseChevron, GH as CollapseRegion, v$ as CollectionSummary, lwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, WQ as DIAGNOSTICS_KEY, cTe as DIRECTORY_TEMPLATE_ERROR, j0 as DISCOVERY_SORTS, sW as DOWNLOADS_KEY, oW as DOWNLOADS_URL, wY as DUPLICATES_KEY, aY as DataTableFooter, tY as DataTableFrame, iY as DataTableSort, QH as Disclosure, Gve as DownloadsPanel, Vhe as E3, uwe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, YB as Ea, xge as EmptyFocusButton, CV as EmptyState, XH as ErrorText, W_e as ExternalLink, Br as FEEDS_KEY, fX as FEED_SCHEDULE_KEY, S$ as FIELDSET_FOOT, LPe as FLOW_LABEL_X, J3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, j8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, qZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, dX as FOLLOW_SCHEDULE_KEY, q_e as Fact, K_e as FactList, ZH as FieldLabel, F$ as Fieldset, P$ as FieldsetTitle, upe as FilterGlass, TL as FilterGlassRows, wL as FilterIconButton, EL as FilterPill, U_e as Footer, eV as Gg, DL as GlassPill, sV as HN, YH as Help, mV as HintText, kPe as IDLE_POLL_MS, QCe as IDLE_REPAIR, bL as IconButton, KQ as IndexSearch, yV as Input, vV as InputBase, L$ as IssueRow, mM as JAV_LAYOUTS, N0 as JAV_RECOMMENDATION_GRID, LX as JUNK_KEY, NW as JavHeader, KCe as KEEP_LABELS, Hr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, XY as LINKS_KEY, ZY as LINK_CHECK_KEY, Pwe as LINK_KINDS, QY as LINK_PRUNE_KEY, tr as LOC, pV as Label, B$ as LibraryProcessingCard, BV as LibraryShortcuts, EH as LinkButton, Qhe as Lo, BH as LoadingDots, Hhe as M6, zwe as MEDIA_PROCESSING_KEY, mX as MEDIA_PROCESSING_URL, kY as MEDIA_REPAIR_KEY, OY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, GV as MENU_ITEM, KV as MENU_ITEM_INTERACTIVE, WV as MENU_POPOVER_SURFACE, ege as Ma, AH as MenuDialog, bK as MixCard, bV as ModalFrame, wx as MotionConfigContext, dV as NR, I$ as NameLink, SV as Note, _ge as OA, _X as ORGANIZE_KEY, d2 as ORGANIZE_PARAMETER_HINT, u2 as ORGANIZE_SCOPE_HINT, l2 as ORGANIZE_TEXT, bX as ORPHAN_RECORDS_KEY, p2 as ORPHAN_RECORDS_TEXT, QB as OV, LB as P7, PX as PERFORMER_DELETE_KEY, eye as PHASES, aX as PICK_FOLDER_URL, D$ as PLAIN_STAT_STRIP, H$ as PLAYLISTS_KEY, NAe as POLICY_COLUMNS, FAe as POLICY_COVER_NOTE, PAe as POLICY_MATRIX, K1 as POLICY_SUMMARY, rY as Pagination, z$ as PathLine, lV as Pf, YI as PillTabList, ZOe as PlainStat, HH as Progress, PY as QUALITY_GOALS_KEY, cV as RB, wW as RELEASE_SORTS, k$ as REPAIR_CARD_TEXT, AY as REPAIR_LIBRARIES_KEY, TX as RESOURCE_APPLY_KEY, wX as RESOURCE_SCAN_KEY, f2 as RESOURCE_SYNC_TEXT, rke as RESULT_PANEL, ike as RESULT_SECTION, cwe as REVIEW_CATEGORIES, IX as REVIEW_COUNTS_KEY, dwe as REVIEW_DECISION_LABELS, LY as REVIEW_KEY, RY as REVIEW_LABELS, BY as REVIEW_QUEUES, VY as REVIEW_QUEUE_LABELS, GG as RetryNote, gge as Rf, fV as Rk, B_e as Rows, Dke as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, Eke as SCRAPING_SETTINGS_URL, vU as SEGMENT, _U as SEGMENTED_TRACK, uX as SETTINGS_KEY, oX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, y3 as STATS_KEY, YOe as STAT_STRIP, XOe as STAT_STRIP_SIX, z_e as Section, ake as SectionHeading, H_e as SectionSkeleton, gU as SegmentedRadioGroup, cve as SegmentedTabList, RG as Segments, nY as Select, tW as Select$1, f1 as SelectField, nW as SelectItem, fY as SelectionActions, Oj as SelectionDock, pY as SelectionPopover, qH as SettingsCard, R_e as SettingsRow, JH as SettingsSectionLabel, zG as Shuffle, Z_e as SiteLabel, _G as SortDirectionIcon, BG as SortKeys, DQ as SourceAvatar, nU as SourceLabel, $H as SourceMark, V_e as Stack, QOe as StatCard, R$ as StatusLabel, pge as Su, Z2 as Switch, iL as TASKS_KEY, vPe as TASTE_REFRESH_KEY, yPe as TASTE_WINDOWS, pX as THUMBNAIL_JOBS_KEY, zX as TRASH_KEY, Ufe as TRIGGER_LABELS, KJ as Table, mY as TableColumnControls, hY as TableColumnResizer, _Y as TableSelectionHeader, p$ as TagManager, G_e as TaskCenterLink, UH as TaskProgress, gV as TextField, hV as TextFieldContext, XB as Un, hW as WANTS_KEY, f4 as WantMagnets, Wg as WithPromise, VB as Wt, JB as Xc, uV as Xf, UB as Xl, HB as Xt, zB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, hge as aB, Ti as addAlias, wi as addSource, _W as addWant, pS as animate, B as apiGet, V as apiSend, cM as appSettingsStore, DTe as applyConfirmText, NX as applyLeftovers, ETe as applyPlanText, kTe as applyText, fM as applyTheme, vy as asNumber, hTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Pq as autoResetPageIndex, go as avatarInner, T3 as bandRows, lTe as baseName, ZCe as batchOperate, hue as beginPlayerGuidePreview, Nj as boundedPreference, JCe as bulkCloudPreferences, DV as busyProps, mge as cB, qMe as cachedMagnetStates, Rg as calcGeneratorVelocity, vwe as canApprove, pg as cancelFrame, bTe as candidateText, zH as cardClass, DM as cardRatio, qB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Rwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Nke as checkText, Gi as checkedText, oK as clickedBlank, J5 as closeDrawerAfterNav, BCe as cloudLocations, D0 as cloudProxySkeleton, KC as clsx, rge as cn, sv as collectMotionValues, eJ as columnVisibilityFeature, VJ as column_getCanSort, LJ as column_getSortFn, gwe as commonReviewSources, Of as configurationSection, CPe as configureTasteBrowser, ol as confirmModal, Vfe as controlTask, gq as copyInstancePropertiesWithoutMemos, co as coverUrl, Gq as createColumnHelper, bke as createPlaylist, Yi as credentialDone, C0 as credentialsSkeleton, Dwe as currentReviewRow, q as cx, nV as dZ, wwe as decisionPayload, Twe as decisionReceipt, Cwe as defaultChoice, jTe as deletePerformerVideos, Ske as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, OW as discoveryArtwork, SW as discoveryKey, aje as discoveryScore, a9 as disposeStage, WCe as distinctName, zi as dropSources, fge as du, YCe as duplicateVictims, dL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Nq as expandRowModel, jB as f1, yo as facePos, $r as feedIntervalText, $$ as fetchAmaneBridge, _i as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, gi as fetchCredentials, K$ as fetchCustomSources, FX as fetchDeletePerformers, ATe as fetchDeletePlan, GQ as fetchDiagnostics, CW as fetchDiscoveries, EY as fetchDuplicates, Lfe as fetchEarlier, Hwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Vwe as fetchFollowSchedule, VX as fetchJunkSummary, vH as fetchLibraryProcessing, tX as fetchLinkCheck, nX as fetchLinkPrune, eX as fetchLinkStats, Bwe as fetchMediaProcessing, jY as fetchMediaRepair, yr as fetchMediaSources, vX as fetchOrganize, tTe as fetchOrganizeExample, xX as fetchOrphanRecords, Ai as fetchPending, U$ as fetchPlaylists, FY as fetchQualityGoals, DW as fetchReleases, MY as fetchRepairLibraries, vi as fetchResolveJob, DX as fetchResourceApply, EX as fetchResourceScan, qY as fetchReview, BX as fetchReviewCounts, hX as fetchSettings, Z$ as fetchSources, b3 as fetchStats, yi as fetchSuggestions, oL as fetchTasks, G3 as fetchTaste, wPe as fetchTasteJob, Uwe as fetchThumbnailJobs, HX as fetchTrashSummary, gW as fetchWants, mwe as filterReviewRows, $n as firstGrapheme, QK as flexRender, zPe as flowGraph, BPe as flowLabel, RNe as fmtCount, qn as fmtDur, Yn as fmtSize, Ife as foldByKind, $fe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, tpe as followupDetail, Ffe as followupTally, fg as frame, FB as g4, rJ as getDefaultPaginationState, EM as gridLayout, ci as groupByAuthor, Qfe as groupFollowups, WY as groupReviewRows, wTe as hasChanges, OX as hasResourceRoots, cL as hasResultProblems, APe as historySpan, MB as i2, OPe as importTasteExport, w0 as indexersSkeleton, Pg as interpolate, yW as invalidateWants, uL as isActive, Qr as isBroken, Kr as isLayout, vv as isMotionValue, zY as isReviewCategory, epe as isRoutine, T0 as javBrowserSkeleton, F0 as javContentSkeleton, yM as javLayout, P0 as javTagSkeleton, ITe as junkBreakdown, Cke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, x3 as known, Lhe as l7, Zfe as latestOfKind, Qn as leadingGraphemes, XNe as lengthRows, Sr as localTime, fo as logoUrl, Fi as lookupFeedActor, IB as m7, tV as mM, En as mapLimit, ki as markItem, E3 as max, JNe as mediumRows, Rfe as mergeFinished, D3 as min, Mwe as mirrorText, twe as missingToolText, DY as mixedCloudPreferences, hL as momentText, mS as motion, lv as motionValue, nn as nameFallback, He as notifyManager, Uhe as oe, dTe as organizeOutcome, Z0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, Swe as pendingGenres, BNe as percentText, iTe as pickOrganizeFolder, E$ as plainStatClass, uTe as planSummary, S3 as playedFor, HNe as playedItemUrl, aL as pollInterval, Js as popCount, yke as posterUrl, nbe as previewLibraryColor, rTe as previewOrganize, iwe as previewUrl, Yfe as problemDestination, pH as processingActive, fL as progressText, tU as providerIcon, Lwe as pruneText, AX as purgeCount, gTe as purgeOrphan, iV as pv, dge as qE, H as queryClient, NB as r2, IPe as radarRows, GNe as radialArc, KNe as radialBarSize, WNe as radialCeiling, UNe as radialSlices, UN as randomId, PPe as rankDetail, FPe as rankShares, w3 as reachedShare, pL as readableErrorHeadline, oje as recommendationScore, Owe as recordGenre, vTe as recordsText, wke as recreatePlaylist, _ke as refreshPlaylists, Cl as relayoutCovers, TW as releaseFilters, EW as releaseKey, Bi as reloadFollowManage, jwe as reloadReview, RAe as rememberShape, oTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, DPe as removeTasteSource, vW as removeWants, Di as renameAliasGroup, xke as renamePlaylist, Se as replaceEqualDeep, QNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, fq as require_with_selector, rye as resetWants, pr as resolveFollowSort, Vg as resolveStartTime, p_e as restartEffectText, vke as resumeAssetId, pwe as reviewGroupingOptions, UY as reviewQueueData, HY as reviewQueueOf, FTe as reviewSummary, hwe as reviewWindow, bwe as rowEvidence, KY as rowFieldName, uJ as rowPaginationFeature, jJ as rowSelectionFeature, WJ as rowSortingFeature, GY as rowSubject, xwe as rowTags, ywe as rowTitle, Phe as s5, Oi as saveCredential, TTe as scanLine, Jwe as schedulePollInterval, xW as searchNote, _we as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Awe as settleReviewRows, UCe as sharedNamePrefix, Ep as shellNavigate, y8 as showToast, zn as siteMarkUrl, wq as skipFirstRun, qI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, OTe as sourceMeta, zs as spinnerHtml, Mg as spring, TV as spriteGlyph, bi as startCheck, Fwe as startLinkCheck, Iwe as startLinkPrune, aTe as startOrganize, xi as startResolve, STe as startResourceApply, xTe as startResourceScan, EPe as startTasteRefresh, JOe as statCardClass, Gfe as statusLabel, ewe as statusLine, Zr as statusText, OM as storeJavLayout, Ewe as submitDecision, gL as summaryItems, Kq as tableFeatures, Tq as tableMemo, ui as tableRows, Jfe as taskIssues, Xfe as taskSubject, K3 as tasteDate, MPe as tasteDimensions, jPe as tasteHours, W3 as tasteKey, xPe as tasteRefetchInterval, SPe as tasteTime, $I as textLang, $m as time, Jhe as tl, mi as toggleGroup, q3 as topScores, age as um, $he as uo, DH as useAction, HZ as useBackgroundJob, qU as useClientUpdates, dm as useConstant, _L as useEntityNames, CL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, aK as useLibraryTints, Ft as useMutation, QV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, nS as useReducedMotion, qwe as useRunSchedule, Gwe as useSaveFollowSchedule, gX as useSaveSettings, Ywe as useSaveThumbnailMode, GJ as useTable, cY as useTablePreferences, AL as useViewGlide, XCe as victimBytes, Yhe as vl, bW as wantName, VNe as watchNote, C3 as watchedShare, Dc as wireHorizontalScroller, sTe as withOrganizeJob, dve as writeJavQuery };
-//# debugId=2c9abb90-f845-48b8-960c-59ee0b5783c4
\ No newline at end of file
+//# debugId=ca47c035-7a3d-4441-9cfa-ad73f99e1af8
\ No newline at end of file