Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(update): Docker 镜像检查更新显示安装方式并列出宿主机上的更新步骤

longmeidao004513704a75
diff --git a/docs/DOCKER.md b/docs/DOCKER.md
index a50c8062f..4f68406bd 100644
--- a/docs/DOCKER.md
+++ b/docs/DOCKER.md
@@ -158,6 +158,8 @@ docker compose cp peach:/tmp/peach-support.zip ./peach-support.zip
## 更新与范围
+配置页「检查更新」在容器里显示安装方式「Docker 镜像」,有新版本时不给下载键,改为列出宿主机上的两步:`docker compose pull` 拉取新镜像,`docker compose up -d` 重建容器。`.env` 把 `PEACH_VERSION` 固定成版本号的,先改成新版本再拉取。
+
更新镜像并重建容器时保留 `/data`。数据库有待执行迁移时,先备份并按 [运行与配置](OPERATIONS.md) 的迁移流程处理;Docker 启动入口不会自动迁移已有数据库。健康检查使用 `/healthz?ready=1`。
Linux 容器不读取用户电脑上的浏览历史,也不包含交互式浏览器;需要本机浏览器完成验证的来源在此环境不可用。CloudDrive2 的真实账号登录、网盘流量与 NAS 实机挂载需在目标机器验证。
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 29709f792..2ff052049 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -254,6 +254,8 @@ export interface ReleaseState {
asset_size?: number;
/** 能在页面里下载并重启安装;只有 Windows 独立包是 true。 */
in_app_update?: boolean;
+ /** 容器换新版要在宿主机上做的几步;其他安装方式是空表。 */
+ steps?: { text: string; command: string }[];
}
export interface UpdateJob {
diff --git a/frontend/src/react/settings/release-updates.tsx b/frontend/src/react/settings/release-updates.tsx
index a93db0062..9cf0613d9 100644
--- a/frontend/src/react/settings/release-updates.tsx
+++ b/frontend/src/react/settings/release-updates.tsx
@@ -11,7 +11,7 @@ import type { ReleaseState, UpdateJob } from '../bundle';
import { Note } from '../components/note';
import { Progress } from '../components/progress';
import { StatusLabel } from '../components/status-label';
-import { ErrorText, ExternalLink, Fact, FactList, Footer, Help, Section, Stack } from './section';
+import { CommandSteps, ErrorText, ExternalLink, Fact, FactList, Footer, Help, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
const ACTIVE = new Set(['downloading', 'verifying', 'extracting', 'preparing', 'restarting', 'installing']);
@@ -112,6 +112,9 @@ export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState;
: error || data.state === 'error'
? <ErrorText>{error || data.message}</ErrorText>
: data.state === 'unchecked' ? null : <Help role="status">{data.message}</Help>}
+ {/* 容器没有应用内更新:在宿主机上拉镜像、重建容器。 */}
+ {data.state === 'available' && !error && data.steps?.length
+ ? <CommandSteps label="在宿主机上更新" steps={data.steps} /> : null}
{job.state === 'error' ? <ErrorText>{job.message}</ErrorText> : null}
{job.state !== 'idle' && job.state !== 'error' ? (
<div aria-live="polite" className="flex flex-col gap-2">
diff --git a/frontend/src/react/settings/section.tsx b/frontend/src/react/settings/section.tsx
index 9a27f6b7f..d87eb05c0 100644
--- a/frontend/src/react/settings/section.tsx
+++ b/frontend/src/react/settings/section.tsx
@@ -89,6 +89,22 @@ export function ErrorText({ children }: { children: ReactNode }) {
return <p role="alert" className="text-body-2-regular text-text-error-primary">{children}</p>;
}
+/** 设置页做不了、要在宿主机上照抄执行的几步:每步一句说明加一条命令(容器的迁移与更新)。 */
+export function CommandSteps({ label, steps }: { label: string; steps: { text: string; command: string }[] }) {
+ return (
+ <ol className="flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary" aria-label={label}>
+ {steps.map((step) => (
+ <li key={step.command}>
+ {step.text}
+ <code className="mt-1 block rounded-md bg-background-tertiary-default px-2 py-1 text-caption-1-regular break-all text-text-primary">
+ {step.command}
+ </code>
+ </li>
+ ))}
+ </ol>
+ );
+}
+
/** 字段上方的名字,外观同 BoardUI `Label`;控件自己的无障碍名称由 `aria-label` 给。 */
export function FieldLabel({ children }: { children: ReactNode }) {
return <p className="text-body-medium text-text-primary">{children}</p>;
diff --git a/frontend/src/react/settings/storage-settings.tsx b/frontend/src/react/settings/storage-settings.tsx
index 87ee3bc2e..14b94eb9e 100644
--- a/frontend/src/react/settings/storage-settings.tsx
+++ b/frontend/src/react/settings/storage-settings.tsx
@@ -22,7 +22,7 @@ import { cardClass } from '../components/card';
import { LoadingDots } from '../components/loading-dots';
import { PathLine } from '../components/path-line';
import { Progress } from '../components/progress';
-import { ErrorText, Fact, FactList, Footer, Help, Stack, Section } from './section';
+import { CommandSteps, ErrorText, Fact, FactList, Footer, Help, Stack, Section } from './section';
import { CATEGORY_SWATCH, REST_SWATCH, StorageOverview } from './storage-charts';
import { busyProps, useAction } from './use-action';
@@ -199,16 +199,7 @@ export function StorageSettings({ initial, receipt }: { initial: StorageState; r
{!storage.relocation.available ? <Help>{storage.relocation.message}</Help> : null}
{/* 设置页迁移不了的部署(容器):宿主机上该做的几步,每步一句说明加一条可照抄的命令。 */}
{!storage.relocation.available && storage.relocation.steps?.length
- ? <ol className="flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary" aria-label="在宿主机上迁移">
- {storage.relocation.steps.map((step) => (
- <li key={step.command}>
- {step.text}
- <code className="mt-1 block rounded-md bg-background-tertiary-default px-2 py-1 text-caption-1-regular break-all text-text-primary">
- {step.command}
- </code>
- </li>
- ))}
- </ol>
+ ? <CommandSteps label="在宿主机上迁移" steps={storage.relocation.steps} />
: null}
{storage.job.error ? <ErrorText>{storage.job.message}</ErrorText> : null}
{action.error ? <ErrorText>{action.error}</ErrorText> : null}
diff --git a/frontend/test/react/maintenance-settings.test.tsx b/frontend/test/react/maintenance-settings.test.tsx
index a579e9829..a29f5268c 100644
--- a/frontend/test/react/maintenance-settings.test.tsx
+++ b/frontend/test/react/maintenance-settings.test.tsx
@@ -147,6 +147,20 @@ describe('检查更新', () => {
expect(link?.getAttribute('href')).toBe(dmg);
});
+ it('Docker 镜像有新版时列出宿主机上的两步命令,不给下载或安装键', async () => {
+ const steps = [{ text: '拉取新镜像', command: 'docker compose pull' }, { text: '重建容器', command: 'docker compose up -d' }];
+ const docker = { ...release, installation: 'Docker 镜像', in_app_update: false, steps };
+ const host = await mount(<ReleaseUpdates initial={{ ...docker, state: 'available', latest_version: '1.0.0', message: '有新镜像可拉取。' }} />);
+ const updates = section(host, '检查更新')!;
+ expect(updates.textContent).toContain('Docker 镜像');
+ const list = updates.querySelector('ol[aria-label="在宿主机上更新"]');
+ expect([...list!.querySelectorAll('code')].map((code) => code.textContent)).toEqual(['docker compose pull', 'docker compose up -d']);
+ expect(buttonNamed('下载并安装', updates)).toBeNull();
+ expect([...updates.querySelectorAll('a')].some((a) => a.textContent === '下载新版本')).toBe(false);
+ const current = await mount(<ReleaseUpdates initial={{ ...docker, state: 'current', latest_version: '0.9.0', message: '已是最新测试版。' }} />);
+ expect(current.querySelector('ol[aria-label="在宿主机上更新"]')).toBeNull();
+ });
+
it('已是最新就不再提示可用更新,也不给安装键', async () => {
const current = await mount(<ReleaseUpdates initial={{ ...release, latest_version: '0.9.0', state: 'current', message: '已是最新测试版。' }} />);
expect(current.textContent).not.toContain('有可用更新');
diff --git a/src/peach/distribution.py b/src/peach/distribution.py
index 0003b4fcf..acc3bbb53 100644
--- a/src/peach/distribution.py
+++ b/src/peach/distribution.py
@@ -1,6 +1,7 @@
-"""独立测试包的资源标记与用户数据目录。"""
+"""分发形态(独立测试包、Docker 镜像)的判定与用户数据目录。"""
from __future__ import annotations
+import os
import sys
from pathlib import Path
@@ -10,6 +11,11 @@ def standalone() -> bool:
(Path(getattr(sys, "_MEIPASS", "")) / "standalone.txt").is_file())
+def docker() -> bool:
+ """官方镜像在 Dockerfile 里设了 `PEACH_DISTRIBUTION=docker`。"""
+ return os.environ.get("PEACH_DISTRIBUTION") == "docker"
+
+
def in_app_update() -> bool:
"""应用内下载并替换安装只有 Windows 独立包有;macOS 独立包下载 DMG 手动替换。"""
return sys.platform == "win32" and standalone()
diff --git a/src/peach/release_updates.py b/src/peach/release_updates.py
index f88437608..3108614e6 100644
--- a/src/peach/release_updates.py
+++ b/src/peach/release_updates.py
@@ -28,10 +28,22 @@ def download_sources(url: str) -> tuple[str, ...]:
return (url,)
+#: 容器换新版在宿主机上做:拉镜像、重建容器,`/data` 卷保留。每步一句说明加一条命令,
+#: 命令按仓库的 compose.yaml 写(镜像标签取 `.env` 的 `PEACH_VERSION`,缺省是 `edge`)。
+DOCKER_STEPS = (
+ ("在 compose.yaml 所在目录拉取新镜像;.env 里把 PEACH_VERSION 固定成版本号的,先改成新版本",
+ "docker compose pull"),
+ ("重建容器,/data 数据卷保留", "docker compose up -d"),
+)
+
+
def snapshot() -> dict:
+ docker = distribution.docker()
+ installation = "Docker 镜像" if docker else "独立测试包" if distribution.standalone() else "源码运行"
return {"current_version": __version__, "latest_version": None,
- "channel": "测试版", "installation": "独立测试包" if distribution.standalone() else "源码运行",
+ "channel": "测试版", "installation": installation,
"in_app_update": distribution.in_app_update(),
+ "steps": [{"text": text, "command": command} for text, command in DOCKER_STEPS] if docker else [],
"state": "unchecked", "message": "尚未检查", "release_url": RELEASES_URL}
@@ -111,6 +123,10 @@ def check(*, transport=None, system: str | None = None, machine: str | None = No
raise ValueError("current version required")
state = "available" if version > current else "ahead" if version < current else "current"
message = {"available": "有新版本可下载。", "ahead": "当前版本高于已发布测试版。", "current": "已是最新测试版。"}[state]
+ if distribution.docker():
+ # 版本号跟着 Windows 包判,镜像在同一次发布里推送;容器不下载发行包,只给版本与发布页。
+ return dict(result, latest_version=tag.removeprefix("v"), state=state, release_url=release_url,
+ message="有新镜像可拉取。" if state == "available" else message)
return dict(result, latest_version=tag.removeprefix("v"), state=state, message=message,
asset_url=f"{directory}/{asset['name']}",
asset_size=asset.get("size", 0), asset_digest=asset.get("digest"),
diff --git a/tests/test_release_updates.py b/tests/test_release_updates.py
index c5ff5f3a3..b19da136e 100644
--- a/tests/test_release_updates.py
+++ b/tests/test_release_updates.py
@@ -162,6 +162,22 @@ class ReleaseUpdateTests(unittest.TestCase):
with patch.object(distribution, "sys", SimpleNamespace(platform="win32")):
self.assertTrue(release_updates.snapshot()["in_app_update"])
+ def test_docker_image_reports_itself_and_gives_host_steps_instead_of_a_package(self):
+ transport = Mock(return_value=HttpResponse(200, {}, json.dumps([release("1.0.0")]).encode()))
+ with patch.dict("os.environ", {"PEACH_DISTRIBUTION": "docker"}), \
+ patch.object(release_updates, "__version__", "0.9.0"):
+ snapshot = release_updates.snapshot()
+ result = release_updates.check(transport=transport, system="linux", machine="x86_64")
+ self.assertEqual(snapshot["installation"], "Docker 镜像", "此前显示成「源码运行」")
+ self.assertEqual([step["command"] for step in snapshot["steps"]],
+ ["docker compose pull", "docker compose up -d"])
+ self.assertEqual((result["state"], result["latest_version"]), ("available", "1.0.0"))
+ self.assertEqual(result["release_url"], release_updates.RELEASES_URL + "/tag/v1.0.0")
+ self.assertNotIn("package_kind", result, "容器不下载 Windows 发行包")
+ self.assertNotIn("asset_url", result)
+ with patch.dict("os.environ", {"PEACH_DISTRIBUTION": ""}):
+ self.assertEqual(release_updates.snapshot()["steps"], [])
+
def test_macos_skips_releases_without_its_dmg(self):
transport = Mock(return_value=HttpResponse(200, {}, json.dumps([release("1.0.0")]).encode()))
with patch.object(release_updates, "__version__", "0.9.0"):
diff --git a/web/dist/peach-app.configuration-page-ubxQHJd0.js b/web/dist/peach-app.configuration-page-tx87-zps.js
similarity index 84%
rename from web/dist/peach-app.configuration-page-ubxQHJd0.js
rename to web/dist/peach-app.configuration-page-tx87-zps.js
index 9aa994664..bd7c01c57 100644
--- a/web/dist/peach-app.configuration-page-ubxQHJd0.js
+++ b/web/dist/peach-app.configuration-page-tx87-zps.js
@@ -1,32 +1,32 @@
(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] = "80caf3f2-9a7b-4fda-9c35-03d51996f275", e._sentryDebugIdIdentifier = "sentry-dbid-80caf3f2-9a7b-4fda-9c35-03d51996f275");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "415e66e2-d1aa-469f-9d5a-6269305d5cf9", e._sentryDebugIdIdentifier = "sentry-dbid-415e66e2-d1aa-469f-9d5a-6269305d5cf9");
} catch {}
})();
import { AnimatedItems as e, Cell as t, ChartBackground as n, ChartContainer as r, ChartLegend as i, ChartLegendContent as a, ChartTip as o, ChartTooltip as s, ChartTooltipContent as c, Curve as l, DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME as u, DATA_ITEM_INDEX_ATTRIBUTE_NAME as d, DefaultZIndexes as f, EvilBarChart as p, LabelList as m, LabelListFromLabelProp as h, Layer as g, LoadingIndicator as _, PolarChart as v, PolarLabelContextProvider as y, PolarLabelListContextProvider as b, RegisterGraphicalItemId as x, Sector as S, SetPolarGraphicalItem as C, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Shape as ee, TIP_SWATCH as te, Text as ne, ZIndexLayer as re, adaptEventsOfChild as ie, arrayTooltipSearcher as ae, createSelector as oe, defaultPolarChartProps as se, findAllByType as ce, get as le, getClassNameFromUnknown as ue, getColorsCount as de, getMaxRadius as fe, getPercentValue as pe, getTooltipNameProp as me, getValueByDataKey as he, interpolate as ge, isNumber as _e, matchAppend as ve, mathSign as ye, polarToCartesian as be, resolveDefaultProps as xe, selectActiveTooltipDataKey as Se, selectActiveTooltipGraphicalItemId as Ce, selectActiveTooltipIndex as we, selectChartDataAndAlwaysIgnoreIndexes as Te, selectChartOffsetInternal as Ee, selectUnfilteredPolarItems as De, svgPropertiesNoEvents as Oe, svgPropertiesNoEventsFromUnknown as ke, tone as Ae, useAnimationCallbacks as je, useAppSelector as Me, useMouseClickItemDispatch as Ne, useMouseEnterItemDispatch as Pe, useMouseLeaveItemDispatch as Fe, usePolarChartLayout as Ie } from "./peach-app.chart-tip-CRxYp6KT.js";
-import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as Le, $3a442827418ebe87$export$eb2fcfdbd7ba97d4 as Re, $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $72abaeab4d80592f$export$78efe591171d7d45 as Be, $bd263d78e9bf3c56$export$f5c9f3c2c4054eec as Ve, $ea3928288112382f$export$439d29a4e110a164 as He, $f2ff30fde7b014be$export$3ddf2d174ce01153 as Ue, $fe21c36db05242bb$export$a98f0dcb43a68a25 as We, $fe21c36db05242bb$export$d7b12c4107be0d61 as Ge, ACCENTS as Ke, ApiError as qe, Button as E, ButtonLink as Je, CLOUD_LOCATIONS as Ye, CLOUD_PROXY_HELP as Xe, CONFIGURATION_KEY as Ze, CONFIGURATION_URL as Qe, CREDENTIAL_STATE as $e, Checkbox as D, Chip as et, Disclosure as O, ENTRY_LINKS_HELP as tt, ENTRY_LINKS_HINT as nt, EmptyState as rt, ErrorText as k, Eu as it, ExternalLink as A, FEED_SCHEDULE_KEY as at, FOLLOW_CREDENTIALS_KEY as ot, FOLLOW_INITIAL_RANGE_OPTIONS as st, FOLLOW_SCHEDULE_KEY as ct, Fact as j, FactList as lt, FieldLabel as ut, Footer as M, Help as N, HintText as dt, Input as P, L1 as ft, LIBRARY_FOLDER_HELP as pt, LIBRARY_PROCESSING_KEY as mt, Label as ht, LinkButton as gt, LoadingDots as _t, M6 as vt, MEDIA_PROCESSING_KEY as yt, MEDIA_PROCESSING_URL as bt, MEDIA_SOURCE_ICONS as xt, MENU_POPOVER_SURFACE as St, Note as F, PICK_FOLDER_URL as Ct, POLICY_COLUMNS as wt, POLICY_COVER_NOTE as Tt, POLICY_MATRIX as Et, POLICY_SUMMARY as Dt, PathLine as Ot, PillTabList as kt, Progress as At, Rows as I, SEGMENT as jt, SEGMENTED_TRACK as Mt, SETTINGS_KEY as Nt, SETTINGS_URL as Pt, Section as L, SectionSkeleton as Ft, SegmentedRadioGroup as It, Select as Lt, Select$1 as R, SelectItem as z, SettingsCard as Rt, SettingsRow as B, SiteLabel as zt, SourceLabel as Bt, SourceMark as Vt, Stack as V, StatusLabel as H, Switch as U, THUMBNAIL_JOBS_KEY as Ht, TaskCenterLink as Ut, TextField as Wt, TextFieldContext as Gt, Uz as Kt, __toESM as qt, _p as Jt, animate as Yt, apiGet as W, apiSend as G, appSettingsStore as Xt, boundedPreference as Zt, busyProps as K, cardClass as Qt, cloudProxySkeleton as $t, clsx as en, cn as tn, confirmModal as nn, credentialDone as rn, credentialsSkeleton as an, cx as on, d6 as sn, devicesSkeleton as cn, errorMessage as q, fetchConfiguration as ln, fetchCredentials as un, fetchFeedSchedule as dn, fetchFollowSchedule as fn, fetchLibraryProcessing as pn, fetchMediaProcessing as mn, fetchSettings as hn, fetchThumbnailJobs as gn, fmtSize as J, indexersSkeleton as _n, javBrowserSkeleton as vn, l1 as yn, momentText as bn, motion as xn, overlayHost as Sn, peachHistory$1 as Cn, previewLibraryColor as wn, processingActive as Tn, providerIcon as En, queryClient as Dn, randomId as On, rememberShape as kn, require_jsx_runtime as An, require_react as jn, restartEffectText as Mn, saveCredential as Nn, schedulePollInterval as Pn, settingsPath as Fn, shellNavigate as In, sortCx as Ln, sourceDefaultCost as Rn, useAction as Y, useClientUpdates as zn, useLibraryTints as Bn, useMutation as Vn, useQuery as X, useReducedMotion as Hn, useRunSchedule as Un, useSaveFollowSchedule as Wn, useSaveSettings as Gn, useSaveThumbnailMode as Kn, z3 as qn } from "./peach-app.js";
-import { CodeBlock as Jn } from "./peach-app.code-block-CyDva4Ms.js";
-import { FolderField as Yn, FolderFieldLine as Xn, FolderRow as Zn, MEDIA_SOURCES as Qn, MediaReadPolicy as $n, MediaReadPolicyHelp as er, SourceSelect as tr, isCloudSource as nr, sourceMark as rr, useFolderRows as ir } from "./peach-app.folder-rows-BWBfTyUD.js";
-import { ConnectionStatus as ar } from "./peach-app.connection-status-DI6kgn3i.js";
-import { SourceIcon as or } from "./peach-app.source-view-DalWfDkm.js";
-import { BrowserIcon as sr, browserIconId as cr } from "./peach-app.browser-icon-N9Od-bAf.js";
+import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as Le, $3a442827418ebe87$export$eb2fcfdbd7ba97d4 as Re, $542a13ca2fa5b484$export$5b6b19405a83ff9d as ze, $72abaeab4d80592f$export$78efe591171d7d45 as Be, $bd263d78e9bf3c56$export$f5c9f3c2c4054eec as Ve, $ea3928288112382f$export$439d29a4e110a164 as He, $f2ff30fde7b014be$export$3ddf2d174ce01153 as Ue, $fe21c36db05242bb$export$a98f0dcb43a68a25 as We, $fe21c36db05242bb$export$d7b12c4107be0d61 as Ge, ACCENTS as Ke, ApiError as qe, Button as E, ButtonLink as Je, CLOUD_LOCATIONS as Ye, CLOUD_PROXY_HELP as Xe, CONFIGURATION_KEY as Ze, CONFIGURATION_URL as Qe, CREDENTIAL_STATE as $e, Checkbox as D, Chip as et, CommandSteps as tt, Disclosure as O, ENTRY_LINKS_HELP as nt, ENTRY_LINKS_HINT as rt, EmptyState as it, ErrorText as k, Eu as at, ExternalLink as A, FEED_SCHEDULE_KEY as ot, FOLLOW_CREDENTIALS_KEY as st, FOLLOW_INITIAL_RANGE_OPTIONS as ct, FOLLOW_SCHEDULE_KEY as lt, Fact as j, FactList as ut, FieldLabel as dt, Footer as M, Help as N, HintText as ft, Input as P, L1 as pt, LIBRARY_FOLDER_HELP as mt, LIBRARY_PROCESSING_KEY as ht, Label as gt, LinkButton as _t, LoadingDots as vt, M6 as yt, MEDIA_PROCESSING_KEY as bt, MEDIA_PROCESSING_URL as xt, MEDIA_SOURCE_ICONS as St, MENU_POPOVER_SURFACE as Ct, Note as F, PICK_FOLDER_URL as wt, POLICY_COLUMNS as Tt, POLICY_COVER_NOTE as Et, POLICY_MATRIX as Dt, POLICY_SUMMARY as Ot, PathLine as kt, PillTabList as At, Progress as jt, Rows as I, SEGMENT as Mt, SEGMENTED_TRACK as Nt, SETTINGS_KEY as Pt, SETTINGS_URL as Ft, Section as L, SectionSkeleton as It, SegmentedRadioGroup as Lt, Select as Rt, Select$1 as R, SelectItem as z, SettingsCard as zt, SettingsRow as B, SiteLabel as Bt, SourceLabel as Vt, SourceMark as Ht, Stack as V, StatusLabel as H, Switch as U, THUMBNAIL_JOBS_KEY as Ut, TaskCenterLink as Wt, TextField as Gt, TextFieldContext as Kt, Uz as qt, __toESM as Jt, _p as Yt, animate as Xt, apiGet as W, apiSend as G, appSettingsStore as Zt, boundedPreference as Qt, busyProps as K, cardClass as $t, cloudProxySkeleton as en, clsx as tn, cn as nn, confirmModal as rn, credentialDone as an, credentialsSkeleton as on, cx as sn, d6 as cn, devicesSkeleton as ln, errorMessage as q, fetchConfiguration as un, fetchCredentials as dn, fetchFeedSchedule as fn, fetchFollowSchedule as pn, fetchLibraryProcessing as mn, fetchMediaProcessing as hn, fetchSettings as gn, fetchThumbnailJobs as _n, fmtSize as J, indexersSkeleton as vn, javBrowserSkeleton as yn, l1 as bn, momentText as xn, motion as Sn, overlayHost as Cn, peachHistory$1 as wn, previewLibraryColor as Tn, processingActive as En, providerIcon as Dn, queryClient as On, randomId as kn, rememberShape as An, require_jsx_runtime as jn, require_react as Mn, restartEffectText as Nn, saveCredential as Pn, schedulePollInterval as Fn, settingsPath as In, shellNavigate as Ln, sortCx as Rn, sourceDefaultCost as zn, useAction as Y, useClientUpdates as Bn, useLibraryTints as Vn, useMutation as Hn, useQuery as X, useReducedMotion as Un, useRunSchedule as Wn, useSaveFollowSchedule as Gn, useSaveSettings as Kn, useSaveThumbnailMode as qn, z3 as Jn } from "./peach-app.js";
+import { CodeBlock as Yn } from "./peach-app.code-block-CyDva4Ms.js";
+import { FolderField as Xn, FolderFieldLine as Zn, FolderRow as Qn, MEDIA_SOURCES as $n, MediaReadPolicy as er, MediaReadPolicyHelp as tr, SourceSelect as nr, isCloudSource as rr, sourceMark as ir, useFolderRows as ar } from "./peach-app.folder-rows-BWBfTyUD.js";
+import { ConnectionStatus as or } from "./peach-app.connection-status-DI6kgn3i.js";
+import { SourceIcon as sr } from "./peach-app.source-view-DalWfDkm.js";
+import { BrowserIcon as cr, browserIconId as lr } from "./peach-app.browser-icon-N9Od-bAf.js";
// src/react/settings/configuration-panel.ts
-var Z = /* @__PURE__ */ qt(jn(), 1), lr = "flex flex-col gap-6";
-function ur(e) {
+var Z = /* @__PURE__ */ Jt(Mn(), 1), ur = "flex flex-col gap-6";
+function dr(e) {
return e ? {
- className: e.active ? `${lr} ui-board-group-active` : lr,
+ className: e.active ? `${ur} ui-board-group-active` : ur,
"data-board-group": String(e.index),
id: e.id,
role: "tabpanel",
"aria-labelledby": e.labelledBy
- } : { className: lr };
+ } : { className: ur };
}
// src/react/settings/userscript-probe.ts
-function dr() {
+function fr() {
let e = (0, Z.useRef)(null), [t, n] = (0, Z.useState)(0), [r, i] = (0, Z.useState)("checking");
return (0, Z.useEffect)(() => {
- let t = On(), n = !1, r = e.current, a, o = () => {
+ let t = kn(), n = !1, r = e.current, a, o = () => {
n = !0, clearInterval(u), i("missing");
}, s = () => {
n || (clearTimeout(a), a = setTimeout(o, 3e3), c());
@@ -54,14 +54,14 @@ function dr() {
};
}
// src/react/settings/userscript-status.tsx
-var Q = An();
-function fr(e, t) {
+var Q = jn();
+function pr(e, t) {
let n = e.split(".").map(Number), r = t.split(".").map(Number);
for (let e = 0; e < 3; e++) if (n[e] !== r[e]) return n[e] > r[e];
return !0;
}
-function pr({ enabled: e, release: t }) {
- let { frame: n, attempt: r, status: i, retry: a } = dr(), o = typeof i == "object", s = o && !fr(i.version, t.minimum_version), c = o && !fr(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";
+function mr({ enabled: e, release: t }) {
+ let { frame: n, attempt: r, status: i, retry: a } = fr(), o = typeof i == "object", s = o && !pr(i.version, t.minimum_version), c = o && !pr(i.version, t.version), l = i === "checking" ? "progress" : i === "missing" ? "neutral" : s || c || !i.paired ? "warning" : "success", u = i === "checking" ? "检测中" : i === "missing" ? "未检测到" : s ? "需更新" : c ? "可更新" : i.paired ? "已连接" : "待配对", d = i === "checking" ? "checking" : i === "missing" ? "missing" : s ? "required" : c ? "available" : i.paired ? e ? "enabled" : "disabled" : "unpaired";
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)("iframe", {
ref: n,
title: "Peach 用户脚本检测",
@@ -70,7 +70,7 @@ function pr({ enabled: e, release: t }) {
}, r), /* @__PURE__ */ (0, Q.jsxs)("div", {
"aria-live": "polite",
"data-userscript-status": "",
- className: Qt({
+ className: $t({
variant: "raised",
bordered: "line",
className: "flex flex-col gap-3"
@@ -81,7 +81,7 @@ function pr({ enabled: e, release: t }) {
children: [/* @__PURE__ */ (0, Q.jsx)("span", {
className: "text-body-medium text-text-primary",
children: "Peach 用户脚本"
- }), /* @__PURE__ */ (0, Q.jsx)(ar, {
+ }), /* @__PURE__ */ (0, Q.jsx)(or, {
tone: l,
children: /* @__PURE__ */ (0, Q.jsx)("span", {
"data-copy-key": `userscript.${d}.status`,
@@ -139,32 +139,32 @@ function pr({ enabled: e, release: t }) {
})] });
}
// src/react/settings/jav-browser-settings.tsx
-var mr = "/api/configuration/jav-browser";
-function hr({ receipt: e, refreshKey: t }) {
+var hr = "/api/configuration/jav-browser";
+function gr({ receipt: e, refreshKey: t }) {
let n = X({
queryKey: ["jav-browser-settings", t],
- queryFn: ({ signal: e }) => W(mr, e),
+ queryFn: ({ signal: e }) => W(hr, e),
refetchOnMount: "always",
refetchOnWindowFocus: "always"
});
- return n.error && !n.data ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(n.error) }) : n.isFetching && !n.data ? /* @__PURE__ */ (0, Q.jsx)(Ft, {
+ return n.error && !n.data ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(n.error) }) : n.isFetching && !n.data ? /* @__PURE__ */ (0, Q.jsx)(It, {
label: "正在读取浏览器添加设置",
- html: vn
- }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(gr, {
+ html: yn
+ }) : n.data ? /* @__PURE__ */ (0, Q.jsx)(_r, {
initial: n.data,
receipt: e
}) : null;
}
-function gr({ initial: e, receipt: t }) {
+function _r({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.provider), [o, s] = (0, Z.useState)(""), c = Y();
(0, Z.useEffect)(() => {
- kn("javBrowser", {
+ An("javBrowser", {
enabled: e.enabled,
ready: e.providers.some((t) => t.key === e.provider && t.configured && t.target)
}), r(e), a((t) => e.providers.some((e) => e.key === t) ? t : e.provider), e.enabled || s("");
}, [e]);
let l = (e) => {
- c.run(e, (t) => G(mr, {
+ c.run(e, (t) => G(hr, {
action: e,
provider: i
}, "POST", t), (n) => {
@@ -178,13 +178,13 @@ function gr({ initial: e, receipt: t }) {
children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, Q.jsx)(pr, {
+ /* @__PURE__ */ (0, Q.jsx)(mr, {
enabled: n.enabled,
release: n.userscript
}),
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, Q.jsx)(ut, { children: "浏览器添加的下载渠道" }), /* @__PURE__ */ (0, Q.jsx)(R, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(dt, { children: "浏览器添加的下载渠道" }), /* @__PURE__ */ (0, Q.jsx)(R, {
"aria-label": "浏览器添加的下载渠道",
selectedKey: i || null,
placeholder: "暂无可用渠道",
@@ -195,7 +195,7 @@ function gr({ initial: e, receipt: t }) {
children: n.providers.map((e) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ children: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: e.key,
label: e.label
})
@@ -251,17 +251,17 @@ function gr({ initial: e, receipt: t }) {
});
}
// src/react/settings/download-settings.tsx
-var _r = "/api/configuration/downloads", vr = "/api/configuration/downloads/check", yr = "/api/configuration/downloads/folder", br = "/api/configuration/downloads/pikpak/login", xr = "/api/configuration/downloads/pikpak/logout", Sr = "/api/configuration/downloads/pikpak/browser-login", Cr = 2e3, wr = En("pikpak");
-function Tr({ initial: e, receipt: t, panel: n, issues: r }) {
+var vr = "/api/configuration/downloads", yr = "/api/configuration/downloads/check", br = "/api/configuration/downloads/folder", xr = "/api/configuration/downloads/pikpak/login", Sr = "/api/configuration/downloads/pikpak/logout", Cr = "/api/configuration/downloads/pikpak/browser-login", wr = 2e3, Tr = Dn("pikpak");
+function Er({ initial: e, receipt: t, panel: n, issues: r }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
- children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(Er, {
+ ...dr(n),
+ children: [r, e ? /* @__PURE__ */ (0, Q.jsx)(Dr, {
initial: e,
receipt: t
}) : null]
});
}
-function Er({ initial: e, receipt: t }) {
+function Dr({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)("");
(0, Z.useEffect)(() => {
r((t) => ({
@@ -272,20 +272,20 @@ function Er({ initial: e, receipt: t }) {
}, [e.media_sources, e.pikpak_roots]);
let o = n.media_sources ?? [], s = o.includes("pikpak"), c = o.some((e) => Ye.includes(e)), l = s && (n.pikpak.logged_in || !!i.trim());
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
- c ? /* @__PURE__ */ (0, Q.jsx)(Dr, {
+ c ? /* @__PURE__ */ (0, Q.jsx)(Or, {
state: n,
settle: r,
receipt: t,
pikpakAccount: l
}) : null,
- s ? /* @__PURE__ */ (0, Q.jsx)(Ar, {
+ s ? /* @__PURE__ */ (0, Q.jsx)(jr, {
state: n,
settle: r,
receipt: t,
username: i,
setUsername: a
}) : null,
- /* @__PURE__ */ (0, Q.jsx)(hr, {
+ /* @__PURE__ */ (0, Q.jsx)(gr, {
receipt: t,
refreshKey: JSON.stringify([
n.media_sources,
@@ -296,8 +296,8 @@ function Er({ initial: e, receipt: t }) {
})
] });
}
-function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(Or), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({
+function Or({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, Z.useState)(e.config), [o, s] = (0, Z.useState)(""), [c, l] = (0, Z.useState)(String(e.config.wait_hours)), [u, d] = (0, Z.useState)(null), [f, p] = (0, Z.useState)(""), [m, h] = (0, Z.useState)(kr), [g, _] = (0, Z.useState)(""), [v, y] = (0, Z.useState)(!1), b = Y(), x = e.media_sources ?? [], S = x.includes("115"), C = x.includes("pikpak"), w = (e) => i.targets[e] ?? "", T = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -326,7 +326,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => W(vr, e), (e) => te(e, t), (e) => _(q(e)));
+ b.run("auto", (e) => W(yr, e), (e) => te(e, t), (e) => _(q(e)));
}, []), /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "download",
title: "云下载",
@@ -341,13 +341,13 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => G(_r, f, "POST", e), (e) => {
+ b.run("save", (e) => G(vr, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? te(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(Or), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(kr), y(!1), _("")), n("已保存配置");
}, (e) => _(q(e)));
},
children: [
@@ -381,7 +381,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: s
}),
S ? /* @__PURE__ */ (0, Q.jsx)(P, {
- label: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ label: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "115",
label: "115 目标目录"
}),
@@ -396,7 +396,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: (e) => T("115", e)
}) : null,
C ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {
- label: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ label: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "pikpak",
label: "PikPak 目标目录"
}),
@@ -409,7 +409,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: (e) => T("pikpak", e)
}), /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, Q.jsx)(ut, { children: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(dt, { children: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "pikpak",
label: "PikPak 根目录对应的媒体目录"
}) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, Q.jsx)(R, {
@@ -440,9 +440,9 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
] }),
b.busy === "auto" ? /* @__PURE__ */ (0, Q.jsx)(V, {
divided: !0,
- children: /* @__PURE__ */ (0, Q.jsx)(_t, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, Q.jsx)(vt, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, Q.jsx)(kr, {
+ u ? /* @__PURE__ */ (0, Q.jsx)(Ar, {
report: u,
detected: f,
suggested: m,
@@ -454,7 +454,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => G(yr, t, "POST", e), (t) => {
+ b.run("folder", (e) => G(br, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -486,7 +486,7 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => G(vr, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));
+ b.run("check", (e) => G(yr, t, "POST", e), (t) => te(t, e), (e) => _(q(e)));
},
disabled: !e.available,
...K(b.busy === "check"),
@@ -501,29 +501,29 @@ function Dr({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var Or = {
+var kr = {
target: null,
root: "",
saved: !1
};
-function kr({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function Ar({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target, o = !!(t || a || n.root || e.permissions.length || e.folder || e.quota);
return !o && !e.problems.length ? null : /* @__PURE__ */ (0, Q.jsxs)(V, {
divided: !0,
- children: [o ? /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [
+ children: [o ? /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [
t ? /* @__PURE__ */ (0, Q.jsx)(j, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
a?.exists ? /* @__PURE__ */ (0, Q.jsx)(j, {
- term: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ term: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "115",
label: "115 目标目录"
}),
children: n.saved ? `已根据媒体库目录填入 ${a.path}` : `根据媒体库目录填入 ${a.path},保存配置后生效`
}) : null,
a && !a.exists ? /* @__PURE__ */ (0, Q.jsxs)(j, {
- term: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ term: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "115",
label: "115 目标目录"
}),
@@ -536,7 +536,7 @@ function kr({ report: e, detected: t, suggested: n, create: r, creating: i }) {
}) : null]
}) : null,
n.root ? /* @__PURE__ */ (0, Q.jsx)(j, {
- term: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ term: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "pikpak",
label: "PikPak 根目录"
}),
@@ -559,7 +559,7 @@ function kr({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
e.quota ? /* @__PURE__ */ (0, Q.jsx)(j, {
- term: /* @__PURE__ */ (0, Q.jsx)(Bt, {
+ term: /* @__PURE__ */ (0, Q.jsx)(Vt, {
source: "115",
label: "115 离线配额"
}),
@@ -568,30 +568,30 @@ function kr({ report: e, detected: t, suggested: n, create: r, creating: i }) {
] }) : null, e.problems.map((e) => /* @__PURE__ */ (0, Q.jsx)(k, { children: e }, e))]
});
}
-function Ar({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+function jr({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
let [a, o] = (0, Z.useState)(""), [s, c] = (0, Z.useState)(!1), [l, u] = (0, Z.useState)(""), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)(""), h = Y(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, Z.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await W(Sr, e.signal);
+ let r = await W(Cr, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(q(t));
}
- r = setTimeout(i, Cr);
+ r = setTimeout(i, wr);
};
- return r = setTimeout(i, Cr), () => {
+ return r = setTimeout(i, wr), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => G(Sr, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => G(Cr, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(q(e)));
}, b = () => {
- h.run("cancel", (e) => G(`${Sr}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => G(`${Cr}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(q(e)));
}, x = (e) => {
@@ -601,11 +601,11 @@ function Ar({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => G(br, i, "POST", e), (e) => {
+ h.run("login", (e) => G(xr, i, "POST", e), (e) => {
t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");
}, (e) => f(q(e)));
}, S = () => {
- h.run("logout", (e) => G(xr, {}, "POST", e), (e) => {
+ h.run("logout", (e) => G(Sr, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(q(e)));
}, C = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
@@ -655,14 +655,14 @@ function Ar({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "pikpak",
title: "PikPak 账号",
- icon: /* @__PURE__ */ (0, Q.jsx)(wr, {}),
+ icon: /* @__PURE__ */ (0, Q.jsx)(Tr, {}),
onSubmit: x,
aside: /* @__PURE__ */ (0, Q.jsx)(H, {
tone: g.logged_in ? "success" : v ? "progress" : T ? "error" : "neutral",
children: g.logged_in ? "已登录" : v ? "等待登录" : T ? "登录未完成" : "待登录"
}),
children: [
- g.logged_in ? /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {
+ g.logged_in ? /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {
term: "账号",
children: g.username || "已登录"
}), g.method === "browser" ? /* @__PURE__ */ (0, Q.jsx)(j, {
@@ -680,7 +680,7 @@ function Ar({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
children: /* @__PURE__ */ (0, Q.jsx)(k, { children: d || h.error })
}) : null,
/* @__PURE__ */ (0, Q.jsx)(M, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, Q.jsx)(_t, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, Q.jsx)(vt, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, Q.jsx)(E, {
variant: "secondary",
onClick: S,
@@ -706,42 +706,42 @@ function Ar({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
});
}
// src/react/settings/ledger-backup-settings.tsx
-var jr = "/api/configuration/ledger-backups", Mr = 1500, Nr = (e) => (/* @__PURE__ */ new Date(e.modified_at * 1e3)).toLocaleString();
-function Pr(e) {
+var Mr = "/api/configuration/ledger-backups", Nr = 1500, Pr = (e) => (/* @__PURE__ */ new Date(e.modified_at * 1e3)).toLocaleString();
+function Fr(e) {
return [e.source === "manual" ? "手动" : `自动 · ${e.purpose}`, J(e.bytes)].join(" · ");
}
-function Fr({ job: e, label: t }) {
+function Ir({ job: e, label: t }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- e.total ? /* @__PURE__ */ (0, Q.jsx)(At, {
+ e.total ? /* @__PURE__ */ (0, Q.jsx)(jt, {
label: t,
value: e.done || 0,
max: e.total
- }) : /* @__PURE__ */ (0, Q.jsx)(_t, { label: t }),
+ }) : /* @__PURE__ */ (0, Q.jsx)(vt, { label: t }),
/* @__PURE__ */ (0, Q.jsx)(N, { children: e.stage || t }),
- /* @__PURE__ */ (0, Q.jsx)(Ut, {})
+ /* @__PURE__ */ (0, Q.jsx)(Wt, {})
]
});
}
-function Ir({ receipt: e }) {
+function Lr({ receipt: e }) {
let [t, n] = (0, Z.useState)(null), [r, i] = (0, Z.useState)(""), a = Y(), o = t?.backup.status === "running", s = t?.restore.status === "running", c = o || s, l = (0, Z.useRef)({
backup: !1,
restore: !1
});
if ((0, Z.useEffect)(() => {
let e = new AbortController();
- return W(jr, e.signal).then(n, (t) => {
+ return W(Mr, e.signal).then(n, (t) => {
e.signal.aborted || i(String(t?.message || t));
}), () => e.abort();
}, []), (0, Z.useEffect)(() => {
if (!c) return;
let e = new AbortController(), t = setTimeout(() => {
- W(jr, e.signal).then(n, () => {
+ W(Mr, e.signal).then(n, () => {
e.signal.aborted || n((e) => e && { ...e });
});
- }, Mr);
+ }, Nr);
return () => {
e.abort(), clearTimeout(t);
};
@@ -754,15 +754,15 @@ function Ir({ receipt: e }) {
id: "ledgerBackups",
guide: "ledger-backups",
title: "账本备份",
- children: /* @__PURE__ */ (0, Q.jsx)(V, { children: r ? /* @__PURE__ */ (0, Q.jsx)(k, { children: r }) : /* @__PURE__ */ (0, Q.jsx)(_t, { label: "正在读取备份列表" }) })
+ children: /* @__PURE__ */ (0, Q.jsx)(V, { children: r ? /* @__PURE__ */ (0, Q.jsx)(k, { children: r }) : /* @__PURE__ */ (0, Q.jsx)(vt, { label: "正在读取备份列表" }) })
});
- let u = () => void a.run("backup", (e) => G(`${jr}/backup`, {}, "POST", e), n), d = (e) => void nn({
+ let u = () => void a.run("backup", (e) => G(`${Mr}/backup`, {}, "POST", e), n), d = (e) => void rn({
title: "从备份恢复账本",
danger: !0,
- body: `将用 ${Nr(e)} 的备份(${Pr(e)})替换当前账本,此后的资料、观看记录与复核结论回到备份时的状态。替换前先把当前账本另存为一份备份;恢复期间不能启动新任务。`,
+ body: `将用 ${Pr(e)} 的备份(${Fr(e)})替换当前账本,此后的资料、观看记录与复核结论回到备份时的状态。替换前先把当前账本另存为一份备份;恢复期间不能启动新任务。`,
confirmLabel: "替换当前账本",
onConfirm: async () => {
- l.current.restore = !0, n(await G(`${jr}/restore`, {
+ l.current.restore = !0, n(await G(`${Mr}/restore`, {
id: e.id,
confirm: !0
}));
@@ -776,11 +776,11 @@ function Ir({ receipt: e }) {
/* @__PURE__ */ (0, Q.jsxs)(V, { children: [
/* @__PURE__ */ (0, Q.jsx)(N, { children: "账本保存全部资料、观看记录与复核结论。手动备份与写入前的自动备份放在一起,保留最近 5 份和 24 小时内的备份。" }),
t.writer ? null : /* @__PURE__ */ (0, Q.jsxs)(N, { children: ["这台电脑不是账本写入端,只能在写入端恢复:", t.writer_reason] }),
- o ? /* @__PURE__ */ (0, Q.jsx)(Fr, {
+ o ? /* @__PURE__ */ (0, Q.jsx)(Ir, {
job: t.backup,
label: "备份进度"
}) : null,
- s ? /* @__PURE__ */ (0, Q.jsx)(Fr, {
+ s ? /* @__PURE__ */ (0, Q.jsx)(Ir, {
job: t.restore,
label: "恢复进度"
}) : null,
@@ -792,8 +792,8 @@ function Ir({ receipt: e }) {
className: "border-t border-separator-border",
"data-ledger-backups": "",
children: /* @__PURE__ */ (0, Q.jsx)(I, { children: t.backups.map((e) => /* @__PURE__ */ (0, Q.jsx)(B, {
- label: Nr(e),
- description: Pr(e),
+ label: Pr(e),
+ description: Fr(e),
children: /* @__PURE__ */ (0, Q.jsx)(E, {
variant: "secondary",
disabled: !t.writer || c,
@@ -815,7 +815,7 @@ function Ir({ receipt: e }) {
});
}
// src/react/settings/library-sharing-settings.tsx
-function Lr({ initial: e, receipt: t }) {
+function Rr({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(null), [o, s] = (0, Z.useState)(!1), [c, l] = (0, Z.useState)(!1), u = (0, Z.useMemo)(() => i ? JSON.stringify(i.data, null, 2) : "", [i]), d = Y(), f = (e) => void d.run("save", (t) => G("/api/configuration/library-sharing", {
enabled: e,
schema: n.schema,
@@ -892,7 +892,7 @@ function Lr({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, Q.jsx)(O, {
summary: "上传数据预览",
defaultOpen: !0,
- children: /* @__PURE__ */ (0, Q.jsx)(Jn, {
+ children: /* @__PURE__ */ (0, Q.jsx)(Yn, {
code: u,
language: "json",
label: "馆藏与口味上传预览",
@@ -945,7 +945,7 @@ function Lr({ initial: e, receipt: t }) {
] });
}
// src/react/settings/remote-reporting-settings.tsx
-function Rr({ value: e, onChange: t, busy: n = !1 }) {
+function zr({ value: e, onChange: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {
label: "发送版本统计与错误诊断(推荐)",
description: "上传版本、系统信息、故障类型、代码位置与发生次数。",
@@ -967,9 +967,9 @@ function Rr({ value: e, onChange: t, busy: n = !1 }) {
})
})] });
}
-function zr({ initial: e, receipt: t }) {
+function Br({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), i = Y();
- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Rr, {
+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(zr, {
value: n,
busy: i.busy === "save",
onChange: (e) => {
@@ -986,16 +986,16 @@ function zr({ initial: e, receipt: t }) {
}) : null] });
}
// src/react/components/animated-number.tsx
-var Br = .6;
-function Vr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {
- let r = Hn(), [i, a] = (0, Z.useState)(e), o = (0, Z.useRef)(e);
+var Vr = .6;
+function Hr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), className: n }) {
+ let r = Un(), [i, a] = (0, Z.useState)(e), o = (0, Z.useRef)(e);
return (0, Z.useEffect)(() => {
if (r || o.current === e) {
o.current = e, a(e);
return;
}
- let t = Yt(o.current, e, {
- duration: Br,
+ let t = Xt(o.current, e, {
+ duration: Vr,
ease: "easeOut",
onUpdate: (e) => {
o.current = e, a(e);
@@ -1008,7 +1008,7 @@ function Vr({ value: e, format: t = (e) => Math.round(e).toLocaleString(), class
});
}
// node_modules/recharts/es6/state/selectors/pieSelectors.js
-function Hr(e, t) {
+function Ur(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -1018,30 +1018,30 @@ function Hr(e, t) {
}
return n;
}
-function Ur(e) {
+function Wr(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Hr(Object(n), !0).forEach(function(t) {
- Wr(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hr(Object(n)).forEach(function(t) {
+ t % 2 ? Ur(Object(n), !0).forEach(function(t) {
+ Gr(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ur(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wr(e, t, n) {
- return (t = Gr(t)) in e ? Object.defineProperty(e, t, {
+function Gr(e, t, n) {
+ return (t = Kr(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Gr(e) {
- var t = Kr(e, "string");
+function Kr(e) {
+ var t = qr(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kr(e, t) {
+function qr(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -1051,20 +1051,20 @@ function Kr(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qr = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), Jr = [], Yr = (e, t, n) => n?.length === 0 ? Jr : n, Xr = oe([
+var Jr = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find((e) => e.id === t)), Yr = [], Xr = (e, t, n) => n?.length === 0 ? Yr : n, Zr = oe([
Te,
- qr,
- Yr
+ Jr,
+ Xr
], (e, t, n) => {
var r = e.chartData;
if (t != null) {
var i = t?.data != null && t.data.length > 0 ? t.data : r;
- if (i && i.length || n == null || (i = n.map((e) => Ur(Ur({}, t.presentationProps), e.props))), i != null) return i;
+ if (i && i.length || n == null || (i = n.map((e) => Wr(Wr({}, t.presentationProps), e.props))), i != null) return i;
}
-}), Zr = oe([
- Xr,
- qr,
- Yr
+}), Qr = oe([
+ Zr,
+ Jr,
+ Xr
], (e, t, n) => {
if (e != null && t != null) return e.map((e, r) => {
var i, a = he(e, t.nameKey, t.name), o = n != null && (i = n[r]) != null && (i = i.props) != null && i.fill ? n[r].props.fill : typeof e == "object" && e && "fill" in e ? e.fill : t.fill;
@@ -1076,42 +1076,42 @@ var qr = oe([De, (e, t) => t], (e, t) => e.filter((e) => e.type === "pie").find(
type: t.legendType
};
});
-}), Qr = oe([
+}), $r = oe([
+ Zr,
+ Jr,
Xr,
- qr,
- Yr,
Ee
], (e, t, n, r) => {
- if (t != null && e != null) return Ci({
+ if (t != null && e != null) return wi({
offset: r,
pieSettings: t,
displayedData: e,
cells: n
});
-}), $r = ["key"], ei = [
+}), ei = ["key"], ti = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], ti = ["id"], ni = ["id"];
-function ri() {
- return ri = Object.assign ? Object.assign.bind() : function(e) {
+], ni = ["id"], ri = ["id"];
+function ii() {
+ return ii = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, ri.apply(null, arguments);
+ }, ii.apply(null, arguments);
}
-function ii(e, t) {
+function ai(e, t) {
if (e == null) return {};
- var n, r, i = ai(e, t);
+ var n, r, i = oi(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ai(e, t) {
+function oi(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1120,7 +1120,7 @@ function ai(e, t) {
}
return n;
}
-function oi(e, t) {
+function si(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -1133,27 +1133,27 @@ function oi(e, t) {
function $(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? oi(Object(n), !0).forEach(function(t) {
- si(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oi(Object(n)).forEach(function(t) {
+ t % 2 ? si(Object(n), !0).forEach(function(t) {
+ ci(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : si(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function si(e, t, n) {
- return (t = ci(t)) in e ? Object.defineProperty(e, t, {
+function ci(e, t, n) {
+ return (t = li(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ci(e) {
- var t = li(e, "string");
+function li(e) {
+ var t = ui(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function li(e, t) {
+function ui(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -1163,12 +1163,12 @@ function li(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ui = S;
-function di(e) {
- var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Zr(t, e.id, n));
+var di = S;
+function fi(e) {
+ var n = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), r = Me((t) => Qr(t, e.id, n));
return r == null ? null : /*#__PURE__*/ Z.createElement(w, { legendPayload: r });
}
-function fi(e) {
+function pi(e) {
if (e != null && typeof e != "boolean" && typeof e != "function") {
if (/*#__PURE__*/ Z.isValidElement(e)) {
var t = e.props?.fill;
@@ -1178,8 +1178,8 @@ function fi(e) {
return typeof n == "string" ? n : void 0;
}
}
-var pi = /*#__PURE__*/ Z.memo((e) => {
- var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = fi(f), m = {
+var mi = /*#__PURE__*/ Z.memo((e) => {
+ var t = e.dataKey, n = e.nameKey, r = e.sectors, i = e.stroke, a = e.strokeWidth, o = e.fill, s = e.name, c = e.hide, l = e.tooltipType, u = e.formatter, d = e.id, f = e.activeShape, p = pi(f), m = {
dataDefinedOnItem: r.map((e) => {
var t = e.tooltipPayload;
return p == null || t == null ? t : t.map((e) => $($({}, e), {}, {
@@ -1204,42 +1204,42 @@ var pi = /*#__PURE__*/ Z.memo((e) => {
}
};
return /*#__PURE__*/ Z.createElement(T, { tooltipEntrySettings: m });
-}), mi = (e, t) => e > t ? "start" : e < t ? "end" : "middle", hi = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), gi = (e, t, n) => {
+}), hi = (e, t) => e > t ? "start" : e < t ? "end" : "middle", gi = (e, t, n) => pe(typeof t == "function" ? t(e) : t, n, n * .8), _i = (e, t, n) => {
var r = t.top, i = t.left, a = t.width, o = t.height, s = fe(a, o);
return {
cx: i + pe(e.cx, a, a / 2),
cy: r + pe(e.cy, o, o / 2),
innerRadius: pe(e.innerRadius, s, 0),
- outerRadius: hi(n, e.outerRadius, s),
+ outerRadius: gi(n, e.outerRadius, s),
maxRadius: e.maxRadius || Math.sqrt(a * a + o * o) / 2
};
-}, _i = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), vi = (e, t) => {
+}, vi = (e, t) => ye(t - e) * Math.min(Math.abs(t - e), 360), yi = (e, t) => {
if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);
if (typeof e == "function") return e(t);
- var n = en("recharts-pie-label-line", typeof e == "boolean" ? "" : e.className);
+ var n = tn("recharts-pie-label-line", typeof e == "boolean" ? "" : e.className);
t.key;
- var r = ii(t, $r);
- return /*#__PURE__*/ Z.createElement(l, ri({}, r, {
+ var r = ai(t, ei);
+ return /*#__PURE__*/ Z.createElement(l, ii({}, r, {
type: "linear",
className: n
}));
-}, yi = (e, t, n) => {
+}, bi = (e, t, n) => {
if (/*#__PURE__*/ Z.isValidElement(e)) return /*#__PURE__*/ Z.cloneElement(e, t);
var r = n;
if (typeof e == "function" && (r = e(t), /*#__PURE__*/ Z.isValidElement(r))) return r;
- var i = en("recharts-pie-label-text", ue(e));
- return /*#__PURE__*/ Z.createElement(ne, ri({}, t, {
+ var i = tn("recharts-pie-label-text", ue(e));
+ return /*#__PURE__*/ Z.createElement(ne, ii({}, t, {
alignmentBaseline: "middle",
className: i
}), r);
};
-function bi(e) {
+function xi(e) {
var t = e.sectors, n = e.props, r = e.showLabels, i = n.label, a = n.labelLine, o = n.dataKey;
if (!r || !i || !t) return null;
var s = Oe(n), c = ke(i), l = ke(a), u = typeof i == "object" && "offsetRadius" in i && typeof i.offsetRadius == "number" && i.offsetRadius || 20, d = t.map((e, t) => {
var n = (e.startAngle + e.endAngle) / 2, r = be(e.cx, e.cy, e.outerRadius + u, n), d = $($($($({}, s), e), {}, { stroke: "none" }, c), {}, {
index: t,
- textAnchor: mi(r.x, e.cx)
+ textAnchor: hi(r.x, e.cx)
}, r), p = $($($($({}, s), e), {}, {
fill: "none",
stroke: e.fill
@@ -1251,20 +1251,20 @@ function bi(e) {
return /*#__PURE__*/ Z.createElement(re, {
zIndex: f.label,
key: `label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`
- }, /*#__PURE__*/ Z.createElement(g, null, a && vi(a, p), yi(i, d, he(e, o))));
+ }, /*#__PURE__*/ Z.createElement(g, null, a && yi(a, p), bi(i, d, he(e, o))));
});
return /*#__PURE__*/ Z.createElement(g, { className: "recharts-pie-labels" }, d);
}
-function xi(e) {
+function Si(e) {
var t = e.sectors, n = e.props, r = e.showLabels, i = n.label;
- return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(bi, {
+ return typeof i == "object" && i && "position" in i ? /*#__PURE__*/ Z.createElement(h, { label: i }) : /*#__PURE__*/ Z.createElement(xi, {
sectors: t,
props: n,
showLabels: r
});
}
-function Si(e) {
- var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = ii(i, ei), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);
+function Ci(e) {
+ var t = e.sectors, n = e.activeShape, r = e.inactiveShape, i = e.allOtherPieProps, a = e.shape, o = e.id, s = e.animationElapsedTime, c = e.isAnimating, l = e.isEntrance, f = Me(we), p = Me(Se), m = Me(Ce), h = i.onMouseEnter, _ = i.onClick, v = i.onMouseLeave, y = ai(i, ti), b = Pe(h, i.dataKey, o), x = Fe(v), S = Ne(_, i.dataKey, o);
return t == null || t.length === 0 ? null : /*#__PURE__*/ Z.createElement(Z.Fragment, null, t.map((e, h) => {
if (e?.startAngle === 0 && e?.endAngle === 0 && t.length !== 1) return null;
var _ = m == null || m === o, v = String(h) === f && (p == null || i.dataKey === p) && _, C = n && v ? n : f ? r : null, w = $($({}, e), {}, {
@@ -1278,7 +1278,7 @@ function Si(e) {
[d]: h,
[u]: o
});
- return /*#__PURE__*/ Z.createElement(g, ri({
+ return /*#__PURE__*/ Z.createElement(g, ii({
key: `sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${h}`,
tabIndex: -1,
className: "recharts-pie-sector"
@@ -1288,13 +1288,13 @@ function Si(e) {
onClick: S(e, h)
}), /*#__PURE__*/ Z.createElement(ee, {
option: C ?? a,
- DefaultShape: ui,
+ DefaultShape: di,
shapeProps: w
}));
}));
}
-function Ci(e) {
- var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = _i(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {
+function wi(e) {
+ var t = e.pieSettings, n = e.displayedData, r = e.cells, i = e.offset, a = t.cornerRadius, o = t.startAngle, s = t.endAngle, c = t.dataKey, l = t.nameKey, u = t.tooltipType, d = Math.abs(t.minAngle), f = vi(o, s), p = Math.abs(f), m = n.length <= 1 ? 0 : t.paddingAngle ?? 0, h = n.filter((e) => he(e, c, 0) !== 0).length, g = (p >= 360 ? h : h - 1) * m, _ = n.reduce((e, t) => {
var n = he(t, c, 0);
return e + (_e(n) ? n : 0);
}, 0), v = d > 0 && _ > 0 && n.some((e) => {
@@ -1304,7 +1304,7 @@ function Ci(e) {
if (_ > 0) {
var x;
b = n.map((e, n) => {
- var s = he(e, c, 0), d = he(e, l, n), p = gi(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;
+ var s = he(e, c, 0), d = he(e, l, n), p = _i(t, i, e), h = (_e(s) ? s : 0) / _, g, b = $($({}, e), r && r[n] && r[n].props), S = b != null && "fill" in b && typeof b.fill == "string" ? b.fill : t.fill;
g = n ? x.endAngle + ye(f) * m * (s === 0 ? 0 : 1) : o;
var C = g + ye(f) * ((s === 0 ? 0 : v) + h * y), w = (g + C) / 2, T = (p.innerRadius + p.outerRadius) / 2, ee = [{
name: d,
@@ -1336,7 +1336,7 @@ function Ci(e) {
}
return b;
}
-function wi(e) {
+function Ti(e) {
var t = e.showLabels, n = e.sectors, r = e.children, i = (0, Z.useMemo)(() => !t || !n ? [] : n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -1355,7 +1355,7 @@ function wi(e) {
})), [n, t]);
return /*#__PURE__*/ Z.createElement(b, { value: t ? i : void 0 }, r);
}
-var Ti = (e, t) => {
+var Ei = (e, t) => {
if (e == null) return [];
var n = [], r = e.find((e) => e.status !== "removed"), i = r ? r.next.startAngle : 0;
return e.forEach((e, r) => {
@@ -1377,11 +1377,11 @@ var Ti = (e, t) => {
}
}), n;
};
-function Ei(t) {
+function Di(t) {
var n = t.props, r = t.previousSectorsRef, i = t.id, a = n.sectors, o = n.activeShape, s = n.inactiveShape, c = n.animationInterpolateFn, l = je(n.onAnimationStart, n.onAnimationEnd), u = l.isAnimating, d = l.handleAnimationStart, f = l.handleAnimationEnd, p = Ie();
if (p == null) return null;
var m = a[0];
- return /*#__PURE__*/ Z.createElement(wi, {
+ return /*#__PURE__*/ Z.createElement(Ti, {
showLabels: !u,
sectors: a
}, /*#__PURE__*/ Z.createElement(e, {
@@ -1398,7 +1398,7 @@ function Ei(t) {
animationInterpolateFn: c,
animationMatchBy: n.animationMatchBy,
layout: p
- }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(Si, {
+ }, (e, t, r) => /*#__PURE__*/ Z.createElement(g, null, /*#__PURE__*/ Z.createElement(Ci, {
sectors: e,
activeShape: o,
inactiveShape: s,
@@ -1408,7 +1408,7 @@ function Ei(t) {
animationElapsedTime: t,
isAnimating: u || t < 1,
isEntrance: r
- }))), /*#__PURE__*/ Z.createElement(xi, {
+ }))), /*#__PURE__*/ Z.createElement(Si, {
showLabels: !u,
sectors: a,
props: n
@@ -1422,11 +1422,11 @@ function Ei(t) {
clockWise: !1
}, n.children));
}
-var Di = {
+var Oi = {
animationBegin: 400,
animationDuration: 1500,
animationEasing: "ease",
- animationInterpolateFn: Ti,
+ animationInterpolateFn: Ei,
animationMatchBy: ve,
cx: "50%",
cy: "50%",
@@ -1444,17 +1444,17 @@ var Di = {
outerRadius: "80%",
paddingAngle: 0,
rootTabIndex: 0,
- shape: ui,
+ shape: di,
startAngle: 0,
stroke: "#fff",
zIndex: f.area
};
-function Oi(e) {
- var n = e.id, r = ii(e, ti), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => Qr(e, n, s)), l = (0, Z.useRef)(null), u = en("recharts-pie", a);
+function ki(e) {
+ var n = e.id, r = ai(e, ni), i = e.hide, a = e.className, o = e.rootTabIndex, s = (0, Z.useMemo)(() => ce(e.children, t), [e.children]), c = Me((e) => $r(e, n, s)), l = (0, Z.useRef)(null), u = tn("recharts-pie", a);
return i || c == null ? (l.current = null, /*#__PURE__*/ Z.createElement(g, {
tabIndex: o,
className: u
- })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(pi, {
+ })) : /*#__PURE__*/ Z.createElement(re, { zIndex: e.zIndex }, /*#__PURE__*/ Z.createElement(mi, {
dataKey: e.dataKey,
nameKey: e.nameKey,
sectors: c,
@@ -1470,14 +1470,14 @@ function Oi(e) {
}), /*#__PURE__*/ Z.createElement(g, {
tabIndex: o,
className: u
- }, /*#__PURE__*/ Z.createElement(Ei, {
+ }, /*#__PURE__*/ Z.createElement(Di, {
props: $($({}, r), {}, { sectors: c }),
previousSectorsRef: l,
id: n
})));
}
-function ki(e) {
- var t = xe(e, Di), n = t.id, r = ii(t, ni), i = Oe(r);
+function Ai(e) {
+ var t = xe(e, Oi), n = t.id, r = ai(t, ri), i = Oe(r);
return /*#__PURE__*/ Z.createElement(x, {
id: n,
type: "pie"
@@ -1505,12 +1505,12 @@ function ki(e) {
cornerRadius: r.cornerRadius,
presentationProps: i,
maxRadius: t.maxRadius
- }), /*#__PURE__*/ Z.createElement(di, ri({}, r, { id: e })), /*#__PURE__*/ Z.createElement(Oi, ri({}, r, { id: e }))));
+ }), /*#__PURE__*/ Z.createElement(fi, ii({}, r, { id: e })), /*#__PURE__*/ Z.createElement(ki, ii({}, r, { id: e }))));
}
-var Ai = ki;
-Ai.displayName = "Pie";
+var ji = Ai;
+ji.displayName = "Pie";
// node_modules/recharts/es6/chart/PieChart.js
-function ji(e, t) {
+function Mi(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -1520,30 +1520,30 @@ function ji(e, t) {
}
return n;
}
-function Mi(e) {
+function Ni(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? ji(Object(n), !0).forEach(function(t) {
- Ni(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ji(Object(n)).forEach(function(t) {
+ t % 2 ? Mi(Object(n), !0).forEach(function(t) {
+ Pi(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Mi(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ni(e, t, n) {
- return (t = Pi(t)) in e ? Object.defineProperty(e, t, {
+function Pi(e, t, n) {
+ return (t = Fi(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pi(e) {
- var t = Fi(e, "string");
+function Fi(e) {
+ var t = Ii(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fi(e, t) {
+function Ii(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -1553,27 +1553,27 @@ function Fi(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Ii = ["item"], Li = Mi(Mi({}, se), {}, {
+var Li = ["item"], Ri = Ni(Ni({}, se), {}, {
layout: "centric",
startAngle: 0,
endAngle: 360
-}), Ri = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {
- var n = xe(e, Li);
+}), zi = /*#__PURE__*/ (0, Z.forwardRef)((e, t) => {
+ var n = xe(e, Ri);
return /*#__PURE__*/ Z.createElement(v, {
chartName: "PieChart",
defaultTooltipEventType: "item",
- validateTooltipEventTypes: Ii,
+ validateTooltipEventTypes: Li,
tooltipPayloadSearcher: ae,
categoricalChartProps: n,
ref: t
});
-}), zi = 5, Bi = 2e3, Vi = 0, Hi = "80%", Ui = 0, Wi = 0, Gi = 0, Ki = 360, qi = [], Ji = (0, Z.createContext)(null);
-function Yi() {
- let e = (0, Z.use)(Ji);
+}), Bi = 5, Vi = 2e3, Hi = 0, Ui = "80%", Wi = 0, Gi = 0, Ki = 0, qi = 360, Ji = [], Yi = (0, Z.createContext)(null);
+function Xi() {
+ let e = (0, Z.use)(Yi);
if (!e) throw Error("Pie chart parts (<Pie />, <Tooltip />, …) must be used within <EvilPieChart />");
return e;
}
-function Xi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {
+function Zi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className: o, chartProps: s, defaultSelectedSector: c = null, onSelectionChange: l, isLoading: u = !1 }) {
let [d, f] = (0, Z.useState)(c), p = (0, Z.useCallback)((e) => {
if (f(e), e === null) {
l?.(null);
@@ -1606,12 +1606,12 @@ function Xi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className
d,
p
]);
- return /* @__PURE__ */ (0, Q.jsx)(Ji, {
+ return /* @__PURE__ */ (0, Q.jsx)(Yi, {
value: m,
children: /* @__PURE__ */ (0, Q.jsxs)(r, {
className: o,
config: e,
- children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(Ri, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(_, { isLoading: u }), /* @__PURE__ */ (0, Q.jsx)(zi, {
id: "evil-charts-pie-chart",
accessibilityLayer: !0,
...s,
@@ -1620,10 +1620,10 @@ function Xi({ config: e, data: t, dataKey: n, nameKey: i, children: a, className
})
});
}
-function Zi({ variant: e = "gradient", innerRadius: t = Vi, outerRadius: n = Hi, cornerRadius: r = Ui, paddingAngle: i = Wi, startAngle: a = Gi, endAngle: o = Ki, isClickable: s = !1, glowingSectors: c = qi, children: l, pieProps: u }) {
- let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Yi(), v = (0, Z.useId)().replace(/:/g, "");
- if (h) return /* @__PURE__ */ (0, Q.jsx)(Ai, {
- data: aa,
+function Qi({ variant: e = "gradient", innerRadius: t = Hi, outerRadius: n = Ui, cornerRadius: r = Wi, paddingAngle: i = Gi, startAngle: a = Ki, endAngle: o = qi, isClickable: s = !1, glowingSectors: c = Ji, children: l, pieProps: u }) {
+ let { config: d, data: f, dataKey: p, nameKey: m, isLoading: h, selectedSector: g, selectSector: _ } = Xi(), v = (0, Z.useId)().replace(/:/g, "");
+ if (h) return /* @__PURE__ */ (0, Q.jsx)(ji, {
+ data: oa,
dataKey: "value",
nameKey: "name",
innerRadius: t,
@@ -1634,13 +1634,13 @@ function Zi({ variant: e = "gradient", innerRadius: t = Vi, outerRadius: n = Hi,
endAngle: o,
strokeWidth: 0,
isAnimationActive: !1,
- shape: (e) => /* @__PURE__ */ (0, Q.jsx)(oa, { ...e })
+ shape: (e) => /* @__PURE__ */ (0, Q.jsx)(sa, { ...e })
});
- let y = na(l, p), b = f.map((e) => ({
+ let y = ra(l, p), b = f.map((e) => ({
...e,
fill: `url(#${v}-colors-${e[m]})`
}));
- return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ai, {
+ return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(ji, {
data: b,
dataKey: p,
nameKey: m,
@@ -1672,18 +1672,18 @@ function Zi({ variant: e = "gradient", innerRadius: t = Vi, outerRadius: n = Hi,
},
...u,
children: y
- }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(ra, {
+ }), /* @__PURE__ */ (0, Q.jsxs)("defs", { children: [/* @__PURE__ */ (0, Q.jsx)(ia, {
id: v,
config: d,
variant: e
- }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)(ia, {
+ }), c.length > 0 && /* @__PURE__ */ (0, Q.jsx)(aa, {
id: v,
glowingSectors: c
})] })] });
}
-var Qi = () => null;
-function $i({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, nameKey: i } = Yi();
+var $i = () => null;
+function ea({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, nameKey: i } = Xi();
return r ? null : /* @__PURE__ */ (0, Q.jsx)(s, {
defaultIndex: n,
content: /* @__PURE__ */ (0, Q.jsx)(c, {
@@ -1694,8 +1694,8 @@ function $i({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function ea({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: o, selectedSector: s, selectSector: c } = Yi();
+function ta({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: o, selectedSector: s, selectSector: c } = Xi();
return /* @__PURE__ */ (0, Q.jsx)(i, {
verticalAlign: n,
align: t,
@@ -1708,13 +1708,13 @@ function ea({ variant: e, align: t = "center", verticalAlign: n = "bottom", isCl
})
});
}
-function ta({ variant: e = "dots" }) {
+function na({ variant: e = "dots" }) {
return /* @__PURE__ */ (0, Q.jsx)(n, { variant: e });
}
-var na = (e, t) => {
+var ra = (e, t) => {
let n = null;
return Z.Children.forEach(e, (e) => {
- if (!(0, Z.isValidElement)(e) || e.type !== Qi) return;
+ if (!(0, Z.isValidElement)(e) || e.type !== $i) return;
let { dataKey: r, labelListProps: i } = e.props;
n = /* @__PURE__ */ (0, Q.jsx)(m, {
dataKey: r ?? t,
@@ -1726,7 +1726,7 @@ var na = (e, t) => {
...i
});
}), n;
-}, ra = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {
+}, ia = ({ id: e, config: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: Object.entries(t).map(([t, n]) => {
let r = de(n);
return /* @__PURE__ */ (0, Q.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -1748,7 +1748,7 @@ var na = (e, t) => {
}, i);
})
}, `${e}-colors-${t}`);
-}) }), ia = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {
+}) }), aa = ({ id: e, glowingSectors: t }) => /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => /* @__PURE__ */ (0, Q.jsxs)("filter", {
id: `${e}-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -1768,12 +1768,12 @@ var na = (e, t) => {
}),
/* @__PURE__ */ (0, Q.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, Q.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}, `${e}-glow-${t}`)) }), aa = Array.from({ length: zi }, (e, t) => ({
+}, `${e}-glow-${t}`)) }), oa = Array.from({ length: Bi }, (e, t) => ({
name: `loading${t}`,
- value: 100 / zi
-})), oa = (e) => {
- let { index: t = 0, ...n } = e, r = t / zi * (Bi / 1e3);
- return /* @__PURE__ */ (0, Q.jsx)(xn.g, {
+ value: 100 / Bi
+})), sa = (e) => {
+ let { index: t = 0, ...n } = e, r = t / Bi * (Vi / 1e3);
+ return /* @__PURE__ */ (0, Q.jsx)(Sn.g, {
initial: { opacity: .15 },
animate: { opacity: [
.15,
@@ -1781,7 +1781,7 @@ var na = (e, t) => {
.15
] },
transition: {
- duration: Bi / 1e3,
+ duration: Vi / 1e3,
delay: r,
repeat: Infinity,
ease: "easeInOut"
@@ -1792,9 +1792,9 @@ var na = (e, t) => {
})
});
};
-Xi.Pie = Zi, Xi.Label = Qi, Xi.Tooltip = $i, Xi.Legend = ea, Xi.Background = ta;
+Zi.Pie = Qi, Zi.Label = $i, Zi.Tooltip = ea, Zi.Legend = ta, Zi.Background = na;
// src/react/settings/storage-charts.tsx
-var sa = {
+var ca = {
database: "var(--color-chart-1)",
backups: "var(--color-chart-2)",
playback: "var(--color-chart-3)",
@@ -1804,7 +1804,7 @@ var sa = {
sources: "var(--color-chart-7)",
records: "var(--color-chart-8)",
tools: "var(--color-chart-9)"
-}, ca = "var(--color-text-tertiary)", la = {
+}, la = "var(--color-text-tertiary)", ua = {
database: "bg-chart-1",
backups: "bg-chart-2",
playback: "bg-chart-3",
@@ -1814,23 +1814,23 @@ var sa = {
sources: "bg-chart-7",
records: "bg-chart-8",
tools: "bg-chart-9"
-}, ua = (e) => J(e);
-function da(e) {
- let t = e.filter((e) => sa[e.key] && e.bytes > 0).map((e) => ({
+}, da = (e) => J(e);
+function fa(e) {
+ let t = e.filter((e) => ca[e.key] && e.bytes > 0).map((e) => ({
key: e.key,
label: e.label,
bytes: e.bytes,
- color: sa[e.key]
- })), n = e.filter((e) => !sa[e.key]).reduce((e, t) => e + t.bytes, 0);
+ color: ca[e.key]
+ })), n = e.filter((e) => !ca[e.key]).reduce((e, t) => e + t.bytes, 0);
return n > 0 ? [...t, {
key: "rest",
label: "其余",
bytes: n,
- color: ca
+ color: la
}] : t;
}
-function fa({ storage: e }) {
- let t = e.usage, n = da(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {
+function pa({ storage: e }) {
+ let t = e.usage, n = fa(t.categories), r = Object.fromEntries(n.map((e) => [e.key, {
label: e.label,
colors: Ae(e.color)
}])), i = n.map((e) => ({
@@ -1842,14 +1842,14 @@ function fa({ storage: e }) {
children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "relative mx-auto size-48 flex-none",
role: "img",
- "aria-label": `数据目录共 ${ua(t.total_bytes)},各类占比`,
- children: [/* @__PURE__ */ (0, Q.jsxs)(Xi, {
+ "aria-label": `数据目录共 ${da(t.total_bytes)},各类占比`,
+ children: [/* @__PURE__ */ (0, Q.jsxs)(Zi, {
data: i,
dataKey: "value",
nameKey: "slice",
config: r,
className: "aspect-square size-48 flex-none",
- children: [/* @__PURE__ */ (0, Q.jsx)(Xi.Pie, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Zi.Pie, {
innerRadius: "68%",
outerRadius: "100%",
paddingAngle: 1,
@@ -1857,13 +1857,13 @@ function fa({ storage: e }) {
}), /* @__PURE__ */ (0, Q.jsx)(o, {
nameKey: "slice",
hideLabel: !0,
- format: ua
+ format: da
})]
}), /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center",
children: [/* @__PURE__ */ (0, Q.jsx)("b", {
className: "text-title-2-medium tabular-nums text-text-primary",
- children: ua(t.total_bytes)
+ children: da(t.total_bytes)
}), /* @__PURE__ */ (0, Q.jsxs)("small", {
className: "text-caption-1-regular tabular-nums text-text-secondary",
children: [t.total_files.toLocaleString(), " 个文件"]
@@ -1879,20 +1879,20 @@ function fa({ storage: e }) {
children: [
/* @__PURE__ */ (0, Q.jsx)("i", {
"aria-hidden": !0,
- className: `${te} ${la[e.key] || "bg-text-tertiary"}`
+ className: `${te} ${ua[e.key] || "bg-text-tertiary"}`
}),
e.label,
/* @__PURE__ */ (0, Q.jsx)("span", {
className: "tabular-nums text-text-primary",
- children: ua(e.bytes)
+ children: da(e.bytes)
})
]
}, e.key))
- }), /* @__PURE__ */ (0, Q.jsx)(pa, { storage: e })]
+ }), /* @__PURE__ */ (0, Q.jsx)(ma, { storage: e })]
})]
});
}
-function pa({ storage: e }) {
+function ma({ storage: e }) {
if (e.total_bytes === null || e.free_bytes === null || !e.usage) return null;
let t = Math.min(e.usage.total_bytes, e.total_bytes), n = e.free_bytes, r = Math.max(0, e.total_bytes - n - t), i = {
peach: {
@@ -1901,7 +1901,7 @@ function pa({ storage: e }) {
},
others: {
label: "其他文件",
- colors: Ae(ca)
+ colors: Ae(la)
},
free: {
label: "可用",
@@ -1914,7 +1914,7 @@ function pa({ storage: e }) {
className: "text-caption-1-regular text-text-secondary",
children: [
"所在磁盘共 ",
- ua(e.total_bytes),
+ da(e.total_bytes),
e.system_drive ? "(系统盘)" : "",
",Peach 占 ",
((t) => {
@@ -1922,7 +1922,7 @@ function pa({ storage: e }) {
return n < .1 ? "不到 0.1%" : `${n.toFixed(+(n < 10))}%`;
})(t),
", 可用 ",
- ua(n)
+ da(n)
]
}), /* @__PURE__ */ (0, Q.jsxs)(p, {
data: [{
@@ -1953,26 +1953,26 @@ function pa({ storage: e }) {
/* @__PURE__ */ (0, Q.jsx)(p.Bar, { dataKey: "free" }),
/* @__PURE__ */ (0, Q.jsx)(o, {
hideLabel: !0,
- format: ua
+ format: da
})
]
})]
});
}
// src/react/settings/storage-settings.tsx
-var ma = "/api/configuration/storage", ha = 1500, ga = 864e5, _a = (e) => e instanceof qe && e.body?.errors?.target || q(e);
-function va(e) {
+var ha = "/api/configuration/storage", ga = 1500, _a = 864e5, va = (e) => e instanceof qe && e.body?.errors?.target || q(e);
+function ya(e) {
if (e.free_bytes === null || e.total_bytes === null) return "未取得";
let t = `${J(e.free_bytes)} 可用,共 ${J(e.total_bytes)}`;
return e.system_drive ? `${t}(系统盘)` : t;
}
-var ya = (e) => e.cleanable && e.reclaimable > 0;
-function ba({ job: e }) {
+var ba = (e) => e.cleanable && e.reclaimable > 0;
+function xa({ job: e }) {
let t = e.files || 0, n = e.expected_files || 0, r = /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
"已统计 ",
- /* @__PURE__ */ (0, Q.jsx)(Vr, { value: t }),
+ /* @__PURE__ */ (0, Q.jsx)(Hr, { value: t }),
" 个文件 · ",
- /* @__PURE__ */ (0, Q.jsx)(Vr, {
+ /* @__PURE__ */ (0, Q.jsx)(Hr, {
value: e.bytes || 0,
format: J
})
@@ -1980,7 +1980,7 @@ function ba({ job: e }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
- children: [n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(At, {
+ children: [n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(jt, {
label: "统计进度",
value: Math.min(t, n * .99),
max: n
@@ -1989,11 +1989,11 @@ function ba({ job: e }) {
",上次共 ",
n.toLocaleString(),
" 个"
- ] })] }) : /* @__PURE__ */ (0, Q.jsx)(_t, { label: "正在统计占用空间" }), n ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: r })]
+ ] })] }) : /* @__PURE__ */ (0, Q.jsx)(vt, { label: "正在统计占用空间" }), n ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: r })]
});
}
-function xa({ category: e, selected: t, disabled: n, onToggle: r }) {
- let i = ya(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;
+function Sa({ category: e, selected: t, disabled: n, onToggle: r }) {
+ let i = ba(e), a = e.cleanable ? e.reclaimable > 0 ? `清理后${e.note}` : "没有可以清理的文件" : `不能清理:${e.note}`;
return /* @__PURE__ */ (0, Q.jsxs)("div", {
"data-category": e.key,
className: "flex min-h-13 w-full items-start gap-3 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
@@ -2012,7 +2012,7 @@ function xa({ category: e, selected: t, disabled: n, onToggle: r }) {
className: "flex items-center gap-2 text-body-regular text-text-primary",
children: [/* @__PURE__ */ (0, Q.jsx)("i", {
"aria-hidden": !0,
- className: `size-2.5 shrink-0 rounded-xs ${la[e.key] || "bg-text-tertiary"}`
+ className: `size-2.5 shrink-0 rounded-xs ${ua[e.key] || "bg-text-tertiary"}`
}), e.label]
}),
/* @__PURE__ */ (0, Q.jsx)("p", {
@@ -2027,7 +2027,7 @@ function xa({ category: e, selected: t, disabled: n, onToggle: r }) {
}),
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex shrink-0 flex-col items-end gap-0.5 text-right",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vr, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Hr, {
value: e.bytes,
format: J,
className: "text-body-regular text-text-primary"
@@ -2039,48 +2039,48 @@ function xa({ category: e, selected: t, disabled: n, onToggle: r }) {
]
});
}
-function Sa({ initial: e, receipt: t }) {
+function Ca({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(""), [o, s] = (0, Z.useState)(/* @__PURE__ */ new Set()), c = Y(), l = n.job.state !== "idle", u = (0, Z.useRef)(l);
(0, Z.useEffect)(() => {
if (!l) return;
let e = new AbortController(), t = setTimeout(() => {
- W(ma, e.signal).then(r, () => {
+ W(ha, e.signal).then(r, () => {
e.signal.aborted || r((e) => ({ ...e }));
});
- }, ha);
+ }, ga);
return () => {
e.abort(), clearTimeout(t);
};
}, [n]), (0, Z.useEffect)(() => {
l ? u.current = !0 : u.current && (u.current = !1, s(/* @__PURE__ */ new Set()), n.job.error || t(n.job.message || "已统计占用空间"));
}, [l]);
- let d = () => void c.run("measure", (e) => G(`${ma}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(ya) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {
+ let d = () => void c.run("measure", (e) => G(`${ha}/measure`, {}, "POST", e), r), f = n.usage, p = f?.categories.filter(ba) ?? [], m = p.filter((e) => o.has(e.key)), h = (e, t) => {
if (!e.length) return;
let n = e.reduce((e, t) => e + t.reclaimable, 0);
- nn({
+ rn({
title: t,
body: `将删除 ${J(n)}:${e.map((e) => `${e.label} ${J(e.reclaimable)}(清理后${e.note})`).join(";")}。`,
confirmLabel: `清理 ${J(n)}`,
danger: e.some((e) => e.key === "backups"),
- onConfirm: async () => r(await G(`${ma}/clean`, { categories: e.map((e) => e.key) }))
+ onConfirm: async () => r(await G(`${ha}/clean`, { categories: e.map((e) => e.key) }))
});
}, g = () => void c.run("relocate", async (e) => {
- let t = (await G(Ct, { initial: n.data_root }, "POST", e)).path;
+ let t = (await G(wt, { initial: n.data_root }, "POST", e)).path;
if (!t) return;
let r = n.usage ? J(n.usage.total_bytes) : "";
- await nn({
+ await rn({
title: "迁移数据目录",
body: `将 ${r} 数据从 ${n.data_root} 移到 ${t}。迁移期间 Peach 会退出,完成后自动重新打开;原位置的数据在新位置核对无误后删除。`,
confirmLabel: "迁移数据目录",
onConfirm: async () => {
try {
- a((await G(`${ma}/relocate`, { target: t })).message);
+ a((await G(`${ha}/relocate`, { target: t })).message);
} catch (e) {
- throw Error(_a(e));
+ throw Error(va(e));
}
}
});
- }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < ga), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {
+ }, () => void 0), _ = n.relocation.last, v = _ && (_.state === "error" || (_.notes?.length ?? 0) > 0 || Date.now() - _.finished_at * 1e3 < _a), y = f?.categories.find((e) => e.key === n.job.category)?.label, b = i || (n.job.state === "cleaning" ? `正在清理${y || ""}…` : n.job.state === "measuring" ? "正在统计占用空间…" : m.length ? `已选 ${m.length} 类,可释放 ${J(m.reduce((e, t) => e + t.reclaimable, 0))}` : f ? `统计于 ${(/* @__PURE__ */ new Date(f.measured_at * 1e3)).toLocaleString()}` : ""), x = l || !!i, S = (e) => (t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
});
@@ -2089,34 +2089,34 @@ function Sa({ initial: e, receipt: t }) {
guide: "storage",
title: "存储空间",
children: [
- /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {
+ /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [/* @__PURE__ */ (0, Q.jsx)(j, {
term: "数据目录",
- children: /* @__PURE__ */ (0, Q.jsx)(Ot, {
+ children: /* @__PURE__ */ (0, Q.jsx)(kt, {
path: n.data_root,
className: "text-body-regular text-text-primary",
onRevealed: t
})
}), /* @__PURE__ */ (0, Q.jsx)(j, {
term: "所在磁盘",
- children: va(n)
+ children: ya(n)
})] }),
/* @__PURE__ */ (0, Q.jsxs)(V, {
divided: !0,
children: [
- n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(ba, { job: n.job }) : null,
+ n.job.state === "measuring" ? /* @__PURE__ */ (0, Q.jsx)(xa, { job: n.job }) : null,
f ? /* @__PURE__ */ (0, Q.jsxs)("div", {
"data-storage-result": "",
- className: Qt({
+ className: $t({
variant: "outlined",
padding: "none",
className: "flex flex-col"
}),
children: [/* @__PURE__ */ (0, Q.jsx)("div", {
className: "border-b border-separator-border p-4",
- children: /* @__PURE__ */ (0, Q.jsx)(fa, { storage: n })
+ children: /* @__PURE__ */ (0, Q.jsx)(pa, { storage: n })
}), /* @__PURE__ */ (0, Q.jsx)("div", {
className: "flex flex-col pl-4",
- children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(xa, {
+ children: f.categories.map((e) => /* @__PURE__ */ (0, Q.jsx)(Sa, {
category: e,
selected: o.has(e.key),
disabled: x,
@@ -2125,13 +2125,9 @@ function Sa({ initial: e, receipt: t }) {
})]
}) : n.job.state === "measuring" ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: "统计后显示各类数据的占用,并可清理缓存与旧备份。" }),
n.relocation.available ? null : /* @__PURE__ */ (0, Q.jsx)(N, { children: n.relocation.message }),
- !n.relocation.available && n.relocation.steps?.length ? /* @__PURE__ */ (0, Q.jsx)("ol", {
- className: "flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary",
- "aria-label": "在宿主机上迁移",
- children: n.relocation.steps.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", { children: [e.text, /* @__PURE__ */ (0, Q.jsx)("code", {
- className: "mt-1 block rounded-md bg-background-tertiary-default px-2 py-1 text-caption-1-regular break-all text-text-primary",
- children: e.command
- })] }, e.command))
+ !n.relocation.available && n.relocation.steps?.length ? /* @__PURE__ */ (0, Q.jsx)(tt, {
+ label: "在宿主机上迁移",
+ steps: n.relocation.steps
}) : null,
n.job.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: n.job.message }) : null,
c.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: c.error }) : null,
@@ -2175,52 +2171,52 @@ function Sa({ initial: e, receipt: t }) {
});
}
// src/react/settings/maintenance-settings.tsx
-var Ca = [
+var wa = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function wa({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
+function Ta({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(r),
+ ...dr(r),
children: [
- e.storage ? /* @__PURE__ */ (0, Q.jsx)(Sa, {
+ e.storage ? /* @__PURE__ */ (0, Q.jsx)(Ca, {
initial: e.storage,
receipt: t
}) : null,
- e.storage ? /* @__PURE__ */ (0, Q.jsx)(Ir, { receipt: t }) : null,
+ e.storage ? /* @__PURE__ */ (0, Q.jsx)(Lr, { receipt: t }) : null,
e.remote_reporting || e.library_sharing ? /* @__PURE__ */ (0, Q.jsxs)(L, {
id: "librarySharing",
guide: "reporting",
title: "数据上传",
- children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(zr, {
+ children: [e.remote_reporting ? /* @__PURE__ */ (0, Q.jsx)(Br, {
initial: e.remote_reporting,
receipt: t
}) : null, e.library_sharing ? /* @__PURE__ */ (0, Q.jsx)("div", {
className: "border-t border-separator-border",
- children: /* @__PURE__ */ (0, Q.jsx)(Lr, {
+ children: /* @__PURE__ */ (0, Q.jsx)(Rr, {
initial: e.library_sharing,
receipt: t
})
}) : null]
}) : null,
- /* @__PURE__ */ (0, Q.jsx)(Da, { facts: e.facts }),
- /* @__PURE__ */ (0, Q.jsx)(Ta, {
+ /* @__PURE__ */ (0, Q.jsx)(Oa, { facts: e.facts }),
+ /* @__PURE__ */ (0, Q.jsx)(Ea, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(Oa, {
+ e.uninstall ? /* @__PURE__ */ (0, Q.jsx)(ka, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function Ta({ reopenTutorial: e }) {
+function Ea({ reopenTutorial: e }) {
return /* @__PURE__ */ (0, Q.jsx)("section", {
"aria-label": "新手教程",
className: "w-full",
- children: /* @__PURE__ */ (0, Q.jsx)(Rt, { children: /* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {
+ children: /* @__PURE__ */ (0, Q.jsx)(zt, { children: /* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {
label: "新手教程",
description: "在所有设备上恢复右上角教程入口,保留已读进度",
children: /* @__PURE__ */ (0, Q.jsx)(E, {
@@ -2231,7 +2227,7 @@ function Ta({ reopenTutorial: e }) {
}) }) })
});
}
-function Ea({ initial: e, receipt: t }) {
+function Da({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e.mode), [i, a] = (0, Z.useState)(e.interval_hours), o = Y(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
@@ -2274,7 +2270,7 @@ function Ea({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: Ca.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ children: wa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
children: t
}, e))
@@ -2294,11 +2290,11 @@ function Ea({ initial: e, receipt: t }) {
]
});
}
-function Da({ facts: e }) {
+function Oa({ facts: e }) {
return /* @__PURE__ */ (0, Q.jsx)(L, {
guide: "facts",
title: "运行信息",
- children: /* @__PURE__ */ (0, Q.jsx)(lt, { children: e.map((e) => /* @__PURE__ */ (0, Q.jsxs)(j, {
+ children: /* @__PURE__ */ (0, Q.jsx)(ut, { children: e.map((e) => /* @__PURE__ */ (0, Q.jsxs)(j, {
term: e.term,
children: [e.value, e.download_url ? /* @__PURE__ */ (0, Q.jsx)(A, {
href: e.download_url,
@@ -2307,8 +2303,8 @@ function Da({ facts: e }) {
}, e.term)) })
});
}
-function Oa({ uninstall: e, receipt: t }) {
- let [n, r] = (0, Z.useState)(!1), [i, a] = (0, Z.useState)(""), o = () => void nn({
+function ka({ uninstall: e, receipt: t }) {
+ let [n, r] = (0, Z.useState)(!1), [i, a] = (0, Z.useState)(""), o = () => void rn({
title: "卸载 Peach",
danger: !0,
body: n ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
@@ -2341,7 +2337,7 @@ function Oa({ uninstall: e, receipt: t }) {
divided: !0,
children: /* @__PURE__ */ (0, Q.jsx)(O, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, Q.jsx)(Ot, {
+ children: c.map((e) => /* @__PURE__ */ (0, Q.jsx)(kt, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
@@ -2364,30 +2360,30 @@ function Oa({ uninstall: e, receipt: t }) {
});
}
// src/react/settings/release-updates.tsx
-var ka = /* @__PURE__ */ new Set([
+var Aa = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), Aa = [
+]), ja = [
65,
75,
90
-], ja = 120, Ma = "https://github.com/peach-mitao/peach/releases";
-function Na({ initial: e, initialJob: t }) {
+], Ma = 120, Na = "https://github.com/peach-mitao/peach/releases";
+function Pa({ initial: e, initialJob: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = ka.has(i.state);
+ }), [o, s] = (0, Z.useState)(""), c = Y(), l = (0, Z.useRef)(!1), u = (0, Z.useRef)(!0), d = Aa.has(i.state);
(0, Z.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
let f = async () => {
let e = await G("/api/configuration/update-restart", {});
u.current && a(e);
- }, p = () => void nn({
+ }, p = () => void rn({
title: "更新已准备好",
body: `Peach ${i.version || ""} 将在重启后安装。`,
confirmLabel: "立即重启",
@@ -2397,7 +2393,7 @@ function Na({ initial: e, initialJob: t }) {
(0, Z.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, Z.useEffect)(() => {
- let e = new AbortController(), t = ka.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = Aa.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await W("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -2410,9 +2406,9 @@ function Na({ initial: e, initialJob: t }) {
let n = await W("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= ja && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= Ma && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < ja && (n = setTimeout(c, t));
+ !e.signal.aborted && o < Ma && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -2435,7 +2431,7 @@ function Na({ initial: e, initialJob: t }) {
children: g || n.state === "error" || i.state === "error" ? "检查未完成" : d ? "准备更新中" : i.state === "ready" ? "可安装" : n.state === "available" ? "有可用更新" : n.state === "unchecked" ? "尚未检查" : "检查完成"
}),
children: [
- /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [
+ /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [
/* @__PURE__ */ (0, Q.jsx)(j, {
term: "当前版本",
children: n.current_version
@@ -2470,15 +2466,19 @@ function Na({ initial: e, initialJob: t }) {
role: "status",
children: n.message
}),
+ n.state === "available" && !g && n.steps?.length ? /* @__PURE__ */ (0, Q.jsx)(tt, {
+ label: "在宿主机上更新",
+ steps: n.steps
+ }) : null,
i.state === "error" ? /* @__PURE__ */ (0, Q.jsx)(k, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, Q.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, Q.jsx)(At, {
+ /* @__PURE__ */ (0, Q.jsx)(jt, {
label: "更新准备进度",
value: i.progress,
- stops: Aa
+ stops: ja
}),
/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
/* @__PURE__ */ (0, Q.jsx)(N, { children: _ })
@@ -2499,7 +2499,7 @@ function Na({ initial: e, initialJob: t }) {
children: "GitHub"
}),
/* @__PURE__ */ (0, Q.jsx)(A, {
- href: n.release_url || Ma,
+ href: n.release_url || Na,
children: "查看发布页"
})
]
@@ -2533,7 +2533,7 @@ function Na({ initial: e, initialJob: t }) {
});
}
// src/react/settings/upgrade-repairs.tsx
-var Pa = {
+var Fa = {
pending: "等待修复",
running: "正在修复",
failed: "需要重试",
@@ -2541,8 +2541,8 @@ var Pa = {
complete: "已完成",
unavailable: "当前部署未启用"
};
-function Fa() {
- let { snapshot: e } = zn(), [t, n] = (0, Z.useState)(null), r = Y();
+function Ia() {
+ let { snapshot: e } = Bn(), [t, n] = (0, Z.useState)(null), r = Y();
(0, Z.useEffect)(() => n(null), [e]);
let i = t ?? e?.repairs, a = i?.state || "pending", o = i?.items.reduce((e, t) => e + (t.pending || 0), 0) || 0, s = i?.items.reduce((e, t) => e + (t.failed || 0), 0) || 0, c = i?.items.reduce((e, t) => e + (t.review_count || 0), 0) || 0;
return /* @__PURE__ */ (0, Q.jsxs)(L, {
@@ -2552,27 +2552,27 @@ function Fa() {
tone: a === "failed" ? "error" : a === "running" ? "progress" : a === "review" ? "warning" : a === "complete" ? "success" : "neutral",
children: /* @__PURE__ */ (0, Q.jsx)("span", {
"data-copy-key": `upgradeRepairs.${a}.status`,
- children: Pa[a] || "未取得"
+ children: Fa[a] || "未取得"
}, a)
}),
children: [
/* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(N, { children: "升级后自动修正资料、更新缓存。" }) }),
- /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [
+ /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [
/* @__PURE__ */ (0, Q.jsx)(j, {
term: "待完成",
- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Vr, { value: o }), " 项"] })
+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Hr, { value: o }), " 项"] })
}),
/* @__PURE__ */ (0, Q.jsx)(j, {
term: "失败",
- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Vr, { value: s }), " 项"] })
+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Hr, { value: s }), " 项"] })
}),
/* @__PURE__ */ (0, Q.jsx)(j, {
term: "待复核",
- children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Vr, { value: c }), " 项"] })
+ children: /* @__PURE__ */ (0, Q.jsxs)("span", { children: [/* @__PURE__ */ (0, Q.jsx)(Hr, { value: c }), " 项"] })
})
] }),
i?.message || r.error ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: r.error || i?.message }) }) : null,
- a === "running" ? /* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "资料与预览正在后台补全。" }), /* @__PURE__ */ (0, Q.jsx)(Ut, {})] }) : null,
+ a === "running" ? /* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "资料与预览正在后台补全。" }), /* @__PURE__ */ (0, Q.jsx)(Wt, {})] }) : null,
/* @__PURE__ */ (0, Q.jsx)(M, {
status: c ? /* @__PURE__ */ (0, Q.jsx)(A, {
href: "/api/configuration/upgrade-repairs/review",
@@ -2592,27 +2592,27 @@ function Fa() {
});
}
// src/react/settings/general-settings.tsx
-function Ia({ data: e, receipt: t, panel: n }) {
+function La({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
+ ...dr(n),
children: [
- e.updates ? /* @__PURE__ */ (0, Q.jsx)(Na, {
+ e.updates ? /* @__PURE__ */ (0, Q.jsx)(Pa, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, Q.jsx)(Fa, {}),
- e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(Ea, {
+ /* @__PURE__ */ (0, Q.jsx)(Ia, {}),
+ e.automatic_updates ? /* @__PURE__ */ (0, Q.jsx)(Da, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.startup ? /* @__PURE__ */ (0, Q.jsx)(La, {
+ e.startup ? /* @__PURE__ */ (0, Q.jsx)(Ra, {
startup: e.startup,
receipt: t
}) : null
]
});
}
-function La({ startup: e, receipt: t }) {
+function Ra({ startup: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e.enabled), [i, a] = (0, Z.useState)(e.silent), [o, s] = (0, Z.useState)(e.desktop), c = Y(), l = e.available && !e.desktop_message;
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "startup",
@@ -2670,7 +2670,7 @@ function La({ startup: e, receipt: t }) {
});
}
// src/react/restart-redirect.ts
-var Ra = 8e3, za = [
+var za = 8e3, Ba = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -2689,12 +2689,12 @@ var Ra = 8e3, za = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Ba = [
+], Va = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Va() {
+function Ha() {
return /* @__PURE__ */ (0, Q.jsx)("div", {
className: "@container flex flex-col gap-3",
children: /* @__PURE__ */ (0, Q.jsxs)(O, {
@@ -2709,14 +2709,14 @@ function Va() {
/* @__PURE__ */ (0, Q.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: za.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {
+ children: Ba.map((e) => /* @__PURE__ */ (0, Q.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, Q.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, Q.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Ba.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {
+ children: Va.map(([t, n]) => /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, Q.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -2746,15 +2746,15 @@ function Va() {
});
}
// src/react/settings/cloud-proxy-settings.tsx
-var Ha = "/api/configuration/cloud-proxies", Ua = [
+var Ua = "/api/configuration/cloud-proxies", Wa = [
["direct", "直连"],
["system", "跟随系统"],
["http", "HTTP 代理"],
["socks5", "SOCKS5 代理"]
];
-function Wa({ receipt: e }) {
+function Ga({ receipt: e }) {
let [t, n] = (0, Z.useState)(null), [r, i] = (0, Z.useState)(!0), a = (0, Z.useRef)(/* @__PURE__ */ new Set()), o = (0, Z.useRef)(/* @__PURE__ */ new Set()), [s, c] = (0, Z.useState)(!1), l = (0, Z.useRef)(() => void 0), u = Y(), d = () => {
- o.current.size || u.run("refresh", (e) => W(Ha, e), (e) => {
+ o.current.size || u.run("refresh", (e) => W(Ua, e), (e) => {
a.current.clear(), n(e), i(!1);
}, (e) => {
i(!1), u.setError(e instanceof Error ? e.message : "无法读取网盘代理");
@@ -2769,14 +2769,14 @@ function Wa({ receipt: e }) {
}, []), (0, Z.useEffect)(() => {
if (!t) return;
let e = (e) => e.mode === "http" || e.mode === "socks5";
- kn("cloudProxy", {
+ An("cloudProxy", {
configured: t.configured !== !1,
unlinked: t.unlinked?.length ?? 0,
accounts: t.accounts.map((t) => [e(t.data), e(t.api)])
});
- }, [t]), r ? /* @__PURE__ */ (0, Q.jsx)(Ft, {
+ }, [t]), r ? /* @__PURE__ */ (0, Q.jsx)(It, {
label: "正在读取网盘代理",
- html: $t
+ html: en
}) : /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "cloud-proxy",
title: "CloudDrive 代理",
@@ -2789,26 +2789,26 @@ function Wa({ receipt: e }) {
children: [
u.error,
" ",
- /* @__PURE__ */ (0, Q.jsx)(gt, {
+ /* @__PURE__ */ (0, Q.jsx)(_t, {
href: "/settings/downloads",
size: "small",
children: "下载设置"
})
]
}) : null,
- t?.configured === !1 ? /* @__PURE__ */ (0, Q.jsxs)(N, { children: ["填写 CloudDrive2 地址和 API 令牌后,在这里设置各网盘账号的代理。 ", /* @__PURE__ */ (0, Q.jsx)(gt, {
+ t?.configured === !1 ? /* @__PURE__ */ (0, Q.jsxs)(N, { children: ["填写 CloudDrive2 地址和 API 令牌后,在这里设置各网盘账号的代理。 ", /* @__PURE__ */ (0, Q.jsx)(_t, {
href: "/settings/downloads",
size: "small",
children: "下载设置"
})] }) : t?.accounts.length === 0 && !t.unlinked?.length ? /* @__PURE__ */ (0, Q.jsx)(N, { children: "还没有使用 CloudDrive 的媒体库。" }) : null,
t?.unlinked?.map((e) => /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, Q.jsx)(ut, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, Q.jsx)(dt, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "inline-flex items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: rr(e.location) }), e.name]
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: ir(e.location) }), e.name]
}) }), /* @__PURE__ */ (0, Q.jsx)(N, { children: "尚未匹配 CloudDrive 账号" })]
}, e.root)),
- t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(Ga, {
+ t?.accounts.map((t) => /* @__PURE__ */ (0, Q.jsx)(Ka, {
initial: t,
receipt: e,
onDirty: () => a.current.add(t.id),
@@ -2832,7 +2832,7 @@ function Wa({ receipt: e }) {
}) })]
});
}
-function Ga({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {
+function Ka({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {
let [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)([]), l = a.libraries?.map((e) => e.name).join("、") || a.name, u = Y(), d = (e, t) => {
o((n) => ({
...n,
@@ -2842,7 +2842,7 @@ function Ga({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {
return /* @__PURE__ */ (0, Q.jsxs)("form", {
"aria-label": `${l} 代理`,
onSubmit: (e) => {
- e.preventDefault(), i(!0), u.run("save", (e) => G(Ha, {
+ e.preventDefault(), i(!0), u.run("save", (e) => G(Ua, {
id: a.id,
revision: a.revision,
...s.includes("api") ? { api: a.api } : {},
@@ -2853,22 +2853,22 @@ function Ga({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {
},
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, Q.jsx)(ut, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {
+ /* @__PURE__ */ (0, Q.jsx)(dt, { children: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "inline-flex items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: rr(a.libraries?.[0]?.location || (a.cloud === "115open" ? "115" : a.cloud.toLowerCase())) }), l]
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: ir(a.libraries?.[0]?.location || (a.cloud === "115open" ? "115" : a.cloud.toLowerCase())) }), l]
}) }),
/* @__PURE__ */ (0, Q.jsxs)(N, { children: [
a.name,
" · ",
a.path
] }),
- /* @__PURE__ */ (0, Q.jsx)(Ka, {
+ /* @__PURE__ */ (0, Q.jsx)(qa, {
label: "数据代理",
value: a.data,
disabled: !a.writable || !!u.busy,
onChange: (e) => d("data", e)
}),
- /* @__PURE__ */ (0, Q.jsx)(Ka, {
+ /* @__PURE__ */ (0, Q.jsx)(qa, {
label: "API 代理",
value: a.api,
disabled: !a.writable || !!u.busy,
@@ -2892,12 +2892,12 @@ function Ga({ initial: e, receipt: t, onDirty: n, onSaved: r, onSaving: i }) {
]
});
}
-function Ka({ label: e, value: t, disabled: n, onChange: r }) {
+function qa({ label: e, value: t, disabled: n, onChange: r }) {
let i = t.mode === "http" || t.mode === "socks5";
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, Q.jsx)(ut, { children: e }),
+ /* @__PURE__ */ (0, Q.jsx)(dt, { children: e }),
/* @__PURE__ */ (0, Q.jsxs)(R, {
"aria-label": e,
selectedKey: t.mode,
@@ -2911,7 +2911,7 @@ function Ka({ label: e, value: t, disabled: n, onChange: r }) {
children: [t.mode === "unknown" ? /* @__PURE__ */ (0, Q.jsx)(z, {
id: "unknown",
children: "无法识别的代理类型"
- }) : null, Ua.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ }) : null, Wa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
children: t
}, e))]
@@ -2979,7 +2979,7 @@ function Ka({ label: e, value: t, disabled: n, onChange: r }) {
});
}
// src/react/settings/library-icon-picker.tsx
-var qa = [
+var Ja = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -3023,13 +3023,13 @@ var qa = [
["star", "收藏"],
["tags", "主题"]
];
-function Ja(e) {
- let t = e === "local" ? "" : xt[e];
+function Ya(e) {
+ let t = e === "local" ? "" : St[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var Ya = "auto";
-function Xa({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = Ja(n);
+var Xa = "auto";
+function Za({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), [s, c] = (0, Z.useState)(e), [l, u] = Ya(n);
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(E, {
ref: i,
variant: "secondary",
@@ -3043,7 +3043,7 @@ function Xa({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, Q.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: e || l }), ((e) => e && qa.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: e || l }), ((e) => e && Ja.find(([t]) => t === e)?.[1] || u)(e)]
})
}), /* @__PURE__ */ (0, Q.jsx)(ze, {
triggerRef: i,
@@ -3051,7 +3051,7 @@ function Xa({ value: e, label: t, kind: n = "local", onChange: r }) {
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: St,
+ className: Ct,
children: /* @__PURE__ */ (0, Q.jsxs)(Ue, {
"aria-label": `${t}可选图标`,
className: "flex w-72 flex-col gap-3 outline-none",
@@ -3063,15 +3063,15 @@ function Xa({ value: e, label: t, kind: n = "local", onChange: r }) {
}),
/* @__PURE__ */ (0, Q.jsx)(We, {
"aria-label": "可选图标",
- value: s || Ya,
- onChange: (e) => c(e === Ya ? "" : e),
+ value: s || Xa,
+ onChange: (e) => c(e === Xa ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: qa.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {
- value: e || Ya,
+ children: Ja.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {
+ value: e || Xa,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, Q.jsx)(Vt, { mark: e || l })
- }, e || Ya))
+ children: /* @__PURE__ */ (0, Q.jsx)(Ht, { mark: e || l })
+ }, e || Xa))
}),
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -3092,19 +3092,19 @@ function Xa({ value: e, label: t, kind: n = "local", onChange: r }) {
})] });
}
// src/react/settings/library-policy-settings.tsx
-var Za = [
+var Qa = [
["probe", "读取视频信息"],
["metadata", "联网补资料"],
["cover", "联网补封面"],
["people", "联网补人物图片"],
["preview", "生成九宫格预览"]
-], Qa = [
+], $a = [
"probe",
"metadata",
"cover",
"people",
"preview"
-], $a = [
+], eo = [
[
"auto",
"自动补全",
@@ -3121,11 +3121,11 @@ var Za = [
"逐项选择要做的步骤"
]
];
-function eo() {
+function to() {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
"data-policy-legend": "",
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: Dt }), /* @__PURE__ */ (0, Q.jsxs)(O, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: Ot }), /* @__PURE__ */ (0, Q.jsxs)(O, {
summary: "三种处理方式对比",
children: [/* @__PURE__ */ (0, Q.jsxs)("table", {
"data-policy-matrix": "",
@@ -3133,10 +3133,10 @@ function eo() {
children: [/* @__PURE__ */ (0, Q.jsx)("thead", { children: /* @__PURE__ */ (0, Q.jsxs)("tr", { children: [/* @__PURE__ */ (0, Q.jsx)("th", {
scope: "col",
children: /* @__PURE__ */ (0, Q.jsx)(He, { children: "步骤" })
- }), wt.map((e) => /* @__PURE__ */ (0, Q.jsx)("th", {
+ }), Tt.map((e) => /* @__PURE__ */ (0, Q.jsx)("th", {
scope: "col",
children: e
- }, e))] }) }), /* @__PURE__ */ (0, Q.jsx)("tbody", { children: Et.map(([e, ...t]) => /* @__PURE__ */ (0, Q.jsxs)("tr", { children: [/* @__PURE__ */ (0, Q.jsx)("th", {
+ }, e))] }) }), /* @__PURE__ */ (0, Q.jsx)("tbody", { children: Dt.map(([e, ...t]) => /* @__PURE__ */ (0, Q.jsxs)("tr", { children: [/* @__PURE__ */ (0, Q.jsx)("th", {
scope: "row",
children: e
}), t.map((e, t) => /* @__PURE__ */ (0, Q.jsx)("td", {
@@ -3148,13 +3148,13 @@ function eo() {
"aria-label": "不做",
children: "—"
}) : e
- }, wt[t]))] }, e)) })]
- }), /* @__PURE__ */ (0, Q.jsx)(N, { children: Tt })]
+ }, Tt[t]))] }, e)) })]
+ }), /* @__PURE__ */ (0, Q.jsx)(N, { children: Et })]
})]
});
}
-function to({ name: e, value: t, onChange: n }) {
- return /* @__PURE__ */ (0, Q.jsx)(Lt, {
+function no({ name: e, value: t, onChange: n }) {
+ return /* @__PURE__ */ (0, Q.jsx)(Rt, {
"data-guide-target": "library-policy",
className: "w-full",
"aria-label": `${e} 处理方式`,
@@ -3162,10 +3162,10 @@ function to({ name: e, value: t, onChange: n }) {
prefix: "处理方式",
renderValue: /* @__PURE__ */ (0, Q.jsx)("span", {
className: "truncate",
- children: $a.find(([e]) => e === t)?.[1]
+ children: eo.find(([e]) => e === t)?.[1]
}),
onSelectionChange: (e) => n(String(e)),
- children: $a.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ children: eo.map(([e, t, n]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
textValue: t,
children: /* @__PURE__ */ (0, Q.jsxs)("span", {
@@ -3178,15 +3178,15 @@ function to({ name: e, value: t, onChange: n }) {
}, e))
});
}
-function no({ name: e, value: t, onChange: n }) {
+function ro({ name: e, value: t, onChange: n }) {
return /* @__PURE__ */ (0, Q.jsx)(O, {
defaultOpen: !0,
- summary: `${e} 的处理步骤(${t.length}/${Za.length})`,
+ summary: `${e} 的处理步骤(${t.length}/${Qa.length})`,
children: /* @__PURE__ */ (0, Q.jsx)("div", {
className: "flex flex-wrap gap-x-6 gap-y-2",
role: "group",
"aria-label": `${e} 处理步骤`,
- children: Za.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {
+ children: Qa.map(([e, r]) => /* @__PURE__ */ (0, Q.jsx)(D, {
isSelected: t.includes(e),
onChange: (r) => n(r ? [...t, e] : t.filter((t) => t !== e)),
children: r
@@ -3194,9 +3194,9 @@ function no({ name: e, value: t, onChange: n }) {
})
});
}
-function ro({ id: e, name: t, value: n, onChange: r }) {
+function io({ id: e, name: t, value: n, onChange: r }) {
let i = (0, Z.useRef)(null), [a, o] = (0, Z.useState)(!1), s = Ke.find(([e]) => e === n)?.[1] || "无颜色", c = (t) => {
- r(t), wn(e, t), o(!1);
+ r(t), Tn(e, t), o(!1);
};
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsxs)("button", {
ref: i,
@@ -3227,7 +3227,7 @@ function ro({ id: e, name: t, value: n, onChange: r }) {
/* @__PURE__ */ (0, Q.jsx)("span", { children: s })
]
}), /* @__PURE__ */ (0, Q.jsx)(Be, {
- getContainer: () => Sn(i.current),
+ getContainer: () => Cn(i.current),
children: /* @__PURE__ */ (0, Q.jsx)(ze, {
triggerRef: i,
isOpen: a,
@@ -3235,7 +3235,7 @@ function ro({ id: e, name: t, value: n, onChange: r }) {
placement: "bottom start",
offset: 8,
containerPadding: 12,
- className: St,
+ className: Ct,
children: /* @__PURE__ */ (0, Q.jsxs)(Ue, {
"aria-label": `${t || "未命名媒体库"} 来源色`,
className: "outline-none",
@@ -3277,8 +3277,8 @@ function ro({ id: e, name: t, value: n, onChange: r }) {
})] });
}
// src/react/settings/push-discovery-settings.tsx
-var io = "/api/configuration/push-discovery", ao = "/api/configuration/push-discovery/secret";
-function oo({ initial: e, receipt: t }) {
+var ao = "/api/configuration/push-discovery", oo = "/api/configuration/push-discovery/secret";
+function so({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.prefixes), [o, s] = (0, Z.useState)(""), c = Y(), l = n.media_roots, [u, d] = (0, Z.useState)(e), f = (e, n) => {
r(e), d(e), a(e.prefixes), s(""), t(n);
}, p = (e, t) => a((n) => n.map((n, r) => r === e ? {
@@ -3292,9 +3292,9 @@ function oo({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => G(io, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));
+ c.run("save", (e) => G(ao, t, "POST", e), (e) => f(e, "已保存配置"), (e) => s(q(e)));
}, h = () => {
- c.run("secret", (e) => G(ao, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));
+ c.run("secret", (e) => G(oo, {}, "POST", e), (e) => f(e, "已更换共享密钥"), (e) => s(q(e)));
}, g = `已入库 ${u.queue.ingested} 个文件` + (u.queue.failed ? `,${u.queue.failed} 个入库失败` : "") + (u.queue.pending ? `,队列里还有 ${u.queue.pending} 条` : ""), _ = u.local_running ? `正在监视 ${u.local_roots.join("、")}` : u.local_message || "没有运行";
return /* @__PURE__ */ (0, Q.jsxs)(L, {
id: "pushDiscovery",
@@ -3371,7 +3371,7 @@ function oo({ initial: e, receipt: t }) {
className: "flex flex-col gap-3",
children: /* @__PURE__ */ (0, Q.jsxs)(O, {
summary: "查看配置",
- children: [/* @__PURE__ */ (0, Q.jsx)(Jn, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Yn, {
code: u.config_toml,
language: "toml",
label: "CloudDrive2 配置",
@@ -3387,7 +3387,7 @@ function oo({ initial: e, receipt: t }) {
children: /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, Q.jsx)(ut, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, Q.jsx)(dt, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, Q.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -3404,7 +3404,7 @@ function oo({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => p(t, { prefix: e })
}),
- /* @__PURE__ */ (0, Q.jsx)(Lt, {
+ /* @__PURE__ */ (0, Q.jsx)(Rt, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
prefix: "对应目录",
selectedKey: e.root,
@@ -3419,7 +3419,7 @@ function oo({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, Q.jsx)(E, {
variant: "danger",
iconOnly: !0,
- leadingIcon: vt,
+ leadingIcon: yt,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -3457,34 +3457,34 @@ function oo({ initial: e, receipt: t }) {
});
}
// src/react/settings/media-settings.tsx
-async function so(e) {
+async function co(e) {
let t;
try {
- t = await pn();
+ t = await mn();
} catch {
return !0;
}
- if (!Tn(t)) return !0;
- let { confirmed: n } = await nn({
+ if (!En(t)) return !0;
+ let { confirmed: n } = await rn({
title: "扫描与采集正在进行",
- body: Mn(t, e),
+ body: Nn(t, e),
confirmLabel: "仍然保存"
});
return n;
}
-var co = (e) => Qn.find(([t]) => t === e)?.[1] ?? e, lo = [...Qn, ["smb", "SMB 共享"]], uo = (e) => e.library_icon || Ja(e.transport === "smb" ? "smb" : e.location)[0], fo = async (e) => (await G(Ct, { initial: e })).path, po = (e) => ({
+var lo = (e) => $n.find(([t]) => t === e)?.[1] ?? e, uo = [...$n, ["smb", "SMB 共享"]], fo = (e) => e.library_icon || Ya(e.transport === "smb" ? "smb" : e.location)[0], po = async (e) => (await G(wt, { initial: e })).path, mo = (e) => ({
library_id: e.library_id,
library: e.library,
library_icon: e.library_icon,
library_color: e.library_color,
library_policy: e.library_policy,
library_stages: e.library_stages
-}), mo = (e) => e.library_stages ? Qa.filter((t) => e.library_stages.split(",").includes(t)) : [], ho = (e = "") => ({
+}), ho = (e) => e.library_stages ? $a.filter((t) => e.library_stages.split(",").includes(t)) : [], go = (e = "") => ({
path: e,
transport: e.startsWith("smb://") ? "smb" : "filesystem",
location: "local",
root: "",
- library_id: On(),
+ library_id: kn(),
library: "",
library_icon: "",
library_color: "",
@@ -3492,8 +3492,8 @@ var co = (e) => Qn.find(([t]) => t === e)?.[1] ?? e, lo = [...Qn, ["smb", "SMB
library_stages: "",
cost: "free"
});
-function go(e) {
- let t = e.media_sources?.filter((e) => Qn.some(([t]) => t === e.location));
+function _o(e) {
+ let t = e.media_sources?.filter((e) => $n.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
transport: e.transport === "smb" || e.path.startsWith("smb://") ? "smb" : "filesystem",
smb_username: e.smb_username,
@@ -3509,24 +3509,24 @@ function go(e) {
library_policy: e.library_policy || "auto",
library_stages: e.library_stages || "",
root_id: e.root_id,
- library_id: e.library_id || On(),
- cost: e.cost ?? Rn(e.location)
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => ho(e));
+ library_id: e.library_id || kn(),
+ cost: e.cost ?? zn(e.location)
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => go(e));
}
-var _o = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;
-function vo({ data: e, receipt: t, panel: n }) {
- let r = !!e.media_sources?.some((e) => nr(e.location));
+var vo = (e) => !(e instanceof qe) || e.status !== 400 ? null : e.body?.errors ?? null;
+function yo({ data: e, receipt: t, panel: n }) {
+ let r = !!e.media_sources?.some((e) => rr(e.location));
return (0, Z.useEffect)(() => {
if (e.editable) {
let t = /* @__PURE__ */ new Map();
- for (let n of go(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);
- kn("media", {
+ for (let n of _o(e)) t.set(n.library_id, (t.get(n.library_id) ?? 0) + 1);
+ An("media", {
folders: [...t.values()],
cloud: r
});
}
let t = e.push_discovery;
- t && kn("discovery", {
+ t && An("discovery", {
enabled: t.enabled,
watchLocal: t.watch_local,
cloud: t.cloud,
@@ -3534,9 +3534,9 @@ function vo({ data: e, receipt: t, panel: n }) {
prefixes: t.prefixes.length
});
}, [e, r]), /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
+ ...dr(n),
children: [
- e.editable ? /* @__PURE__ */ (0, Q.jsx)(yo, {
+ e.editable ? /* @__PURE__ */ (0, Q.jsx)(bo, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, Q.jsx)(F, {
@@ -3544,23 +3544,23 @@ function vo({ data: e, receipt: t, panel: n }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(xo, { data: e }),
- r ? /* @__PURE__ */ (0, Q.jsx)(Wa, { receipt: t }) : null,
- e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)(oo, {
+ e.editable ? null : /* @__PURE__ */ (0, Q.jsx)(So, { data: e }),
+ r ? /* @__PURE__ */ (0, Q.jsx)(Ga, { receipt: t }) : null,
+ e.push_discovery ? /* @__PURE__ */ (0, Q.jsx)(so, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function yo({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = ir({
- initial: () => go(e),
- blank: () => ho(),
- pickFolder: fo,
+function bo({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = ar({
+ initial: () => _o(e),
+ blank: () => go(),
+ pickFolder: po,
describe: q
}), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)(!1), [h, g] = (0, Z.useState)(""), [_, v] = (0, Z.useState)({}), [y, b] = (0, Z.useState)(null), x = (0, Z.useRef)(e.revision), S = (0, Z.useRef)(!1), C = Y();
- Bn();
+ Vn();
let w = (e, t) => {
n.forEach((i, a) => {
i.library_id === n[e].library_id && r(a, t);
@@ -3574,10 +3574,10 @@ function yo({ data: e, receipt: t }) {
let ne = (e, t) => {
let i = n.find((e) => e.library_id === t);
if (i) {
- r(e, po(i));
+ r(e, mo(i));
return;
}
- let a = On();
+ let a = kn();
r(e, {
library_id: a,
library: "",
@@ -3589,7 +3589,7 @@ function yo({ data: e, receipt: t }) {
};
(0, Z.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), Ra);
+ let e = setTimeout(() => location.assign(y.url), za);
return () => clearTimeout(e);
}, [y]);
let re = (e) => {
@@ -3599,7 +3599,7 @@ function yo({ data: e, receipt: t }) {
m(!0);
let n = e.currentTarget;
requestAnimationFrame(() => n.querySelector(`[data-media-read-policy="${t}"] button`)?.focus());
- } else C.busy || S.current || (g(""), S.current = !0, so(d).then((e) => {
+ } else C.busy || S.current || (g(""), S.current = !0, co(d).then((e) => {
S.current = !1, e && ie();
}));
}, ie = () => {
@@ -3612,7 +3612,7 @@ function yo({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), t("已保存配置"), b(e);
}, (e) => {
- let t = _o(e);
+ let t = vo(e);
s(t?.media_dirs ?? []), (!t || t.port) && g(t?.port || q(e));
});
};
@@ -3624,7 +3624,7 @@ function yo({ data: e, receipt: t }) {
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, Q.jsx)(gt, {
+ /* @__PURE__ */ (0, Q.jsx)(_t, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -3633,13 +3633,13 @@ function yo({ data: e, receipt: t }) {
]
}) })
});
- let ae = (t) => e.media_sources?.find((e) => e.root_id === t.root_id && e.path === t.path), oe = n.some((e) => nr(e.location)), se = oe ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ let ae = (t) => e.media_sources?.find((e) => e.root_id === t.root_id && e.path === t.path), oe = n.some((e) => rr(e.location)), se = oe ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "media",
title: "媒体库与目录",
onSubmit: re,
children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [
- /* @__PURE__ */ (0, Q.jsx)(eo, {}),
+ /* @__PURE__ */ (0, Q.jsx)(to, {}),
/* @__PURE__ */ (0, Q.jsx)("div", {
role: "group",
"aria-label": "媒体库与目录",
@@ -3652,7 +3652,7 @@ function yo({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
"data-library-block": "",
"data-library-key": e.library_id,
- className: Qt({
+ className: $t({
variant: "raised",
padding: "none",
className: "flex flex-col p-2"
@@ -3662,7 +3662,7 @@ function yo({ data: e, receipt: t }) {
/* @__PURE__ */ (0, Q.jsxs)("div", {
"data-library-head": "",
children: [
- /* @__PURE__ */ (0, Q.jsx)(Xa, {
+ /* @__PURE__ */ (0, Q.jsx)(Za, {
label: `${f} 图标`,
value: e.library_icon,
kind: e.transport === "smb" ? "smb" : e.location,
@@ -3676,32 +3676,32 @@ function yo({ data: e, receipt: t }) {
value: e.library,
onChange: (e) => w(t, { library: e })
}),
- /* @__PURE__ */ (0, Q.jsx)(ro, {
+ /* @__PURE__ */ (0, Q.jsx)(io, {
id: e.library_id,
name: e.library,
value: e.library_color,
onChange: (e) => w(t, { library_color: e })
}),
- /* @__PURE__ */ (0, Q.jsx)(to, {
+ /* @__PURE__ */ (0, Q.jsx)(no, {
name: f,
value: d,
onChange: (n) => w(t, {
library_policy: n,
- library_stages: n === "custom" ? e.library_stages || Qa.join(",") : ""
+ library_stages: n === "custom" ? e.library_stages || $a.join(",") : ""
})
})
]
}),
- d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(no, {
+ d === "custom" ? /* @__PURE__ */ (0, Q.jsx)(ro, {
name: f,
- value: mo(e),
- onChange: (e) => w(t, { library_stages: Qa.filter((t) => e.includes(t)).join(",") })
+ value: ho(e),
+ onChange: (e) => w(t, { library_stages: $a.filter((t) => e.includes(t)).join(",") })
}) : null,
/* @__PURE__ */ (0, Q.jsxs)("div", {
"data-library-folders": "",
role: "group",
"aria-label": `${f} 的文件夹`,
- children: [s.map(({ row: t, index: i }) => /* @__PURE__ */ (0, Q.jsxs)(Zn, {
+ children: [s.map(({ row: t, index: i }) => /* @__PURE__ */ (0, Q.jsxs)(Qn, {
label: `媒体目录 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, {
@@ -3713,12 +3713,12 @@ function yo({ data: e, receipt: t }) {
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
- status: ae(t) ? /* @__PURE__ */ (0, Q.jsx)(bo, { online: ae(t)?.online }) : null,
- children: [/* @__PURE__ */ (0, Q.jsxs)(Xn, { children: [
- /* @__PURE__ */ (0, Q.jsx)(tr, {
+ status: ae(t) ? /* @__PURE__ */ (0, Q.jsx)(xo, { online: ae(t)?.online }) : null,
+ children: [/* @__PURE__ */ (0, Q.jsxs)(Zn, { children: [
+ /* @__PURE__ */ (0, Q.jsx)(nr, {
index: i,
value: t.transport === "smb" ? "smb" : t.location,
- options: lo,
+ options: uo,
onChange: (e) => {
let n = e === "smb";
r(i, {
@@ -3732,13 +3732,13 @@ function yo({ data: e, receipt: t }) {
});
}
}),
- /* @__PURE__ */ (0, Q.jsx)($n, {
+ /* @__PURE__ */ (0, Q.jsx)(er, {
index: i,
cost: t.cost,
onChange: (e) => r(i, { cost: e }),
error: p && !t.cost ? "请选择媒体读取策略" : void 0
}),
- t.root_id && !ae(t) ? /* @__PURE__ */ (0, Q.jsx)(Yn, {
+ t.root_id && !ae(t) ? /* @__PURE__ */ (0, Q.jsx)(Xn, {
label: "变更方式",
className: "w-full @lg:w-auto @lg:flex-1",
children: /* @__PURE__ */ (0, Q.jsxs)(R, {
@@ -3762,7 +3762,7 @@ function yo({ data: e, receipt: t }) {
})]
})
}) : null,
- T.length > 1 ? /* @__PURE__ */ (0, Q.jsx)(Yn, {
+ T.length > 1 ? /* @__PURE__ */ (0, Q.jsx)(Xn, {
label: "移到媒体库",
className: "w-full @lg:w-48",
children: /* @__PURE__ */ (0, Q.jsxs)(R, {
@@ -3771,7 +3771,7 @@ function yo({ data: e, receipt: t }) {
selectedKey: t.library_id,
renderValue: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: uo(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: fo(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {
className: "truncate",
children: f
})]
@@ -3784,7 +3784,7 @@ function yo({ data: e, receipt: t }) {
textValue: e.library || "未命名媒体库",
children: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: uo(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: fo(e) }), /* @__PURE__ */ (0, Q.jsx)("span", {
className: "truncate",
children: e.library || "未命名媒体库"
})]
@@ -3794,7 +3794,7 @@ function yo({ data: e, receipt: t }) {
textValue: "新建媒体库",
children: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: "plus" }), /* @__PURE__ */ (0, Q.jsx)("span", { children: "新建媒体库" })]
+ children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: "plus" }), /* @__PURE__ */ (0, Q.jsx)("span", { children: "新建媒体库" })]
})
}) : null]
})
@@ -3802,7 +3802,7 @@ function yo({ data: e, receipt: t }) {
] }), t.transport === "smb" ? /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex w-full flex-col gap-2",
children: [
- /* @__PURE__ */ (0, Q.jsxs)(Xn, { children: [/* @__PURE__ */ (0, Q.jsx)(Yn, {
+ /* @__PURE__ */ (0, Q.jsxs)(Zn, { children: [/* @__PURE__ */ (0, Q.jsx)(Xn, {
label: "SMB 账号",
className: "w-full @lg:flex-1",
children: /* @__PURE__ */ (0, Q.jsx)(P, {
@@ -3811,7 +3811,7 @@ function yo({ data: e, receipt: t }) {
autoComplete: "off",
onChange: (e) => r(i, { smb_username: e })
})
- }), /* @__PURE__ */ (0, Q.jsx)(Yn, {
+ }), /* @__PURE__ */ (0, Q.jsx)(Xn, {
label: "SMB 密码",
className: "w-full @lg:flex-1",
children: /* @__PURE__ */ (0, Q.jsx)(P, {
@@ -3881,7 +3881,7 @@ function yo({ data: e, receipt: t }) {
"aria-label": `给 ${f} 添加文件夹`,
onClick: () => {
i(), r(n.length, {
- ...po(e),
+ ...mo(e),
location: e.location,
cost: e.cost
});
@@ -3900,8 +3900,8 @@ function yo({ data: e, receipt: t }) {
onClick: i,
children: "添加媒体库"
}),
- /* @__PURE__ */ (0, Q.jsx)(N, { children: pt }),
- oe ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(er, {}), /* @__PURE__ */ (0, Q.jsx)(Va, {})] }) : null,
+ /* @__PURE__ */ (0, Q.jsx)(N, { children: mt }),
+ oe ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(tr, {}), /* @__PURE__ */ (0, Q.jsx)(Ha, {})] }) : null,
se.map((e) => /* @__PURE__ */ (0, Q.jsxs)(N, { children: [
"未检测到 ",
e.name,
@@ -3931,18 +3931,18 @@ function yo({ data: e, receipt: t }) {
})]
});
}
-function bo({ online: e }) {
- return /* @__PURE__ */ (0, Q.jsx)(ar, { online: e });
+function xo({ online: e }) {
+ return /* @__PURE__ */ (0, Q.jsx)(or, { online: e });
}
-function xo({ data: e }) {
+function So({ data: e }) {
let t = e.media_sources, n = Y();
return t ? /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "mounts",
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, Q.jsx)(lt, { children: t.map((e, t) => /* @__PURE__ */ (0, Q.jsxs)(j, {
- term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Vt, { mark: rr(e.location) }), co(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)(bo, { online: e.online })]
+ /* @__PURE__ */ (0, Q.jsx)(ut, { children: t.map((e, t) => /* @__PURE__ */ (0, Q.jsxs)(j, {
+ term: /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(Ht, { mark: ir(e.location) }), lo(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, Q.jsx)(xo, { online: e.online })]
}, t)) }),
n.error ? /* @__PURE__ */ (0, Q.jsx)(V, {
divided: !0,
@@ -3950,7 +3950,7 @@ function xo({ data: e }) {
}) : null,
/* @__PURE__ */ (0, Q.jsx)(M, { children: /* @__PURE__ */ (0, Q.jsx)(E, {
variant: "secondary",
- onClick: () => void n.run("refresh", (e) => ln(e), (e) => Dn.setQueryData(Ze, e)),
+ onClick: () => void n.run("refresh", (e) => un(e), (e) => On.setQueryData(Ze, e)),
...K(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -3958,17 +3958,17 @@ function xo({ data: e }) {
}) : null;
}
// src/react/settings/service-preferences.tsx
-var So = [
+var Co = [
["off", "关闭"],
["precise", "每 10 秒一张"],
["coarse", "每 30 秒一张"]
];
-function Co({ epoch: e = 0, disabled: t = !1 }) {
+function wo({ epoch: e = 0, disabled: t = !1 }) {
let n = X({
- queryKey: Ht,
- queryFn: ({ signal: e }) => gn(e),
+ queryKey: Ut,
+ queryFn: ({ signal: e }) => _n(e),
refetchOnMount: "always"
- }), r = Kn(), i = r.reset;
+ }), r = qn(), i = r.reset;
(0, Z.useEffect)(() => {
i();
}, [e, i]);
@@ -3986,7 +3986,7 @@ function Co({ epoch: e = 0, disabled: t = !1 }) {
onSelectionChange: (e) => {
e !== null && r.mutate(String(e));
},
- children: So.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ children: Co.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
children: t
}, e))
@@ -3998,7 +3998,7 @@ function Co({ epoch: e = 0, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, Q.jsx)(N, {
role: "status",
children: r.isPending ? "正在保存…" : "正在采集。"
- }), r.isPending ? null : /* @__PURE__ */ (0, Q.jsx)(Ut, {})]
+ }), r.isPending ? null : /* @__PURE__ */ (0, Q.jsx)(Wt, {})]
}) : null,
o ? /* @__PURE__ */ (0, Q.jsx)(V, {
divided: !0,
@@ -4006,20 +4006,20 @@ function Co({ epoch: e = 0, disabled: t = !1 }) {
}) : null
] });
}
-function wo({ receipt: e }) {
- let t = Xt();
+function To({ receipt: e }) {
+ let t = Zt();
(0, Z.useSyncExternalStore)(t.subscribe, t.version);
let n = X({
- queryKey: Nt,
- queryFn: ({ signal: e }) => hn(e),
+ queryKey: Pt,
+ queryFn: ({ signal: e }) => gn(e),
refetchOnMount: "always"
- }), r = Gn(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
+ }), r = Kn(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "follow-options",
title: "关注采集",
children: [/* @__PURE__ */ (0, Q.jsxs)(I, { children: [
- /* @__PURE__ */ (0, Q.jsx)(To, {}),
/* @__PURE__ */ (0, Q.jsx)(Eo, {}),
+ /* @__PURE__ */ (0, Q.jsx)(Do, {}),
/* @__PURE__ */ (0, Q.jsx)(B, {
label: "首次采集范围",
description: "新关注的来源第一次回看多久以前的内容。",
@@ -4035,7 +4035,7 @@ function wo({ receipt: e }) {
typeof n.followInitialDays == "number" && (t.value.followInitialDays = n.followInitialDays), t.save(), e("已保存首次采集范围");
} });
},
- children: st.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ children: ct.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
children: t
}, e))
@@ -4064,13 +4064,13 @@ function wo({ receipt: e }) {
}) : null]
});
}
-function To() {
+function Eo() {
let e = X({
- queryKey: ct,
- queryFn: ({ signal: e }) => fn(e),
+ queryKey: lt,
+ queryFn: ({ signal: e }) => pn(e),
refetchOnMount: "always",
- refetchInterval: (e) => Pn(e.state.data)
- }), t = Wn(), n = e.data, r = (0, Z.useRef)(Zt(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, Z.useState)("60"), [o, s] = (0, Z.useState)(!1);
+ refetchInterval: (e) => Fn(e.state.data)
+ }), t = Gn(), n = e.data, r = (0, Z.useRef)(Qt(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, Z.useState)("60"), [o, s] = (0, Z.useState)(!1);
(0, Z.useEffect)(() => {
n?.enabled && (r.current = n.interval_minutes, a(String(n.interval_minutes)));
}, [n]);
@@ -4123,7 +4123,7 @@ function To() {
role: "status",
children: t.isPending ? "正在保存…" : "正在检查来源更新…"
}) }) : null,
- /* @__PURE__ */ (0, Q.jsx)(Do, {
+ /* @__PURE__ */ (0, Q.jsx)(Oo, {
kind: "follow",
status: n,
title: "上次自动检查失败"
@@ -4131,12 +4131,12 @@ function To() {
u ? /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: q(u) }) }) : null
] });
}
-function Eo() {
+function Do() {
let e = X({
- queryKey: at,
- queryFn: ({ signal: e }) => dn(e),
+ queryKey: ot,
+ queryFn: ({ signal: e }) => fn(e),
refetchOnMount: "always",
- refetchInterval: (e) => Pn(e.state.data)
+ refetchInterval: (e) => Fn(e.state.data)
}), t = e.data;
if (!t) return e.isPending ? /* @__PURE__ */ (0, Q.jsx)(B, {
label: "订阅源拉取",
@@ -4160,17 +4160,17 @@ function Eo() {
role: "status",
children: "正在拉取订阅源…"
}) }) : null,
- /* @__PURE__ */ (0, Q.jsx)(Do, {
+ /* @__PURE__ */ (0, Q.jsx)(Oo, {
kind: "feed",
status: t,
title: "上次自动拉取失败"
})
] });
}
-function Do({ kind: e, status: t, title: n }) {
- let r = Un(e);
+function Oo({ kind: e, status: t, title: n }) {
+ let r = Wn(e);
if (!t?.enabled || t.running || !t.last_error) return null;
- let i = t.consecutive_failures ?? 0, a = bn(t.next_run_at), o = [i > 1 ? `已连续失败 ${i} 次` : "", a ? `下一轮 ${a}` : ""].filter(Boolean).join(","), s = [
+ let i = t.consecutive_failures ?? 0, a = xn(t.next_run_at), o = [i > 1 ? `已连续失败 ${i} 次` : "", a ? `下一轮 ${a}` : ""].filter(Boolean).join(","), s = [
t.last_error,
o,
r.error ? `没有重试:${q(r.error)}` : ""
@@ -4190,10 +4190,10 @@ function Do({ kind: e, status: t, title: n }) {
}) });
}
// src/react/settings/media-processing-settings.tsx
-function Oo({ receipt: e }) {
+function ko({ receipt: e }) {
let t = X({
- queryKey: yt,
- queryFn: ({ signal: e }) => mn(e)
+ queryKey: bt,
+ queryFn: ({ signal: e }) => hn(e)
}), n = Y(), r = n.error || (t.error ? q(t.error) : ""), i = !t.data || t.isFetching || !!n.busy;
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "preview",
@@ -4206,12 +4206,12 @@ function Oo({ receipt: e }) {
"aria-label": "生成视频预览",
isSelected: !!t.data && !t.data.metadata_only,
isDisabled: i,
- onChange: (t) => void n.run("save", (e) => G(bt, { metadata_only: !t }, "POST", e), (t) => {
- Dn.setQueryData(yt, t), Dn.invalidateQueries({ queryKey: Ht }), Dn.invalidateQueries({ queryKey: mt }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");
+ onChange: (t) => void n.run("save", (e) => G(xt, { metadata_only: !t }, "POST", e), (t) => {
+ On.setQueryData(bt, t), On.invalidateQueries({ queryKey: Ut }), On.invalidateQueries({ queryKey: ht }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");
})
})
}) }),
- /* @__PURE__ */ (0, Q.jsx)(Co, { disabled: !t.data || t.data.metadata_only || !!n.busy }),
+ /* @__PURE__ */ (0, Q.jsx)(wo, { disabled: !t.data || t.data.metadata_only || !!n.busy }),
/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {
label: "抽帧解码方式",
description: "用于生成封面、九宫格和时间轴。",
@@ -4222,8 +4222,8 @@ function Oo({ receipt: e }) {
selectedKey: t.data?.preview_acceleration || "auto",
isDisabled: i,
onSelectionChange: (t) => {
- t !== null && n.run("preview_acceleration", (e) => G(bt, { preview_acceleration: String(t) }, "POST", e), (t) => {
- Dn.setQueryData(yt, t), e("已保存抽帧解码方式");
+ t !== null && n.run("preview_acceleration", (e) => G(xt, { preview_acceleration: String(t) }, "POST", e), (t) => {
+ On.setQueryData(bt, t), e("已保存抽帧解码方式");
});
},
children: [/* @__PURE__ */ (0, Q.jsx)(z, {
@@ -4250,10 +4250,10 @@ function Oo({ receipt: e }) {
]
});
}
-function ko({ receipt: e }) {
+function Ao({ receipt: e }) {
let t = X({
- queryKey: yt,
- queryFn: ({ signal: e }) => mn(e)
+ queryKey: bt,
+ queryFn: ({ signal: e }) => hn(e)
}), n = Y(), r = n.error || (t.error ? q(t.error) : "");
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "transcode",
@@ -4269,8 +4269,8 @@ function ko({ receipt: e }) {
selectedKey: t.data?.playback_acceleration || "auto",
isDisabled: !t.data || t.isFetching || !!n.busy,
onSelectionChange: (t) => {
- t !== null && n.run("playback_acceleration", (e) => G(bt, { playback_acceleration: String(t) }, "POST", e), (t) => {
- Dn.setQueryData(yt, t), e("已保存转码方式");
+ t !== null && n.run("playback_acceleration", (e) => G(xt, { playback_acceleration: String(t) }, "POST", e), (t) => {
+ On.setQueryData(bt, t), e("已保存转码方式");
});
},
children: [/* @__PURE__ */ (0, Q.jsx)(z, {
@@ -4298,7 +4298,7 @@ function ko({ receipt: e }) {
});
}
// src/react/boardui/components/base/textarea/textarea.tsx
-var Ao = Ln({
+var jo = Rn({
field: "relative flex w-full flex-col 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",
@@ -4311,9 +4311,9 @@ var Ao = Ln({
},
footer: "flex w-full items-start justify-between gap-3",
count: "ms-auto shrink-0 pt-px text-caption-1-medium text-text-tertiary tabular-nums"
-}), jo = 20;
-function Mo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {
- let d = (0, Z.useContext)(Gt), f = e ?? d.size ?? "medium", p = (0, Z.useRef)(null), m = (e) => {
+}), Mo = 20;
+function No({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i = "vertical", fieldClassName: a, className: o, ref: s, groupRef: c, onInput: l, ...u }) {
+ let d = (0, Z.useContext)(Kt), f = e ?? d.size ?? "medium", p = (0, Z.useRef)(null), m = (e) => {
p.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
}, h = () => {
let e = p.current;
@@ -4322,14 +4322,14 @@ function Mo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =
e.style.height = "", e.style.maxHeight = "", e.style.overflowY = "";
return;
}
- let i = parseFloat(window.getComputedStyle(e).lineHeight) || jo, a = r ? r * i : Infinity;
+ let i = parseFloat(window.getComputedStyle(e).lineHeight) || Mo, a = r ? r * i : Infinity;
e.style.height = "0px";
let o = Math.max(e.scrollHeight, t * i);
e.style.height = `${Math.min(o, a)}px`, e.style.maxHeight = r ? `${a}px` : "", e.style.overflowY = o > a ? "auto" : "hidden";
};
return (0, Z.useLayoutEffect)(h), /* @__PURE__ */ (0, Q.jsx)(Re, {
ref: c,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => on(Ao.field, Ao.fieldSize[f], 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", d.fieldClassName, a),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => sn(jo.field, jo.fieldSize[f], 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", d.fieldClassName, a),
children: /* @__PURE__ */ (0, Q.jsx)(Ve, {
ref: m,
rows: t,
@@ -4337,14 +4337,14 @@ function Mo({ size: e, rows: t = 3, autoResize: n = !1, maxRows: r, resize: i =
onInput: (e) => {
h(), l?.(e);
},
- className: on(Ao.textarea, Ao.resize[n ? "none" : i], d.inputClassName, o)
+ className: sn(jo.textarea, jo.resize[n ? "none" : i], d.inputClassName, o)
})
});
}
-Mo.displayName = "TextareaBase";
-function No({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {
+No.displayName = "TextareaBase";
+function Po({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize: a, maxRows: o, resize: s, maxLength: c, showCount: l = !1, fieldClassName: u, ref: d, groupRef: f, className: p, value: m, defaultValue: h, onChange: g, ..._ }) {
let [v, y] = (0, Z.useState)(() => (h ?? "").length), b = m === void 0 ? v : m.length;
- return /* @__PURE__ */ (0, Q.jsx)(Wt, {
+ return /* @__PURE__ */ (0, Q.jsx)(Gt, {
..._,
value: m,
defaultValue: h,
@@ -4354,13 +4354,13 @@ function No({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize
className: p,
"aria-label": _["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: p, isInvalid: m }) => /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
- e && /* @__PURE__ */ (0, Q.jsx)(ht, {
+ e && /* @__PURE__ */ (0, Q.jsx)(gt, {
isRequired: p,
isInvalid: m,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, Q.jsx)(Mo, {
+ /* @__PURE__ */ (0, Q.jsx)(No, {
ref: d,
groupRef: f,
placeholder: r,
@@ -4372,25 +4372,25 @@ function No({ label: e, hint: t, tooltip: n, placeholder: r, rows: i, autoResize
fieldClassName: u
}),
(t || l) && /* @__PURE__ */ (0, Q.jsxs)("div", {
- className: Ao.footer,
- children: [t && /* @__PURE__ */ (0, Q.jsx)(dt, {
+ className: jo.footer,
+ children: [t && /* @__PURE__ */ (0, Q.jsx)(ft, {
isInvalid: m,
children: t
}), l && /* @__PURE__ */ (0, Q.jsx)("span", {
- className: on(Ao.count, m && "text-text-error-primary"),
+ className: sn(jo.count, m && "text-text-error-primary"),
children: c ? `${b}/${c}` : b
})]
})
] })
});
}
-No.displayName = "Textarea";
+Po.displayName = "Textarea";
// src/react/settings/code-pattern-settings.tsx
-var Po = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";
-function Fo({ receipt: e }) {
+var Fo = "^\\+{3}\\s*(?<code>FC2-PPV-\\d+)\n\\[(?<code>[A-Z]+-\\d+)\\]";
+function Io({ receipt: e }) {
let t = X({
- queryKey: Nt,
- queryFn: ({ signal: e }) => hn(e)
+ queryKey: Pt,
+ queryFn: ({ signal: e }) => gn(e)
}), [n, r] = (0, Z.useState)(null), i = Y(), a = n ?? (t.data?.codePatterns ?? []).join("\n"), o = i.error || (t.error ? q(t.error) : "");
return /* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "codes",
@@ -4398,11 +4398,11 @@ function Fo({ receipt: e }) {
onSubmit: (t) => {
t.preventDefault();
let n = a.split("\n").map((e) => e.trim()).filter(Boolean);
- i.run("save", (e) => G(Pt, { codePatterns: n }, "POST", e), (t) => {
- Dn.setQueryData(Nt, t), r(null), e("已保存配置");
+ i.run("save", (e) => G(Ft, { codePatterns: n }, "POST", e), (t) => {
+ On.setQueryData(Pt, t), r(null), e("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(No, {
+ children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [/* @__PURE__ */ (0, Q.jsx)(N, { children: "内置规则认不出番号时,按这里的规则从文件名里取。每行一条正则表达式,番号写在 (?<code>…) 里,没有命名组就取第一个括号。规则在下一次处理时对还没有番号的视频生效。" }), /* @__PURE__ */ (0, Q.jsx)(Po, {
id: "codePatternSetting",
"aria-label": "番号识别规则",
rows: 3,
@@ -4410,7 +4410,7 @@ function Fo({ receipt: e }) {
maxRows: 12,
spellCheck: "false",
autoComplete: "off",
- placeholder: Po,
+ placeholder: Fo,
value: a,
isDisabled: !t.data,
isInvalid: !!o,
@@ -4424,7 +4424,7 @@ function Fo({ receipt: e }) {
});
}
// src/react/settings/password-pair.tsx
-function Io({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+function Lo({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {
id: "access-password",
type: "password",
@@ -4454,12 +4454,12 @@ function Io({ label: e, password: t, confirmation: n, onPassword: r, onConfirmat
})] });
}
// src/react/settings/access-settings.tsx
-var Lo = {
+var Ro = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Ro({ initial: e, receipt: t, devices: n }) {
+function zo({ initial: e, receipt: t, devices: n }) {
let [r, i] = (0, Z.useState)(e), [a, o] = (0, Z.useState)(""), [s, c] = (0, Z.useState)(""), [l, u] = (0, Z.useState)(""), [d, f] = (0, Z.useState)(!1), [p, m] = (0, Z.useState)({}), h = (0, Z.useRef)(null), g = Y(), _ = (e) => {
e.preventDefault();
let n = {};
@@ -4476,7 +4476,7 @@ function Ro({ initial: e, receipt: t, devices: n }) {
let t = e instanceof qe ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : g.setError(q(e));
});
- }, v = Lo[r.mode], y = r.mode !== "locked";
+ }, v = Ro[r.mode], y = r.mode !== "locked";
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsxs)(L, {
guide: "access",
title: "访问密码",
@@ -4508,7 +4508,7 @@ function Ro({ initial: e, receipt: t, devices: n }) {
isInvalid: !!p.current_password,
hint: p.current_password
}) : null,
- y && !d ? /* @__PURE__ */ (0, Q.jsx)(Io, {
+ y && !d ? /* @__PURE__ */ (0, Q.jsx)(Lo, {
label: r.mode === "password" ? "新访问密码" : "设置访问密码",
password: s,
confirmation: l,
@@ -4533,136 +4533,136 @@ function Ro({ initial: e, receipt: t, devices: n }) {
}), n && (r.mode === "password" || r.mode === "legacy") ? n(r) : null] });
}
// src/react/settings/device-sessions.tsx
-var zo = "/api/configuration/access/sessions", Bo = (e) => e.device || "未识别的浏览器", Vo = {
- glyph: ft,
+var Bo = "/api/configuration/access/sessions", Vo = (e) => e.device || "未识别的浏览器", Ho = {
+ glyph: pt,
brand: "apple"
-}, Ho = {
- glyph: yn,
- brand: "android"
}, Uo = {
+ glyph: bn,
+ brand: "android"
+}, Wo = {
iPhone: {
- platform: Vo,
- terminal: Jt
+ platform: Ho,
+ terminal: Yt
},
iPad: {
- platform: Vo,
- terminal: it
+ platform: Ho,
+ terminal: at
},
Android: {
- platform: Ho,
- terminal: Jt
+ platform: Uo,
+ terminal: Yt
},
"Android 平板": {
- platform: Ho,
- terminal: it
+ platform: Uo,
+ terminal: at
},
ChromeOS: {
platform: { browser: "chrome" },
- terminal: qn
+ terminal: Jn
},
Windows: {
platform: {
- glyph: Kt,
+ glyph: qt,
brand: "windows"
},
- terminal: qn
+ terminal: Jn
},
macOS: {
- platform: Vo,
- terminal: qn
+ platform: Ho,
+ terminal: Jn
},
- Linux: { terminal: qn }
-}, Wo = "inline size-4 -mt-0.5 mr-1 align-middle";
-function Go({ platform: e }) {
- if ("browser" in e) return /* @__PURE__ */ (0, Q.jsx)(sr, {
+ Linux: { terminal: Jn }
+}, Go = "inline size-4 -mt-0.5 mr-1 align-middle";
+function Ko({ platform: e }) {
+ if ("browser" in e) return /* @__PURE__ */ (0, Q.jsx)(cr, {
name: e.browser,
- className: Wo
+ className: Go
});
let { glyph: t, brand: n } = e;
return /* @__PURE__ */ (0, Q.jsx)(t, {
"aria-hidden": !0,
"data-platform-mark": n,
- className: Wo
+ className: Go
});
}
-function Ko({ row: e }) {
- if (!e.device) return Bo(e);
- let t = e.device.split(" · "), n = Uo[t.at(-1) ?? ""] ? t.pop() : "", r = t.join(" · "), i = n ? Uo[n].platform : void 0;
+function qo({ row: e }) {
+ if (!e.device) return Vo(e);
+ let t = e.device.split(" · "), n = Wo[t.at(-1) ?? ""] ? t.pop() : "", r = t.join(" · "), i = n ? Wo[n].platform : void 0;
return /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
- r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [cr(r) ? /* @__PURE__ */ (0, Q.jsx)(sr, {
+ r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [lr(r) ? /* @__PURE__ */ (0, Q.jsx)(cr, {
name: r,
- className: Wo
+ className: Go
}) : null, r] }) : null,
r && n ? " · " : null,
- n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [i ? /* @__PURE__ */ (0, Q.jsx)(Go, { platform: i }) : null, n] }) : null
+ n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [i ? /* @__PURE__ */ (0, Q.jsx)(Ko, { platform: i }) : null, n] }) : null
] });
}
-function qo({ row: e }) {
- let t = Uo[e.device.split(" · ").at(-1) ?? ""]?.terminal ?? sn;
+function Jo({ row: e }) {
+ let t = Wo[e.device.split(" · ").at(-1) ?? ""]?.terminal ?? cn;
return /* @__PURE__ */ (0, Q.jsx)(t, {
"aria-hidden": !0,
className: "size-5 shrink-0 text-foreground-icon-secondary"
});
}
-function Jo({ row: e, children: t }) {
+function Yo({ row: e, children: t }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-h-13 w-full items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-2.5 last:border-b-0",
children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [/* @__PURE__ */ (0, Q.jsx)(qo, { row: e }), /* @__PURE__ */ (0, Q.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, Q.jsx)(Jo, { row: e }), /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, Q.jsx)("p", {
className: "text-body-regular text-text-primary",
- children: /* @__PURE__ */ (0, Q.jsx)(Ko, { row: e })
+ children: /* @__PURE__ */ (0, Q.jsx)(qo, { row: e })
}), /* @__PURE__ */ (0, Q.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Zo(e)
+ children: Qo(e)
})]
})]
}), t]
});
}
-function Yo(e, t = Date.now() / 1e3) {
+function Xo(e, t = Date.now() / 1e3) {
let n = Math.max(0, t - e);
return n < 60 ? "刚刚" : n < 3600 ? `${Math.floor(n / 60)} 分钟前` : n < 86400 ? `${Math.floor(n / 3600)} 小时前` : n < 2592e3 ? `${Math.floor(n / 86400)} 天前` : (/* @__PURE__ */ new Date(e * 1e3)).toLocaleDateString("zh-CN");
}
-function Xo(e) {
+function Zo(e) {
return e.network === "loopback" ? "运行 Peach 的电脑" : e.network ? e.remote ? `公网入口 · ${e.network}` : e.network : "";
}
-var Zo = (e) => [`最近活动 ${Yo(e.last_seen)}`, Xo(e)].filter(Boolean).join(" · ");
-function Qo({ revision: e, receipt: t }) {
+var Qo = (e) => [`最近活动 ${Xo(e.last_seen)}`, Zo(e)].filter(Boolean).join(" · ");
+function $o({ revision: e, receipt: t }) {
let n = X({
queryKey: ["access-sessions", e],
refetchOnMount: "always",
- queryFn: ({ signal: e }) => W(zo, e)
+ queryFn: ({ signal: e }) => W(Bo, e)
});
return n.error ? /* @__PURE__ */ (0, Q.jsx)(L, {
title: "已登录的设备",
children: /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsx)(k, { children: q(n.error) }) })
- }) : n.isFetching || !n.data ? /* @__PURE__ */ (0, Q.jsx)(Ft, {
+ }) : n.isFetching || !n.data ? /* @__PURE__ */ (0, Q.jsx)(It, {
label: "正在读取已登录的设备",
- html: cn
- }) : /* @__PURE__ */ (0, Q.jsx)($o, {
+ html: ln
+ }) : /* @__PURE__ */ (0, Q.jsx)(es, {
initial: n.data,
receipt: t
});
}
-function $o({ initial: e, receipt: t }) {
+function es({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e);
(0, Z.useEffect)(() => r(e), [e]);
let i = n.sessions.filter((e) => !e.current);
(0, Z.useEffect)(() => {
- kn("devices", {
+ An("devices", {
rows: Math.min(n.sessions.length, 8),
manageable: n.manageable && i.length > 0
});
}, [n, i.length]);
- let a = (e) => void nn({
+ let a = (e) => void rn({
title: "撤销这台设备的登录",
- body: `${Bo(e)}(${Zo(e)})下次打开 Peach 需要重新输入访问密码。`,
+ body: `${Vo(e)}(${Qo(e)})下次打开 Peach 需要重新输入访问密码。`,
confirmLabel: "撤销登录",
onConfirm: async () => {
- r(await G(`${zo}/revoke`, {
+ r(await G(`${Bo}/revoke`, {
revision: n.revision,
id: e.id
})), t("已撤销登录");
@@ -4671,7 +4671,7 @@ function $o({ initial: e, receipt: t }) {
return /* @__PURE__ */ (0, Q.jsxs)(L, {
title: "已登录的设备",
children: [
- n.sessions.length ? /* @__PURE__ */ (0, Q.jsx)(I, { children: n.sessions.map((e) => /* @__PURE__ */ (0, Q.jsx)(Jo, {
+ n.sessions.length ? /* @__PURE__ */ (0, Q.jsx)(I, { children: n.sessions.map((e) => /* @__PURE__ */ (0, Q.jsx)(Yo, {
row: e,
children: e.current ? /* @__PURE__ */ (0, Q.jsx)(et, {
color: "blue",
@@ -4680,7 +4680,7 @@ function $o({ initial: e, receipt: t }) {
}) : n.manageable ? /* @__PURE__ */ (0, Q.jsx)(E, {
size: "small",
variant: "secondary",
- "aria-label": `撤销 ${Bo(e)} 的登录`,
+ "aria-label": `撤销 ${Vo(e)} 的登录`,
onClick: () => a(e),
children: "撤销"
}) : null
@@ -4693,12 +4693,12 @@ function $o({ initial: e, receipt: t }) {
status: "修改访问密码会让全部设备退出。",
children: /* @__PURE__ */ (0, Q.jsx)(E, {
variant: "secondary",
- onClick: () => void nn({
+ onClick: () => void rn({
title: "撤销其他设备的登录",
body: `除本机以外的 ${i.length} 台设备下次打开 Peach 需要重新输入访问密码。`,
confirmLabel: "撤销登录",
onConfirm: async () => {
- let e = await G(`${zo}/revoke`, {
+ let e = await G(`${Bo}/revoke`, {
revision: n.revision,
scope: "others"
});
@@ -4712,28 +4712,28 @@ function $o({ initial: e, receipt: t }) {
});
}
// src/react/components/configuration-fields.tsx
-function es({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {
+function ts({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a, isInvalid: o, children: s }) {
let c = `${e}-label`;
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, Q.jsx)(ht, {
+ /* @__PURE__ */ (0, Q.jsx)(gt, {
id: c,
elementType: "span",
children: t
}),
- /* @__PURE__ */ (0, Q.jsx)(It, {
+ /* @__PURE__ */ (0, Q.jsx)(Lt, {
id: e,
"aria-labelledby": c,
orientation: "horizontal",
- className: Mt,
+ className: Nt,
value: n,
onChange: r,
isDisabled: a,
isInvalid: o,
children: i.map((e) => /* @__PURE__ */ (0, Q.jsx)(Ge, {
value: e.value,
- className: jt,
+ className: Mt,
children: e.label
}, e.value))
}),
@@ -4741,7 +4741,7 @@ function es({ id: e, label: t, value: n, onChange: r, options: i, isDisabled: a,
]
});
}
-function ts({ prefix: e, suffix: t, ...n }) {
+function ns({ prefix: e, suffix: t, ...n }) {
let r = () => /* @__PURE__ */ (0, Q.jsx)("span", {
className: "shrink-0 pr-1 text-body-regular text-text-secondary",
children: t
@@ -4756,18 +4756,18 @@ function ts({ prefix: e, suffix: t, ...n }) {
});
}
// src/react/settings/port-settings.tsx
-var ns = [{
+var rs = [{
value: "0.0.0.0",
label: "同一局域网的设备"
}, {
value: "127.0.0.1",
label: "只有这台电脑"
}];
-function rs({ data: e, receipt: t }) {
+function is({ data: e, receipt: t }) {
let n = e.network, r = n ? n.editable : e.editable && e.port_editable !== !1, [i, a] = (0, Z.useState)(n?.host ?? "127.0.0.1"), [o, s] = (0, Z.useState)(n?.mdns_name ?? "peach"), [c, l] = (0, Z.useState)(String(e.port)), [u, d] = (0, Z.useState)({}), [f, p] = (0, Z.useState)(null), m = Y();
return (0, Z.useEffect)(() => {
if (!f) return;
- let e = setTimeout(() => location.assign(f.url), Ra);
+ let e = setTimeout(() => location.assign(f.url), za);
return () => clearTimeout(e);
}, [f]), f ? /* @__PURE__ */ (0, Q.jsx)(L, {
guide: "port",
@@ -4775,7 +4775,7 @@ function rs({ data: e, receipt: t }) {
children: /* @__PURE__ */ (0, Q.jsx)(V, { children: /* @__PURE__ */ (0, Q.jsxs)(F, {
tone: "success",
title: "配置已保存",
- children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, Q.jsx)(gt, {
+ children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, Q.jsx)(_t, {
href: f.url,
size: "small",
children: "返回网络与访问"
@@ -4803,33 +4803,33 @@ function rs({ data: e, receipt: t }) {
});
} : void 0,
children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [
- n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(is, {
+ n ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(as, {
label: "本机地址",
value: n.local_url,
receipt: t
}), n.lan_url || n.ip_url ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [
- /* @__PURE__ */ (0, Q.jsx)(is, {
+ /* @__PURE__ */ (0, Q.jsx)(as, {
label: "手机连接地址",
value: n.lan_url || n.ip_url,
receipt: t
}),
- n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(is, {
+ n.lan_url && n.ip_url ? /* @__PURE__ */ (0, Q.jsx)(as, {
label: "备用 IP 地址",
value: n.ip_url,
receipt: t
}) : null,
/* @__PURE__ */ (0, Q.jsxs)(N, { children: ["手机与电脑连接同一 Wi-Fi。", n.ip_url && n.lan_url ? "名称地址打不开时,可尝试备用 IP 地址。" : ""] })
] }) : /* @__PURE__ */ (0, Q.jsx)(N, { children: n.scope === "local" ? "当前只允许这台电脑访问,手机无法连接。" : "局域网连接地址未取得,请检查电脑的网络连接和服务启动配置。" })] }) : null,
- r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(es, {
+ r ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [n?.editable ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(ts, {
id: "configHost",
label: "谁可以访问",
value: i,
onChange: a,
- options: ns,
+ options: rs,
isDisabled: !!m.busy,
isInvalid: !!u.host,
children: u.host ? /* @__PURE__ */ (0, Q.jsx)(k, { children: u.host }) : null
- }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(ts, {
+ }), i === "0.0.0.0" ? /* @__PURE__ */ (0, Q.jsx)(ns, {
id: "configMdnsName",
label: "局域网访问地址",
value: o,
@@ -4843,7 +4843,7 @@ function rs({ data: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !!u.mdns_name,
hint: u.mdns_name || void 0
- }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(ts, {
+ }) : null] }) : null, /* @__PURE__ */ (0, Q.jsx)(ns, {
id: "configPort",
label: "端口",
prefix: "localhost:",
@@ -4871,7 +4871,7 @@ function rs({ data: e, receipt: t }) {
}) : null]
});
}
-function is({ label: e, value: t, receipt: n }) {
+function as({ label: e, value: t, receipt: n }) {
let r = Y();
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
@@ -4896,12 +4896,12 @@ function is({ label: e, value: t, receipt: n }) {
});
}
// src/react/settings/peach-proxy-fields.tsx
-var as = [
+var os = [
["environment", "跟随环境"],
["direct", "直连"],
["proxy", "自定义"]
];
-function os({ mode: e, onChange: t, labelledBy: n }) {
+function ss({ mode: e, onChange: t, labelledBy: n }) {
return /* @__PURE__ */ (0, Q.jsx)(R, {
"aria-label": n ? void 0 : "连接方式",
"aria-labelledby": n,
@@ -4909,13 +4909,13 @@ function os({ mode: e, onChange: t, labelledBy: n }) {
onSelectionChange: (e) => {
e !== null && t(String(e));
},
- children: as.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
+ children: os.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(z, {
id: e,
children: t
}, e))
});
}
-function ss({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {
+function cs({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {
return /* @__PURE__ */ (0, Q.jsx)(P, {
id: e,
type: "password",
@@ -4931,19 +4931,19 @@ function ss({ id: e, value: t, onChange: n, saved: r = !1, error: i }) {
});
}
// src/react/settings/tunnel-settings.tsx
-var cs = 2e3, ls = [["quick", "临时链接"], ["named", "命名隧道"]], us = {
+var ls = 2e3, us = [["quick", "临时链接"], ["named", "命名隧道"]], ds = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function ds({ revision: e, initial: t, receipt: n }) {
+function fs({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, Z.useState)(t), [a, o] = (0, Z.useState)(e), [s, c] = (0, Z.useState)(t.mode), [l, u] = (0, Z.useState)(t.hostname), [d, f] = (0, Z.useState)(""), [p, m] = (0, Z.useState)({}), h = Y(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, Z.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- ln(e.signal).then((t) => {
- !e.signal.aborted && t.tunnel && (Dn.setQueryData(Ze, t), i(t.tunnel), o(t.revision));
+ un(e.signal).then((t) => {
+ !e.signal.aborted && t.tunnel && (On.setQueryData(Ze, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, cs);
+ }, ls);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -4974,19 +4974,19 @@ function ds({ revision: e, initial: t, receipt: n }) {
children: r.error ? "连接失败" : r.state === "running" ? "运行中" : r.state === "starting" ? "连接中" : "已停止"
}),
children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [
- r.named_available ? /* @__PURE__ */ (0, Q.jsx)(It, {
+ r.named_available ? /* @__PURE__ */ (0, Q.jsx)(Lt, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: Mt,
- children: ls.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {
+ className: Nt,
+ children: us.map(([e, t]) => /* @__PURE__ */ (0, Q.jsx)(Ge, {
value: e,
- className: jt,
+ className: Mt,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, Q.jsx)(N, { children: us[_ ? "named" : "quick"] }),
+ /* @__PURE__ */ (0, Q.jsx)(N, { children: ds[_ ? "named" : "quick"] }),
_ ? /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [/* @__PURE__ */ (0, Q.jsx)(P, {
id: "tunnel-hostname",
label: "公开主机名",
@@ -5046,36 +5046,36 @@ function ds({ revision: e, initial: t, receipt: n }) {
});
}
// src/react/settings/network-settings.tsx
-function fs({ data: e, receipt: t, panel: n, issues: r }) {
+function ps({ data: e, receipt: t, panel: n, issues: r }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
+ ...dr(n),
children: [
r,
- e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(rs, {
+ e.network || e.editable && e.port_editable !== !1 && !e.section_errors?.media_sources ? /* @__PURE__ */ (0, Q.jsx)(is, {
data: e,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, Q.jsx)(Ro, {
+ e.access ? /* @__PURE__ */ (0, Q.jsx)(zo, {
initial: e.access,
receipt: t,
- devices: (e) => /* @__PURE__ */ (0, Q.jsx)(Qo, {
+ devices: (e) => /* @__PURE__ */ (0, Q.jsx)($o, {
revision: e.revision,
receipt: t
})
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, Q.jsx)(ds, {
+ e.tunnel ? /* @__PURE__ */ (0, Q.jsx)(fs, {
revision: e.revision,
initial: e.tunnel,
receipt: t
}) : null,
- e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(ps, {
+ e.peach_proxy ? /* @__PURE__ */ (0, Q.jsx)(ms, {
initial: e.peach_proxy,
receipt: t
}) : null
]
});
}
-function ps({ initial: e, receipt: t }) {
+function ms({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e), [i, a] = (0, Z.useState)(e.mode), [o, s] = (0, Z.useState)(""), c = Y();
return /* @__PURE__ */ (0, Q.jsxs)(L, {
id: "peachProxy",
@@ -5093,7 +5093,7 @@ function ps({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, Q.jsx)(I, { children: /* @__PURE__ */ (0, Q.jsx)(B, {
label: "连接方式",
description: "Peach 访问外网和采集来源时使用。",
- children: /* @__PURE__ */ (0, Q.jsx)(os, {
+ children: /* @__PURE__ */ (0, Q.jsx)(ss, {
mode: i,
onChange: a
})
@@ -5101,7 +5101,7 @@ function ps({ initial: e, receipt: t }) {
i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, Q.jsxs)(V, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(ss, {
+ i === "proxy" ? /* @__PURE__ */ (0, Q.jsx)(cs, {
id: "peachProxyAddress",
value: o,
onChange: s,
@@ -5124,12 +5124,12 @@ function ps({ initial: e, receipt: t }) {
});
}
// src/react/follow-manage/credentials.tsx
-var ms = "将清除这个来源在本机和共享副本中的登录凭据。", hs = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";
-function gs(e, t) {
+var hs = "将清除这个来源在本机和共享副本中的登录凭据。", gs = "其他系统用户可以读取此凭据文件。请在运行 Peach 的 Mac 或 Linux 电脑上,将文件权限设为仅当前用户可读写(0600)。";
+function _s(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function _s({ row: e }) {
- if (rn(e)) return /* @__PURE__ */ (0, Q.jsx)(et, {
+function vs({ row: e }) {
+ if (an(e)) return /* @__PURE__ */ (0, Q.jsx)(et, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -5141,12 +5141,12 @@ function _s({ row: e }) {
children: $e[e.requirement] || ""
});
}
-function vs({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, Z.useState)({}), [a, o] = (0, Z.useState)(""), s = rn(e), c = Vn({
- mutationFn: (t) => Nn(e.provider, t),
+function ys({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, Z.useState)({}), [a, o] = (0, Z.useState)(""), s = an(e), c = Hn({
+ mutationFn: (t) => Pn(e.provider, t),
onSuccess: (e, t) => {
- e.note ? o(e.note) : (o(""), i({}), Dn.invalidateQueries({
- queryKey: ot,
+ e.note ? o(e.note) : (o(""), i({}), On.invalidateQueries({
+ queryKey: st,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据"));
},
@@ -5168,7 +5168,7 @@ function vs({ row: e, readOnly: t, toast: n }) {
children: (e.needs || []).map((n) => /* @__PURE__ */ (0, Q.jsx)(P, {
type: "password",
label: n,
- placeholder: gs(e, n),
+ placeholder: _s(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -5186,9 +5186,9 @@ function vs({ row: e, readOnly: t, toast: n }) {
variant: "danger",
disabled: t,
...K(c.isPending),
- onClick: () => void nn({
+ onClick: () => void rn({
title: "清除来源凭据",
- body: ms,
+ body: hs,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -5206,7 +5206,7 @@ function vs({ row: e, readOnly: t, toast: n }) {
(e.shared_fields || []).length ? /* @__PURE__ */ (0, Q.jsx)(N, { children: `${e.shared_fields.join("、")} 使用共享副本中的登录信息,本机没有单独保存。清除时,本机和共享副本中的登录信息都会删除。` }) : null,
e.path ? /* @__PURE__ */ (0, Q.jsx)(O, {
summary: "凭据文件",
- children: /* @__PURE__ */ (0, Q.jsx)(Ot, {
+ children: /* @__PURE__ */ (0, Q.jsx)(kt, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -5215,19 +5215,19 @@ function vs({ row: e, readOnly: t, toast: n }) {
]
});
}
-function ys({ row: e, readOnly: t, toast: n }) {
+function bs({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
/* @__PURE__ */ (0, Q.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, Q.jsx)(or, { provider: e.provider })
+ children: /* @__PURE__ */ (0, Q.jsx)(sr, { provider: e.provider })
}),
/* @__PURE__ */ (0, Q.jsx)("b", {
className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, Q.jsx)(_s, { row: e }),
+ /* @__PURE__ */ (0, Q.jsx)(vs, { row: e }),
e.missing.map((e) => /* @__PURE__ */ (0, Q.jsx)(et, {
variant: "caption",
color: "rose",
@@ -5243,9 +5243,9 @@ function ys({ row: e, readOnly: t, toast: n }) {
children: [
r,
/* @__PURE__ */ (0, Q.jsx)(O, {
- summary: rn(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !rn(e),
- children: /* @__PURE__ */ (0, Q.jsx)(vs, {
+ summary: an(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !an(e),
+ children: /* @__PURE__ */ (0, Q.jsx)(ys, {
row: e,
readOnly: t,
toast: n
@@ -5254,18 +5254,18 @@ function ys({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, Q.jsx)(F, {
tone: "error",
title: "凭据文件权限过宽",
- children: hs
+ children: gs
}) : null
]
});
}
-function bs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
- let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !rn(e));
+function xs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
+ let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !an(e));
if ((0, Z.useEffect)(() => {
- kn("credentials", { done: i.filter(rn).map((e) => e.provider) });
- }, [e]), !i.length) return /* @__PURE__ */ (0, Q.jsx)(rt, {
+ An("credentials", { done: i.filter(an).map((e) => e.provider) });
+ }, [e]), !i.length) return /* @__PURE__ */ (0, Q.jsx)(it, {
size: "compact",
- icon: tn,
+ icon: nn,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@ -5292,12 +5292,12 @@ function bs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, Q.jsx)("div", {
- className: Qt({
+ className: $t({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(ys, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, Q.jsx)(bs, {
row: e,
readOnly: t,
toast: n
@@ -5313,7 +5313,7 @@ function bs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
children: s
}) })
}) : /* @__PURE__ */ (0, Q.jsxs)("div", {
- className: Qt({
+ className: $t({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -5327,7 +5327,7 @@ function bs({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
});
}
// src/react/settings/entry-links-settings.tsx
-function xs({ initial: e, receipt: t }) {
+function Ss({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e.sites), i = Y(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
@@ -5343,10 +5343,10 @@ function xs({ initial: e, receipt: t }) {
});
},
children: [/* @__PURE__ */ (0, Q.jsxs)(V, { children: [
- /* @__PURE__ */ (0, Q.jsx)(N, { children: tt }),
+ /* @__PURE__ */ (0, Q.jsx)(N, { children: nt }),
n.map((e) => /* @__PURE__ */ (0, Q.jsx)(P, {
id: `entry-link-${e.key}`,
- label: /* @__PURE__ */ (0, Q.jsx)(zt, {
+ label: /* @__PURE__ */ (0, Q.jsx)(Bt, {
site: e.key,
label: `${e.label} 地址`
}),
@@ -5356,7 +5356,7 @@ function xs({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: nt
+ hint: rt
}, e.key)),
i.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: i.error }) : null
] }), /* @__PURE__ */ (0, Q.jsx)(M, { children: /* @__PURE__ */ (0, Q.jsx)(E, {
@@ -5367,31 +5367,31 @@ function xs({ initial: e, receipt: t }) {
});
}
// src/react/settings/indexer-settings.tsx
-var Ss = "/api/configuration/indexers";
-function Cs({ receipt: e }) {
+var Cs = "/api/configuration/indexers";
+function ws({ receipt: e }) {
let t = X({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => W(Ss, e),
+ queryFn: ({ signal: e }) => W(Cs, e),
refetchOnMount: "always"
});
- return t.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, Q.jsx)(Ft, {
+ return t.error ? /* @__PURE__ */ (0, Q.jsx)(k, { children: q(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, Q.jsx)(It, {
label: "正在读取资源搜索设置",
- html: _n
- }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(Es, {
+ html: vn
+ }) : t.data ? /* @__PURE__ */ (0, Q.jsx)(Ds, {
initial: t.data,
receipt: e
}) : null;
}
-function ws(e) {
+function Ts(e) {
try {
return new globalThis.URL(e).host;
} catch {
return e;
}
}
-function Ts({ row: e, index: t }) {
+function Es({ row: e, index: t }) {
let n = [
- e.url ? ws(e.url) : "未填地址",
+ e.url ? Ts(e.url) : "未填地址",
e.enabled ? "已启用" : "已停用",
e.api_key_set && !e.clear_api_key ? "已保存 API key" : e.api_key ? "API key 待保存" : "没有 API key"
];
@@ -5406,10 +5406,10 @@ function Ts({ row: e, index: t }) {
})]
});
}
-function Es({ initial: e, receipt: t }) {
+function Ds({ initial: e, receipt: t }) {
let [n, r] = (0, Z.useState)(e.indexers), i = Y();
(0, Z.useEffect)(() => {
- kn("indexers", { open: e.indexers.map((e) => !e.url) });
+ An("indexers", { open: e.indexers.map((e) => !e.url) });
}, [e]);
let a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
@@ -5419,7 +5419,7 @@ function Es({ initial: e, receipt: t }) {
guide: "indexers",
title: "资源搜索",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => G(Ss, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => G(Cs, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
@@ -5439,7 +5439,7 @@ function Es({ initial: e, receipt: t }) {
className: "min-w-0 border-t border-separator-border pt-2",
children: /* @__PURE__ */ (0, Q.jsx)(O, {
defaultOpen: !e.url,
- summary: /* @__PURE__ */ (0, Q.jsx)(Ts, {
+ summary: /* @__PURE__ */ (0, Q.jsx)(Es, {
row: e,
index: t
}),
@@ -5509,7 +5509,7 @@ function Es({ initial: e, receipt: t }) {
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
onClick: () => r([...n, {
- key: On(),
+ key: kn(),
name: "",
url: "",
enabled: !0,
@@ -5524,15 +5524,15 @@ function Es({ initial: e, receipt: t }) {
});
}
// src/react/settings/source-settings.tsx
-function Ds({ data: e, receipt: t, panel: n, issues: r }) {
+function Os({ data: e, receipt: t, panel: n, issues: r }) {
let i = X({
- queryKey: ot,
- queryFn: ({ signal: e }) => un(e),
+ queryKey: st,
+ queryFn: ({ signal: e }) => dn(e),
enabled: n?.active !== !1,
refetchOnMount: "always"
});
return /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
+ ...dr(n),
children: [
r,
/* @__PURE__ */ (0, Q.jsx)("div", {
@@ -5543,7 +5543,7 @@ function Ds({ data: e, receipt: t, panel: n, issues: r }) {
children: "采集来源与登录状态"
})
}),
- i.data ? /* @__PURE__ */ (0, Q.jsx)(bs, {
+ i.data ? /* @__PURE__ */ (0, Q.jsx)(xs, {
data: i.data,
readOnly: !!e.ledger_read_only,
toast: t,
@@ -5552,13 +5552,13 @@ function Ds({ data: e, receipt: t, panel: n, issues: r }) {
tone: "error",
title: "来源凭据未取得",
children: q(i.error)
- }) : n?.active === !1 ? null : /* @__PURE__ */ (0, Q.jsx)(Ft, {
+ }) : n?.active === !1 ? null : /* @__PURE__ */ (0, Q.jsx)(It, {
label: "正在读取来源凭据",
- html: an
+ html: on
}),
- /* @__PURE__ */ (0, Q.jsx)(wo, { receipt: t }),
- /* @__PURE__ */ (0, Q.jsx)(Cs, { receipt: t }),
- e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(xs, {
+ /* @__PURE__ */ (0, Q.jsx)(To, { receipt: t }),
+ /* @__PURE__ */ (0, Q.jsx)(ws, { receipt: t }),
+ e.entry_links ? /* @__PURE__ */ (0, Q.jsx)(Ss, {
initial: e.entry_links,
receipt: t
}) : null
@@ -5566,7 +5566,7 @@ function Ds({ data: e, receipt: t, panel: n, issues: r }) {
});
}
// src/react/settings/configuration-shape.ts
-function Os(e) {
+function ks(e) {
let t = e.downloads;
if (!t) return null;
let n = t.media_sources ?? [];
@@ -5579,7 +5579,7 @@ function Os(e) {
browserLogin: t.pikpak_browser.available
};
}
-function ks(e) {
+function As(e) {
let t = e.tunnel;
return {
port: !!(e.editable && e.port_editable !== !1),
@@ -5593,7 +5593,7 @@ function ks(e) {
tunnelNote: !!(t && (!t.available || t.state === "starting" || t.state === "running" && t.url))
};
}
-function As(e) {
+function js(e) {
let t = e.updates, n = e.update_job?.state ?? "idle", r = !t || t.state === "unchecked" && !t.checked_at && n === "idle", i = +!!t?.package_kind + (r ? 0 : +!!t?.checked_at + (t?.state === "unchecked" ? 0 : 1) + (n === "idle" ? 0 : 1)), a = e.automatic_updates, o = e.storage;
return {
releaseFacts: t?.package_kind ? 5 : 4,
@@ -5614,12 +5614,12 @@ function As(e) {
};
}
// src/react/settings/configuration-page.tsx
-function js({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {
+function Ms({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r }) {
let i = X({
queryKey: Ze,
- queryFn: ({ signal: e }) => ln(e)
+ queryFn: ({ signal: e }) => un(e)
}), a = i.data;
- return a ? /* @__PURE__ */ (0, Q.jsx)(Ps, {
+ return a ? /* @__PURE__ */ (0, Q.jsx)(Fs, {
data: a,
receipt: e,
reopenTutorial: t,
@@ -5638,7 +5638,7 @@ function js({ receipt: e, reopenTutorial: t, section: n = "", diagnostics: r })
})
});
}
-function Ms({ data: e, sections: t, reload: n, refreshing: r }) {
+function Ns({ data: e, sections: t, reload: n, refreshing: r }) {
return /* @__PURE__ */ (0, Q.jsx)(Q.Fragment, { children: t.map((t) => {
let i = e.section_errors?.[t];
return i ? /* @__PURE__ */ (0, Q.jsx)(F, {
@@ -5655,14 +5655,14 @@ function Ms({ data: e, sections: t, reload: n, refreshing: r }) {
}, t) : null;
}) });
}
-var Ns = 0;
-function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {
- let [s] = (0, Z.useState)(() => `board-tabs-${++Ns}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);
+var Ps = 0;
+function Fs({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i, reload: a, refreshing: o }) {
+ let [s] = (0, Z.useState)(() => `board-tabs-${++Ps}`), [c, l] = (0, Z.useState)(r), u = (0, Z.useRef)(null), d = (0, Z.useRef)(c);
(0, Z.useEffect)(() => {
l(r);
}, [r]), (0, Z.useEffect)(() => {
- let t = Os(e);
- t && kn("downloads", t), kn("network", ks(e)), kn("maintenance", As(e));
+ let t = ks(e);
+ t && An("downloads", t), An("network", As(e)), An("maintenance", js(e));
}, [e]), (0, Z.useLayoutEffect)(() => {
if (d.current === c) return;
d.current = c;
@@ -5674,9 +5674,9 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
window.scrollTo(0, Math.max(0, window.scrollY + t.getBoundingClientRect().top - r));
}, [c]);
let f = (e) => {
- l(e), In(Fn(e), {
+ l(e), Ln(In(e), {
replace: !0,
- state: Cn.navigation.location.state
+ state: wn.navigation.location.state
});
}, [p, m] = (0, Z.useState)(() => matchMedia("(max-width:900px)").matches);
(0, Z.useEffect)(() => {
@@ -5686,7 +5686,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
let h = (0, Z.useRef)([]), g = {
data: e,
receipt: t
- }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(Ms, {
+ }, _ = (t) => /* @__PURE__ */ (0, Q.jsx)(Ns, {
data: e,
sections: t,
reload: a,
@@ -5701,22 +5701,22 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
{
title: "媒体库与入库",
body: (n) => /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(n),
+ ...dr(n),
children: [
_([
"media_sources",
"library_count",
"mount_dependencies"
]),
- !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(vo, { ...g }) : null,
- /* @__PURE__ */ (0, Q.jsx)(Fo, { receipt: t }),
- /* @__PURE__ */ (0, Q.jsx)(Oo, { receipt: t })
+ !e.section_errors?.media_sources && !e.section_errors?.library_count ? /* @__PURE__ */ (0, Q.jsx)(yo, { ...g }) : null,
+ /* @__PURE__ */ (0, Q.jsx)(Io, { receipt: t }),
+ /* @__PURE__ */ (0, Q.jsx)(ko, { receipt: t })
]
})
},
{
title: "来源与订阅",
- body: (e) => /* @__PURE__ */ (0, Q.jsx)(Ds, {
+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(Os, {
...g,
panel: e,
issues: _(["entry_links"])
@@ -5724,7 +5724,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
},
...b || e.section_errors?.downloads ? [{
title: "下载渠道",
- body: (e) => /* @__PURE__ */ (0, Q.jsx)(Tr, {
+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(Er, {
initial: b,
receipt: t,
panel: e,
@@ -5733,7 +5733,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
}] : [],
...y ? [{
title: "网络与访问",
- body: (e) => /* @__PURE__ */ (0, Q.jsx)(fs, {
+ body: (e) => /* @__PURE__ */ (0, Q.jsx)(ps, {
...g,
panel: e,
issues: _(v)
@@ -5742,7 +5742,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
{
title: "应用与维护",
body: (e) => /* @__PURE__ */ (0, Q.jsxs)("div", {
- ...ur(e),
+ ...dr(e),
children: [
_([
"startup",
@@ -5755,9 +5755,9 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
"automatic_updates",
"facts"
]),
- /* @__PURE__ */ (0, Q.jsx)(Ia, { ...g }),
- /* @__PURE__ */ (0, Q.jsx)(ko, { receipt: t }),
- /* @__PURE__ */ (0, Q.jsx)(wa, {
+ /* @__PURE__ */ (0, Q.jsx)(La, { ...g }),
+ /* @__PURE__ */ (0, Q.jsx)(Ao, { receipt: t }),
+ /* @__PURE__ */ (0, Q.jsx)(Ta, {
...g,
reopenTutorial: n
})
@@ -5767,7 +5767,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
{
title: "系统诊断",
body: (e) => /* @__PURE__ */ (0, Q.jsx)("div", {
- ...ur(e),
+ ...dr(e),
children: e.active ? i : null
})
}
@@ -5783,7 +5783,7 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
return /* @__PURE__ */ (0, Q.jsxs)("div", {
ref: u,
className: "ui-configpage",
- children: [/* @__PURE__ */ (0, Q.jsx)(kt, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(At, {
className: "ui-board-local-nav",
role: "tablist",
"aria-label": "配置分区",
@@ -5818,6 +5818,6 @@ function Ps({ data: e, receipt: t, reopenTutorial: n, section: r, diagnostics: i
})] }, e))]
});
}
-export { js as ConfigurationPage };
+export { Ms as ConfigurationPage };
-//# debugId=80caf3f2-9a7b-4fda-9c35-03d51996f275
\ No newline at end of file
+//# debugId=415e66e2-d1aa-469f-9d5a-6269305d5cf9
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 1c95481ff..e8978f6b9 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] = "f801708c-39a2-426c-b8b8-125b72b1203f", e._sentryDebugIdIdentifier = "sentry-dbid-f801708c-39a2-426c-b8b8-125b72b1203f");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "35bdebfc-79fb-4902-bad8-ce5d25be7c0a", e._sentryDebugIdIdentifier = "sentry-dbid-35bdebfc-79fb-4902-bad8-ce5d25be7c0a");
} 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) => {
@@ -16325,61 +16325,61 @@ function wg(e, t = 100, n) {
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Tg = 100, Eg = 10, dee = 1, fee = 800, Dg = .3, pee = .3, mee = .01, hee = 2, gee = .005, _ee = .5, vee = .01, yee = 10, Og = .05, kg = (e) => e < 0 ? 1 / Math.max(1 + e, Og) : Math.max(1 - e, Og);
-function Ag(e, t) {
+var Tg = 100, dee = 10, fee = 1, pee = 800, mee = .3, hee = .3, gee = .01, _ee = 2, vee = .005, yee = .5, bee = .01, xee = 10, Eg = .05, Dg = (e) => e < 0 ? 1 / Math.max(1 + e, Eg) : Math.max(1 - e, Eg);
+function Og(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Mg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Ag((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function jg(e, t) {
+function kg(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var bee = 12;
-function Mg(e, t, n) {
+var See = 12;
+function Ag(e, t, n) {
let r = n;
- for (let n = 1; n < bee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < See; n++) r -= e(r) / t(r);
return r;
}
-var Ng = .001;
-function xee({ duration: e = fee, bounce: t = Dg }) {
- let n, r, i = kg(t);
- e = Tm(vee, yee, /* @__PURE__ */ Im(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = jg(t, i), o = Math.exp(-r);
- return Ng - n / a * o;
+var jg = .001;
+function Cee({ duration: e = pee, bounce: t = mee }) {
+ let n, r, i = Dg(t);
+ e = Tm(bee, xee, /* @__PURE__ */ Im(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = kg(t, i), o = Math.exp(-r);
+ return jg - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = jg(t * t, i);
- return (-n(t) + Ng > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = kg(t * t, i);
+ return (-n(t) + jg > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Mg(n, r, a), s = o * Ag(i, o * e), c = s * s;
+ let a = 5 / e, o = Ag(n, r, a), s = o * Og(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
duration: /* @__PURE__ */ Fm(e)
};
}
-var Pg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Fg(e, t) {
- if (Pg(e, t)) return e;
+var Mg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Ng(e, t) {
+ if (Mg(e, t)) return e;
}
-function See(e) {
- let t = Fg(e.stiffness), n = Fg(e.damping, !0), r = Fg(e.mass), i = {
+function wee(e) {
+ let t = Ng(e.stiffness), n = Ng(e.damping, !0), r = Ng(e.mass), i = {
...e,
stiffness: t ?? Tg,
- damping: n ?? Eg,
- mass: r ?? dee,
+ damping: n ?? dee,
+ mass: r ?? fee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = kg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Ag(t, 2 * Math.PI / 1.2);
+ let t = Dg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Og(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, xee(i)), i.isResolvedFromDuration = !0;
- Pg(i.stiffness) && Pg(i.damping, !0) || (i.stiffness = Tg, i.damping = Eg);
+ } else Object.assign(i, Cee(i)), i.isResolvedFromDuration = !0;
+ Mg(i.stiffness) && Mg(i.damping, !0) || (i.stiffness = Tg, i.damping = dee);
}
return i;
}
-function Ig(e = pee, t = Dg) {
+function Pg(e = hee, t = mee) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16387,7 +16387,7 @@ function Ig(e = pee, t = Dg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Im(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Im(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = wee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Im(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Im(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16395,12 +16395,12 @@ function Ig(e = pee, t = Dg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? mee : hee), g.restDelta = n.restDelta || (e ? gee : _ee);
+ g.restSpeed = n.restSpeed || (e ? gee : _ee), g.restDelta = n.restDelta || (e ? vee : yee);
};
_();
let v, y, b;
if (p < 1) {
- let e = jg(m, p), t = {
+ let e = kg(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16456,12 +16456,12 @@ function Ig(e = pee, t = Dg) {
};
return S;
}
-var Lg = /* @__PURE__ */ Object.assign(Ig, { applyToOptions: (e) => {
- let t = wg(e, 100, Ig);
+var Fg = /* @__PURE__ */ Object.assign(Pg, { applyToOptions: (e) => {
+ let t = wg(e, 100, Pg);
return e.ease = t.ease, e.duration = /* @__PURE__ */ Fm(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Ig({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16471,7 +16471,7 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Lg({
+ p(f.value) && (b = e, x = Fg({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16489,7 +16489,7 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Cee(e, t, n) {
+function Tee(e, t, n) {
let r = [], i = Em.mix || mg, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
@@ -16497,13 +16497,13 @@ function Cee(e, t, n) {
}
return r;
}
-function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Lg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Cee(t, r, i), c = s.length, l = (n) => {
+ let s = Tee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
@@ -16513,7 +16513,7 @@ function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
return n ? (t) => l(Tm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Bg(e, t) {
+function Rg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ Nm(0, t, r);
@@ -16521,19 +16521,19 @@ function Bg(e, t) {
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Vg(e) {
+function zg(e) {
let t = [0];
- return Bg(t, e.length - 1), t;
+ return Rg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function wee(e, t) {
+function Eee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Tee(e, t) {
+function Dee(e, t) {
return e.map(() => t || Qm).splice(0, e.length - 1);
}
-function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+function Bg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ $m(r) ? r.map(ih) : ih(r) || Qm, s = {
done: !1,
value: t[0]
@@ -16545,8 +16545,8 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
next: (t) => (s.value = i ? i(o(e > 0 ? Tm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = zg(wee(n && n.length === t.length ? n : Vg(t), e), t, {
- ease: Array.isArray(o) ? o : Tee(t, o),
+ let c = Lg(Eee(n && n.length === t.length ? n : zg(t), e), t, {
+ ease: Array.isArray(o) ? o : Dee(t, o),
mixer: a
});
return {
@@ -16555,35 +16555,35 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Eee = 5;
-function Dee(e, t, n) {
- let r = Math.max(t - Eee, 0);
+var Oee = 5;
+function kee(e, t, n) {
+ let r = Math.max(t - Oee, 0);
return /* @__PURE__ */ Lm(n - e(r), t - r);
}
-function Ug(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
+function Vg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : kee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Oee = (e) => e !== null;
-function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Oee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Aee = (e) => e !== null;
+function Hg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Aee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var kee = {
- decay: Rg,
- inertia: Rg,
- tween: Hg,
- keyframes: Hg,
- spring: Lg
+var jee = {
+ decay: Ig,
+ inertia: Ig,
+ tween: Bg,
+ keyframes: Bg,
+ spring: Fg
};
-function Gg(e) {
- typeof e.type == "string" && (e.type = kee[e.type]);
+function Ug(e) {
+ typeof e.type == "string" && (e.type = jee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Aee = 40, Kg = (e, t) => t - e > Aee && !Em.useManualTiming ? t : e;
+var Mee = 40, Wg = (e, t) => t - e > Mee && !Em.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function qg(e, t) {
+function Gg(e, t) {
return {
kind: e,
animation: t,
@@ -16592,11 +16592,11 @@ function qg(e, t) {
frameIsProcessing: ah.isProcessing
};
}
-function Jg(e, t, n) {
+function Kg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...qg("animation-start", e),
+ ...Gg("animation-start", e),
options: n ? {
...t,
...n
@@ -16604,17 +16604,17 @@ function Jg(e, t, n) {
});
} catch {}
}
-function jee(e, t) {
+function Nee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...qg("layout-animation-start", e),
+ ...Gg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Yg = class {
+var qg = class {
constructor() {
this.isResolved = !1;
}
@@ -16632,7 +16632,7 @@ var Yg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Mee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
+}, Pee = (e) => e / 100, Jg = (e) => Math.round(e * 1e4) / 1e4, Yg = class extends qg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -16640,13 +16640,13 @@ var Yg = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== ch.now() && this.tick(ch.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Kg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Gg(e);
- let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
- this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Mee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
+ Ug(e);
+ let { type: t = Bg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Bg;
+ this.mixKeyframes = void 0, s !== Bg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Pee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16666,20 +16666,20 @@ var Yg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Kg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Wg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Ig && (f.value = Hg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Jg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Ig ? Hg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -16703,7 +16703,7 @@ var Yg = class {
e = /* @__PURE__ */ Fm(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Ug(this.generator, this.currentTime, this.options.velocity);
+ return Vg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -16740,27 +16740,27 @@ var Yg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Nee = /* @__PURE__ */ new Set([
+}, Fee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Pee(e) {
+function Iee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(yh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Nee.has(t);
+ let i = n.replace(r, ""), a = +!!Fee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
+var Lee = /\b([a-z-]*)\(.*?\)/gu, Xg = {
...rg,
getAnimatableNone: (e) => {
- let t = e.match(Fee);
- return t ? t.map(Pee).join(" ") : e;
+ let t = e.match(Lee);
+ return t ? t.map(Iee).join(" ") : e;
}
-}, $g = {
+}, Zg = {
...rg,
getAnimatableNone: (e) => {
let t = rg.parse(e);
@@ -16769,10 +16769,10 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
alpha: 1
} : e));
}
-}, e_ = {
+}, Qg = {
...gh,
transform: Math.round
-}, t_ = {
+}, $g = {
rotate: jh,
pathRotation: jh,
rotateX: jh,
@@ -16798,7 +16798,7 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
originX: Ih,
originY: Ih,
originZ: Nh
-}, n_ = {
+}, e_ = {
borderWidth: Nh,
borderTopWidth: Nh,
borderRightWidth: Nh,
@@ -16849,13 +16849,13 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
fontSize: Nh,
backgroundPositionX: Nh,
backgroundPositionY: Nh,
- ...t_,
- zIndex: e_,
+ ...$g,
+ zIndex: Qg,
fillOpacity: _h,
strokeOpacity: _h,
- numOctaves: e_
-}, Iee = {
- ...n_,
+ numOctaves: Qg
+}, Ree = {
+ ...e_,
color: Rh,
backgroundColor: Rh,
outlineColor: Rh,
@@ -16866,21 +16866,21 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
borderRightColor: Rh,
borderBottomColor: Rh,
borderLeftColor: Rh,
- filter: Qg,
- WebkitFilter: Qg,
- mask: $g,
- WebkitMask: $g
-}, r_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([Qg, $g]);
-function i_(e, t) {
- let n = r_(e);
- return Lee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Xg,
+ WebkitFilter: Xg,
+ mask: Zg,
+ WebkitMask: Zg
+}, t_ = (e) => Ree[e], zee = /*@__PURE__*/ new Set([Xg, Zg]);
+function n_(e, t) {
+ let n = t_(e);
+ return zee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function a_(e) {
+function r_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Ree = {
+var i_ = (e) => e * 180 / Math.PI, a_ = (e) => o_(i_(Math.atan2(e[1], e[0]))), Bee = {
x: 4,
y: 5,
translateX: 4,
@@ -16889,44 +16889,44 @@ var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), R
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: s_,
- rotateZ: s_,
- skewX: (e) => o_(Math.atan(e[1])),
- skewY: (e) => o_(Math.atan(e[2])),
+ rotate: a_,
+ rotateZ: a_,
+ skewX: (e) => i_(Math.atan(e[1])),
+ skewY: (e) => i_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), zee = {
+}, o_ = (e) => (e %= 360, e < 0 && (e += 360), e), s_ = a_, c_ = (e) => Math.hypot(e[0], e[1]), l_ = (e) => Math.hypot(e[4], e[5]), Vee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: u_,
- scaleY: d_,
+ scaleX: c_,
+ scaleY: l_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (u_(e) + d_(e)) / 2,
- rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
- rotateZ: l_,
- rotate: l_,
- skewX: (e) => o_(Math.atan(e[4])),
- skewY: (e) => o_(Math.atan(e[1])),
+ scale: (e) => (c_(e) + l_(e)) / 2,
+ rotateX: (e) => o_(i_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => o_(i_(Math.atan2(-e[2], e[0]))),
+ rotateZ: s_,
+ rotate: s_,
+ skewX: (e) => i_(Math.atan(e[4])),
+ skewY: (e) => i_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function f_(e) {
+function u_(e) {
return +!!e.includes("scale");
}
-function p_(e, t) {
- if (!e || e === "none") return f_(t);
+function d_(e, t) {
+ if (!e || e === "none") return u_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return f_(t);
- let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return u_(t);
+ let r = (n[1] ? Vee : Bee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var m_ = (e, t) => {
+var f_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return p_(n, t);
-}, h_ = [
+ return d_(n, t);
+}, p_ = [
"transformPerspective",
"x",
"y",
@@ -16945,14 +16945,14 @@ var m_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === gh || e === Nh, Bee = /* @__PURE__ */ new Set([
+], m_ = /* @__PURE__ */ new Set([...p_, "pathRotation"]), h_ = (e) => e === gh || e === Nh, Hee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Vee = /* @__PURE__ */ h_.filter((e) => !Bee.has(e));
-function Hee(e) {
+]), Uee = /* @__PURE__ */ p_.filter((e) => !Hee.has(e));
+function Wee(e) {
let t = [];
- return Vee.forEach((n) => {
+ return Uee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16961,16 +16961,16 @@ function Hee(e) {
}
}), t;
}
-var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function v_(e, t, n, r, i, a) {
+var Gee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function g_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
+var __ = ({ transform: e }) => d_(e, "x"), v_ = ({ transform: e }) => d_(e, "y"), y_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => g_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => g_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16981,20 +16981,20 @@ var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: y_,
- y: b_,
- translateX: y_,
- translateY: b_
-}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
-function E_() {
- if (w_) {
+ x: __,
+ y: v_,
+ translateX: __,
+ translateY: v_
+}, b_ = /* @__PURE__ */ new Set(), x_ = !1, S_ = !1, C_ = !1;
+function w_() {
+ if (S_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- S_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
+ b_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Gee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Hee(e);
+ let t = Wee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -17006,29 +17006,29 @@ function E_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
+ S_ = !1, x_ = !1, b_.forEach((e) => e.complete(C_)), b_.clear();
}
-function D_() {
- S_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (w_ = !0);
+function T_() {
+ b_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (S_ = !0);
});
}
-function Wee() {
- T_ = !0, D_(), E_(), T_ = !1;
+function Kee() {
+ C_ = !0, T_(), w_(), C_ = !1;
}
-function Gee(e, t, n) {
+function qee(e, t, n) {
if (typeof e == "string") {
if (Dm(e) || km(e)) return parseFloat(e);
- if (!rg.test(e) && rg.test(n)) return i_(t, n);
+ if (!rg.test(e) && rg.test(n)) return n_(t, n);
}
return e ?? void 0;
}
-var O_ = class {
+var E_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (S_.add(this), C_ || (C_ = !0, _g.read(D_), _g.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (b_.add(this), x_ || (x_ = !0, _g.read(T_), _g.resolveKeyframes(w_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -17036,71 +17036,71 @@ var O_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Gee(n.readValue(t, a), t, a);
+ let r = qee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- a_(e);
+ r_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), b_.delete(this);
}
cancel() {
- this.state === "scheduled" && (S_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (b_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, k_ = (e) => e.startsWith("--");
+}, D_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function A_(e, t, n) {
- k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function O_(e, t, n) {
+ D_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Kee = {};
+var Jee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function j_(e, t) {
+function k_(e, t) {
let n = /* @__PURE__ */ Am(e);
- return () => Kee[t] ?? n();
+ return () => Jee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), M_ = /*@__PURE__*/ j_(() => {
+var Yee = /* @__PURE__ */ k_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), A_ = /*@__PURE__*/ k_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), N_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, P_ = {
+}, "linearEasing"), j_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, M_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ N_([
+ circIn: /*@__PURE__*/ j_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ N_([
+ circOut: /*@__PURE__*/ j_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ N_([
+ backIn: /*@__PURE__*/ j_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ N_([
+ backOut: /*@__PURE__*/ j_([
.33,
1.53,
.69,
@@ -17108,14 +17108,14 @@ var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function F_(e, t) {
- if (e) return typeof e == "function" ? M_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? N_(e) : Array.isArray(e) ? e.map((e) => F_(e, t) || P_.easeOut) : P_[e];
+function N_(e, t) {
+ if (e) return typeof e == "function" ? A_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? j_(e) : Array.isArray(e) ? e.map((e) => N_(e, t) || M_.easeOut) : M_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Xee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = F_(s, i);
+ let d = N_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17128,27 +17128,27 @@ function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function I_(e) {
+function P_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Yee({ type: e, ...t }) {
- return I_(e) && M_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Zee({ type: e, ...t }) {
+ return P_(e) && A_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var L_ = class extends Yg {
+var F_ = class extends qg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Yee(e);
- this.animation = Jee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Zee(e);
+ this.animation = Xee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Wg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
+ let e = Hg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), O_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Jg(this, e, c);
+ }, Kg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17202,22 +17202,22 @@ var L_ = class extends Yg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Yee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
}
-}, R_ = {
+}, I_ = {
anticipate: Km,
backInOut: Gm,
circInOut: Ym
};
-function Xee(e) {
- return e in R_;
+function Qee(e) {
+ return e in I_;
}
-function Zee(e) {
- typeof e.ease == "string" && Xee(e.ease) && (e.ease = R_[e.ease]);
+function $ee(e) {
+ typeof e.ease == "string" && Qee(e.ease) && (e.ease = I_[e.ease]);
}
-var Qee = class extends L_ {
+var ete = class extends F_ {
constructor(e) {
- Zee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ $ee(e), Ug(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? (ch.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -17225,7 +17225,7 @@ var Qee = class extends L_ {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Zg({
+ this.sampler = new Yg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17244,39 +17244,39 @@ var Qee = class extends L_ {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Tm(0, 10, a) : 0, s = this.sample(a);
- n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && O_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, z_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
+}, L_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function $ee(e) {
+function tte(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function ete(e, t, n, r) {
+function nte(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = z_(i, t), s = z_(a, t);
- return !o || !s ? !1 : $ee(e) || (n === "spring" || I_(n)) && r;
+ let a = e[e.length - 1], o = L_(i, t), s = L_(a, t);
+ return !o || !s ? !1 : tte(e) || (n === "spring" || P_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function B_(e) {
+function R_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var V_ = /* @__PURE__ */ new Set([
+var z_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), tte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function nte(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && tte.test(e[t])) return !0;
+]), rte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function ite(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && rte.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), U_ = /* @__PURE__ */ new Set([
+var B_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), V_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17287,54 +17287,54 @@ var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), W_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function rte(e) {
+]), H_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function ate(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(V_.has(n) || U_.has(n))) return !1;
+ if (!n || !(z_.has(n) || V_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return W_() && (V_.has(n) || U_.has(n) && nte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !H_(e);
+ return H_() && (z_.has(n) || V_.has(n) && ite(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !B_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var G_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ite = {
+var U_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ote = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ate = h_.length, K_ = {}, q_ = (e, t, n = G_(t, t_[e])) => (K_[e] || (K_[e] = (ite[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function ote(e, t, n) {
+}, ste = p_.length, W_ = {}, G_ = (e, t, n = U_(t, $g[e])) => (W_[e] || (W_[e] = (ote[e] || e) + "(")) + n + ")", K_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function cte(e, t, n) {
let r = "";
- for (let i = 0; i < ate; i++) {
- let a = h_[i], o = e[a];
+ for (let i = 0; i < ste; i++) {
+ let a = p_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = G_(o, n_[a]));
- J_(a, o) || (r += q_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = U_(o, e_[a]));
+ K_(a, o) || (r += G_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += G_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var Y_ = /* @__PURE__ */ new WeakMap(), ste = 200, X_ = .001, cte = .1, lte = .001, ute = 100, dte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Vg(Array(n + 1)).map((n) => og(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), fte = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && W_() && M_();
-function pte(e) {
- let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !H_(e);
+var q_ = /* @__PURE__ */ new WeakMap(), lte = 200, J_ = .001, ute = .1, dte = .001, fte = 100, pte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Y_ = (e, t) => Math.abs(e - t) <= J_, X_ = (e, t) => e - t, Z_ = (e, t, n) => zg(Array(n + 1)).map((n) => og(e, t, n)), Q_ = (e) => e.motionValue.owner, $_ = (e) => q_.get(e), ev = ({ state: e }) => e === "idle" || e === "finished", tv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), mte = ({ name: e, motionValue: t }) => e && p_.includes(e) && t?.owner?.current instanceof HTMLElement && H_() && A_();
+function hte(e) {
+ let t = Q_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (tv(t, "transform") || "none") === "none" && !tv(t, "pathRotation") && !t.projection?.isProjecting() && !B_(e);
}
-var mte = class extends Zg {
+var gte = class extends Yg {
constructor(e) {
- let t = ev(e).current, { driver: n = bg } = e, r, i = pte(e);
+ let t = Q_(e).current, { driver: n = bg } = e, r, i = hte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = tv(t);
+ let n = $_(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = tv(t);
+ let e = $_(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17345,7 +17345,7 @@ var mte = class extends Zg {
};
}
get group() {
- return tv(ev(this.options).current);
+ return $_(Q_(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17365,8 +17365,8 @@ var mte = class extends Zg {
return this.isAccelerated() ? this.sampleAt(ch.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? N_(n) : dte(n) && P_[n];
- if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? j_(n) : pte(n) && M_[n];
+ if (o && !i && !r && e.length === 2 && t === Bg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17376,7 +17376,7 @@ var mte = class extends Zg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Hg) === Hg ? u || Vg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Bg) === Bg ? u || zg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17396,7 +17396,7 @@ var mte = class extends Zg {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || hte(ev(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || _te(Q_(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17416,13 +17416,13 @@ var mte = class extends Zg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function hte(e) {
+function _te(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? h_ : a) {
- let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? p_ : a) {
+ let a = r.get(s), c = t === void 0 ? tv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17430,7 +17430,7 @@ function hte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && J_(r, i) || (n += q_(r, i) + " ");
+ t && K_(r, i) || (n += G_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17454,32 +17454,32 @@ function hte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(ste, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(lte, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
+ let a = Z_(t, n, i).concat(r).sort(X_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * J_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !Y_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Y_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Jg(t) + " " + Jg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? lte : cte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? dte : ute))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = $_(t, n, Math.ceil((n - t) / 100));
+ }, s = Z_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
- return i.sort(Q_);
+ for (let e of s.sort(X_)) e > c && o(c, e, 0), c = e;
+ return i.sort(X_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17518,10 +17518,10 @@ function hte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = h_.filter((t) => {
+ i = {}, a = p_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = rv(e, t);
- return n !== void 0 && !J_(t, n);
+ let n = i[t] = tv(e, t);
+ return n !== void 0 && !K_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17567,18 +17567,18 @@ function hte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, tv(t) === A && Y_.delete(t), A.isJS || v(), !0), k = () => {
+ }, O = () => !n.size && (u = !0, $_(t) === A && q_.delete(t), A.isJS || v(), !0), k = () => {
let t = ch.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = tv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => ev(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < ute) return A.demote();
+ if (t - f < fte) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17591,11 +17591,11 @@ function hte(e) {
u || (c ||= e, d ||= !!t, l || (l = !0, ah.isProcessing ? _g.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- nv(e) && n.delete(e), O() || A.schedule(!0);
+ ev(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (tv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17604,40 +17604,40 @@ function hte(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return Y_.set(t, A), A;
+ return q_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var gte = class extends Yg {
+var vte = class extends qg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = ch.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || O_;
+ let o = i?.KeyframeResolver || E_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = ch.now();
- let u = ete(e, i, a, o);
- u || ((Em.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], B_(n), n.repeat = 0);
+ let u = nte(e, i, a, o);
+ u || ((Em.instantAnimations || !s) && l?.(Hg(e, n, t)), e[0] = e[e.length - 1], R_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && rte(n), p = !f && fte(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
+ let f = u && !c && ate(n), p = !f && mte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Wg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Qee(n);
+ m = new ete(n);
} catch {
- m = new Zg(n);
+ m = new Yg(n);
}
- } else m = p ? new mte(n) : new Zg(n);
+ } else m = p ? new gte(n) : new Yg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17650,7 +17650,7 @@ var gte = class extends Yg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Kee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17691,7 +17691,7 @@ var gte = class extends Yg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, _te = class {
+}, yte = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17731,10 +17731,10 @@ var gte = class extends Yg {
return this.getAll("startTime");
}
get duration() {
- return iv(this.animations, "duration");
+ return nv(this.animations, "duration");
}
get iterationDuration() {
- return iv(this.animations, "iterationDuration");
+ return nv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17752,7 +17752,7 @@ var gte = class extends Yg {
this.runAll("complete");
}
};
-function iv(e, t) {
+function nv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17761,22 +17761,22 @@ function iv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var av = class extends _te {
+var rv = class extends yte {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, ov = /* @__PURE__ */ new WeakMap(), vte = (e, t = "") => `${e}:${t}`;
-function yte(e) {
- let t = ov.get(e);
- return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
+}, iv = /* @__PURE__ */ new WeakMap(), bte = (e, t = "") => `${e}:${t}`;
+function xte(e) {
+ let t = iv.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), iv.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function sv(e, t, n, r = 0, i = 1) {
+function av(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
+var ov = 30, Ste = (e) => !isNaN(parseFloat(e)), sv = { current: void 0 }, cv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = ch.now();
@@ -17784,7 +17784,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bte(this.current));
+ this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ste(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17834,7 +17834,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.delete(e);
}
get() {
- lv.current?.push(this);
+ sv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17846,8 +17846,8 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
}
getVelocity() {
let e = ch.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ov) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, ov);
return /* @__PURE__ */ Lm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -17869,11 +17869,11 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function dv(e, t) {
- return new uv(e, t);
+function lv(e, t) {
+ return new cv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function fv(e, t) {
+function uv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17884,25 +17884,25 @@ function fv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function pv(e, t) {
+function dv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : fv(n, e);
+ return n === e ? n : uv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var xte = {
+var Cte = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Ste = (e) => ({
+}, wte = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Cte = {
+}), Tte = {
type: "keyframes",
duration: .8
-}, wte = {
+}, Ete = {
type: "keyframes",
ease: [
.25,
@@ -17911,7 +17911,7 @@ var xte = {
1
],
duration: .3
-}, Tte = (e, { keyframes: t }) => t.length > 2 ? Cte : g_.has(e) ? e.startsWith("scale") ? Ste(t[1]) : xte : wte, Ete = /* @__PURE__ */ new Set([
+}, Dte = (e, { keyframes: t }) => t.length > 2 ? Tte : m_.has(e) ? e.startsWith("scale") ? wte(t[1]) : Cte : Ete, Ote = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17925,13 +17925,13 @@ var xte = {
"out",
"mixer"
]);
-function Dte(e) {
- for (let t in e) if (!Ete.has(t)) return !0;
+function kte(e) {
+ for (let t in e) if (!Ote.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var mv = (e, t, n, r = {}, i, a) => (o) => {
- let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+var fv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = dv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ Fm(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -17950,10 +17950,10 @@ var mv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Dte(s) || Object.assign(u, Tte(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ kte(s) || Object.assign(u, Dte(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (B_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, B_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Wg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (R_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, R_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Hg(u.keyframes, s);
if (e !== void 0) {
_g.update(() => {
u.onUpdate(e), u.onComplete();
@@ -17961,103 +17961,103 @@ var mv = (e, t, n, r = {}, i, a) => (o) => {
return;
}
}
- return s.isSync ? new Zg(u) : new gte(u);
-}, Ote = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function kte(e) {
- let t = Ote.exec(e);
+ return s.isSync ? new Yg(u) : new vte(u);
+}, Ate = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function jte(e) {
+ let t = Ate.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function hv(e, t, n = 1) {
- let [r, i] = kte(e);
+function pv(e, t, n = 1) {
+ let [r, i] = jte(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
return Dm(e) ? parseFloat(e) : e;
}
- return ph(i) ? hv(i, t, n + 1) : i;
+ return ph(i) ? pv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Ate(e) {
+function Mte(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function gv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ate(r)) : t;
+function mv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Mte(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function _v(e, t, n) {
- return gv(e.getProps(), t, n, e);
+function hv(e, t, n) {
+ return mv(e.getProps(), t, n, e);
}
-var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
+var gv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, _v = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...h_
-]), jte = (e) => Array.isArray(e);
+ ...p_
+]), Nte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Mte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
+function Pte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, lv(n));
}
-function Nte(e) {
- return jte(e) ? e[e.length - 1] || 0 : e;
+function Fte(e) {
+ return Nte(e) ? e[e.length - 1] || 0 : e;
}
-function Pte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
+function Ite(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = hv(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Mte(e, t, Nte(i[t]));
+ for (let t in i) Pte(e, t, Fte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var bv = (e) => !!(e && e.getVelocity);
+var vv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Fte(e) {
- return !!(bv(e) && e.add);
+function Lte(e) {
+ return !!(vv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function xv(e, t) {
+function yv(e, t) {
let n = e.getValue("willChange");
- if (Fte(n)) return n.add(t);
+ if (Lte(n)) return n.add(t);
if (!n && Em.WillChange) {
let n = new Em.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var Sv = "data-framer-appear-id";
+var bv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function Cv(e) {
- return e.props[Sv];
+function xv(e) {
+ return e.props[bv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Ite = typeof window < "u";
-function Lte({ protectedKeys: e, needsAnimating: t }, n) {
+var Rte = typeof window < "u";
+function zte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Sv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? fv(a, c) : c;
+ a = a ? uv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Lte(f, t)) continue;
+ if (i === void 0 || f && zte(f, t)) continue;
let o = {
delay: n,
- ...pv(f?.out[t] || a || {}, t)
+ ...dv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
@@ -18066,79 +18066,79 @@ function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
continue;
}
let p = !1;
- if (Ite && window.MotionHandoffAnimation) {
- let n = Cv(e);
+ if (Rte && window.MotionHandoffAnimation) {
+ let n = xv(e);
if (n) {
let e = window.MotionHandoffAnimation(n, t, _g);
e !== null && (o.startTime = e, p = !0);
}
}
- xv(e, t);
+ yv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
+ r.start(fv(t, r, i, m && _v.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
let t = () => _g.update(() => {
- o && Pte(e, o);
+ o && Ite(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Tv(e, t, n = {}) {
- let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
+function Cv(e, t, n = {}) {
+ let r = hv(e, t, gv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Sv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Tv(e, t, {
+ e.notify("AnimationStart", t), l.push(Cv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + av(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Rte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
+function Bte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Cv(e, t, n))) : typeof t == "string" ? Cv(e, t, n) : Promise.all(Sv(e, hv(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var zte = {
+var Vte = {
test: (e) => e === "auto",
parse: (e) => e
-}, Bte = (e) => (t) => t.test(e), Vte = [
+}, Hte = (e) => (t) => t.test(e), Ute = [
gh,
Nh,
Mh,
jh,
Fh,
Ph,
- zte
-], Ev = (e) => Vte.find(Bte(e));
+ Vte
+], wv = (e) => Ute.find(Hte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Hte(e) {
+function Wte(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || km(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Ute = /* @__PURE__ */ new Set([
+var Gte = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Wte(e, t, n) {
+function Kte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Ute.has(t) && Yh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Gte.has(t) && Yh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = n_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Dv = class extends O_ {
+var Tv = class extends E_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18159,31 +18159,31 @@ var Dv = class extends O_ {
for (let n = 0; n < e.length; n++) {
let r = e[n];
if (typeof r == "string" && (r = r.trim(), ph(r))) {
- let i = hv(r, t.current);
+ let i = pv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !_v.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Ev(r), o = Ev(i);
- if (hh(r) !== hh(i) && x_[n]) this.needsMeasurement = !0;
+ let a = wv(r), o = wv(i);
+ if (hh(r) !== hh(i) && y_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
+ if (h_(a) && h_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else x_[n] && (this.needsMeasurement = !0);
+ else y_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Hte(e[t])) && n.push(t);
- n.length && Wte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Wte(e[t])) && n.push(t);
+ n.length && Kte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return y_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18199,19 +18199,19 @@ var Dv = class extends O_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Ov = [
+}, Ev = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Gte = /* @__PURE__ */ new Set([
+], qte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Ov,
+ ...Ev,
"width",
"maxWidth",
"height",
@@ -18254,21 +18254,21 @@ var Dv = class extends O_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Kte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Gte.has(t) && (e[n] = e[n] + "px");
+function Jte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && qte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var kv = [];
-function qte(e) {
- Av(e), kv.unshift(e);
+var Dv = [];
+function Yte(e) {
+ Ov(e), Dv.unshift(e);
}
-function Av(e) {
- wm(kv, e);
+function Ov(e) {
+ wm(Dv, e);
}
-function Jte(e) {
- return kv.find((t) => t.test(e));
+function Xte(e) {
+ return Dv.find((t) => t.test(e));
}
-function jv(e, t, n = {}, r) {
+function kv(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18276,7 +18276,7 @@ function jv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(fv(o, l, c, s && _v.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
@@ -18287,50 +18287,50 @@ function jv(e, t, n = {}, r) {
}
return i;
}
-function Mv(e, t, n, r, i) {
- return jv((r) => {
+function Av(e, t, n, r, i) {
+ return kv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Yte(i) ?? e.read(t, r, i);
+ o = Zte(i) ?? e.read(t, r, i);
}
- a = dv(o, { owner: i }), e(t, { [r]: a });
+ a = lv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Yte(e) {
+function Zte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Nv(e) {
+function jv(e) {
return Om(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Pv(e) {
+function Mv(e) {
return Om(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Fv = {};
-function Iv(e) {
- return Fv.current?.add(e), e;
+var Nv = {};
+function Pv(e) {
+ return Nv.current?.add(e), e;
}
-var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
+var Fv = (e) => Nv.current ? Nv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Rv(e, t, n) {
+function Iv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Nv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Xte = class {
+var Qte = class {
constructor(e = _g.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
@@ -18374,10 +18374,10 @@ var Xte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function zv(e, { step: t, ...n } = {}) {
+function Lv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Xte(t);
+ let a = r.get(n) ?? new Qte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18394,83 +18394,83 @@ function zv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Zte(e) {
+function $te(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
+ a !== void 0 && (K_(i, a) || (t += (t && " ") + G_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + q_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + G_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Bv = /* @__PURE__ */ new Set([
+var Rv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Vv = (e, t) => G_(e.get(t)?.get(), n_[t]), Hv = (e, t, n, r) => {
+]), zv = (e, t) => U_(e.get(t)?.get(), e_[t]), Bv = (e, t, n, r) => {
let i, a;
- if (g_.has(n)) {
+ if (m_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => p_.indexOf(e) - p_.indexOf(t)));
}
- t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
- Y_.get(e)?.check(), e.style.transform = Zte(t);
+ t.get("transform") || (!jv(e) && !t.get("transformBox") && Bv(e, t, "transformBox", new cv("fill-box")), t.set("transform", new cv("none"), () => {
+ q_.get(e)?.check(), e.style.transform = $te(t);
})), a = t.get("transform");
- } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
- let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
+ } else Rv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new cv(""), () => {
+ let n = zv(t, "originX") ?? "50%", r = zv(t, "originY") ?? "50%", i = zv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = D_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = G_(r.getCurrent(), n_[n]);
+ e.style[n] = U_(r.getCurrent(), e_[n]);
};
return t.set(n, r, i, a);
-}, Qte = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
- if (g_.has(t)) return m_(e, t);
- let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
+}, ene = (e) => jv(e) || Mv(e), Vv = (e, t) => {
+ if (m_.has(t)) return f_(e, t);
+ let n = getComputedStyle(e), r = D_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, $te = /*@__PURE__*/ zv(Hv, {
- test: Qte,
- read: Uv
+}, tne = /*@__PURE__*/ Lv(Bv, {
+ test: ene,
+ read: Vv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Wv(e) {
+function Hv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Gv(e, t, n) {
+function Uv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (g_.has(e)) o = !0;
+ if (m_.has(e)) o = !0;
else if (dh(e)) i[e] = n;
else {
- let t = G_(n, n_[e]);
+ let t = U_(n, e_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = ote(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = cte(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var ene = {
+var nne = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, tne = {
+}, rne = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function nne(e, t, n = 1, r = 0, i = !0) {
+function ine(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? ene : tne;
+ let a = i ? nne : rne;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Kv = [
+var Wv = [
"transform",
"opacity",
"clipPath",
@@ -18480,55 +18480,55 @@ var Kv = [
"offsetRotate",
"offsetAnchor"
];
-function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Gv(e, s, l), c) {
+function Gv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Uv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Kv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && nne(d, i, a, o, !1);
+ for (let e of Wv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && ine(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function rne(e, t) {
+function ane(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Jv = (e, t, n, r, i = n) => {
- let a = rne(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
- let o = n_[n] || n_[i], s = a ? () => {
- e[i] = G_(r.get(), n_[n]);
+var Kv = (e, t, n, r, i = n) => {
+ let a = ane(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Hv(i));
+ let o = e_[n] || e_[i], s = a ? () => {
+ e[i] = U_(r.get(), e_[n]);
} : () => {
- let t = G_(r.get(), o);
+ let t = U_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function ine(e, t, n, r) {
+function one(e, t, n, r) {
return _g.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new cv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var ane = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? ine(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
+var sne = /*@__PURE__*/ Lv((e, t, n, r) => n.startsWith("path") && !m_.has(n) ? one(e, t, n, r) : n.startsWith("attr") ? Kv(e, t, n, r, qv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (g_.has(n) || Bv.has(n) || k_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
- test: Pv,
- read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (m_.has(n) || Rv.has(n) || D_(n) || n in e.style ? Bv : Kv)(e, t, n, r), {
+ test: Mv,
+ read: (e, t) => m_.has(t) ? e_[t]?.default || 0 : D_(t) || Wv.includes(t) ? Vv(e, t) || e.getAttribute(Hv(t)) || 0 : (t = qv(t), e.getAttribute(Hv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Yv(e) {
+function qv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Xv({ top: e, left: t, right: n, bottom: r }) {
+function Jv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18540,7 +18540,7 @@ function Xv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function one({ x: e, y: t }) {
+function cne({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18548,7 +18548,7 @@ function one({ x: e, y: t }) {
left: e.min
};
}
-function sne(e, t) {
+function lne(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18565,13 +18565,13 @@ function sne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Zv(e) {
+function Yv(e) {
return e === void 0 || e === 1;
}
-function Qv({ scale: e, scaleX: t, scaleY: n }) {
- return !Zv(e) || !Zv(t) || !Zv(n);
+function Xv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Yv(e) || !Yv(t) || !Yv(n);
}
-var $v = [
+var Zv = [
"rotate",
"rotateX",
"rotateY",
@@ -18579,67 +18579,67 @@ var $v = [
"skewX",
"skewY"
];
-function ey(e) {
- return Qv(e) || ny(e) || ty(e);
+function Qv(e) {
+ return Xv(e) || ey(e) || $v(e);
}
-function ty(e) {
+function $v(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function ny(e) {
- return ry(e.x) || ry(e.y);
+function ey(e) {
+ return ty(e.x) || ty(e.y);
}
-function ry(e) {
+function ty(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function iy(e, t, n) {
+function ny(e, t, n) {
return n + t * (e - n);
}
-function ay(e, t, n, r, i) {
- return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
+function ry(e, t, n, r, i) {
+ return i !== void 0 && (e = ny(e, i, r)), ny(e, n, r) + t;
}
-function oy(e, t = 0, n = 1, r, i) {
- e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
+function iy(e, t = 0, n = 1, r, i) {
+ e.min = ry(e.min, t, n, r, i), e.max = ry(e.max, t, n, r, i);
}
-function sy(e, { x: t, y: n }) {
- oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
+function ay(e, { x: t, y: n }) {
+ iy(e.x, t.translate, t.scale, t.originPoint), iy(e.y, n.translate, n.scale, n.originPoint);
}
-var cy = .999999999999, ly = 1.0000000000001;
-function cne(e, t, n, r = !1) {
+var oy = .999999999999, sy = 1.0000000000001;
+function une(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
- t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (cy(e.x, -a.scroll.offset.x), cy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ay(e, o)), r && (r.path?.[s] || r) !== a && Qv(a.latestValues) && dy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < sy && t.x > oy && (t.x = 1), t.y < sy && t.y > oy && (t.y = 1);
}
-function uy(e, t) {
+function cy(e, t) {
e.min += t, e.max += t;
}
-function dy(e, t, n, r, i = .5) {
- oy(e, t, n, og(e.min, e.max, i), r);
+function ly(e, t, n, r, i = .5) {
+ iy(e, t, n, og(e.min, e.max, i), r);
}
-function fy(e, t) {
+function uy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function py(e, t, n) {
+function dy(e, t, n) {
let r = n ?? e;
- dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ ly(e.x, uy(t.x, r.x), t.scaleX, t.scale, t.originX), ly(e.y, uy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function my(e, t) {
- return Xv(sne(e.getBoundingClientRect(), t));
+function fy(e, t) {
+ return Jv(lne(e.getBoundingClientRect(), t));
}
-function lne(e, t, n) {
- let r = my(e, n), { scroll: i } = t;
- return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
+function dne(e, t, n) {
+ let r = fy(e, n), { scroll: i } = t;
+ return i && (cy(r.x, i.offset.x), cy(r.y, i.offset.y)), r;
}
-var une = () => ({
+var fne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), dne = {}, fne = (e) => Pv(e) ? ane : $te, pne = class {
+}), pne = {}, mne = (e) => Mv(e) ? sne : tne, hne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Dv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Tv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18651,19 +18651,19 @@ var une = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return my(this.current);
+ return fy(this.current);
}
getProps() {
- return dne;
+ return pne;
}
};
-function mne(e, t, n, r) {
- if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
- let i = fne(e);
- return Mv(i, e, t, n, new pne(i, e));
+function gne(e, t, n, r) {
+ if (Nv.current?.track(e), r) return kv((e) => r.getValue(e, null), t, n, r);
+ let i = mne(e);
+ return Av(i, e, t, n, new hne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
+var _ne = /*@__PURE__*/ Lv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => Om(e),
@@ -18671,172 +18671,172 @@ var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: hy, cancel: gne } = /* @__PURE__ */ gg(queueMicrotask, !1);
+}), { schedule: py, cancel: vne } = /* @__PURE__ */ gg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function gy(e, t, n) {
- let r = bv(e) ? e : dv(e);
- return r.start(mv("", r, t, n)), r.animation;
+function my(e, t, n) {
+ let r = vv(e) ? e : lv(e);
+ return r.start(fv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var _y = {}, vy = {
+var hy = {}, gy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function _ne(e, t) {
+function yne(e, t) {
let n = ch.now();
- e = Lv(e);
+ e = Fv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
a >= t && (vg(r), e(a - t));
};
- return _g.setup(r, !0), Iv(() => vg(r));
+ return _g.setup(r, !0), Pv(() => vg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function vne(e) {
+function bne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function yne(e) {
- return Pv(e) && e.tagName === "svg";
+function xne(e) {
+ return Mv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function yy(e) {
- return bv(e) ? e.get() : e;
+function _y(e) {
+ return vv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var by = (e) => typeof e == "number" ? e : parseFloat(e), bne = Ov.length, xne = (e) => typeof e == "number" || Nh.test(e);
-function Sne(e, t, n, r, i, a) {
- i ? (e.opacity = og(0, n.opacity ?? 1, Cne(r)), e.opacityExit = og(t.opacity ?? 1, 0, wne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < bne; i++) {
- let a = Ov[i], o = xy(t, a), s = xy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xne(o) === xne(s) ? (e[a] = Math.max(og(by(o), by(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < $v.length; i++) {
- let a = $v[i];
+var vy = (e) => typeof e == "number" ? e : parseFloat(e), Sne = Ev.length, yy = (e) => typeof e == "number" || Nh.test(e);
+function Cne(e, t, n, r, i, a) {
+ i ? (e.opacity = og(0, n.opacity ?? 1, wne(r)), e.opacityExit = og(t.opacity ?? 1, 0, Tne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Sne; i++) {
+ let a = Ev[i], o = by(t, a), s = by(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || yy(o) === yy(s) ? (e[a] = Math.max(og(vy(o), vy(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < Zv.length; i++) {
+ let a = Zv[i];
(t[a] || n[a]) && (e[a] = og(t[a] || 0, n[a] || 0, r));
}
}
-function xy(e, t) {
+function by(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Cne = /*@__PURE__*/ Sy(0, .5, Jm), wne = /*@__PURE__*/ Sy(.5, .95, jm);
-function Sy(e, t, n) {
+var wne = /*@__PURE__*/ xy(0, .5, Jm), Tne = /*@__PURE__*/ xy(.5, .95, jm);
+function xy(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Nm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function Cy(e, t) {
+function Sy(e, t) {
e.min = t.min, e.max = t.max;
}
-function wy(e, t) {
- Cy(e.x, t.x), Cy(e.y, t.y);
+function Cy(e, t) {
+ Sy(e.x, t.x), Sy(e.y, t.y);
}
-function Ty(e, t) {
+function wy(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Tne = .9999, Ene = 1.0001, Dne = -.01, One = .01;
-function Ey(e) {
+var Ene = .9999, Dne = 1.0001, One = -.01, kne = .01;
+function Ty(e) {
return e.max - e.min;
}
-function kne(e, t, n) {
+function Ane(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Dy(e, t, n, r = .5) {
- e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Ey(n) / Ey(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tne && e.scale <= Ene || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Dne && e.translate <= One || isNaN(e.translate)) && (e.translate = 0);
+function Ey(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Ty(n) / Ty(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ene && e.scale <= Dne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= One && e.translate <= kne || isNaN(e.translate)) && (e.translate = 0);
}
-function Oy(e, t, n, r) {
- Dy(e.x, t.x, n.x, r?.originX), Dy(e.y, t.y, n.y, r?.originY);
+function Dy(e, t, n, r) {
+ Ey(e.x, t.x, n.x, r?.originX), Ey(e.y, t.y, n.y, r?.originY);
}
-function ky(e, t, n, r = 0) {
- e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ey(t);
+function Oy(e, t, n, r = 0) {
+ e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ty(t);
}
-function Ane(e, t, n, r) {
- ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
+function jne(e, t, n, r) {
+ Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
}
-function Ay(e, t, n, r = 0) {
+function ky(e, t, n, r = 0) {
let i = r ? og(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + Ey(t);
+ e.min = t.min - i, e.max = e.min + Ty(t);
}
-function jy(e, t, n, r) {
- Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
+function Ay(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function My(e, t, n, r, i) {
- return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
+function jy(e, t, n, r, i) {
+ return e -= t, e = ny(e, 1 / n, r), i !== void 0 && (e = ny(e, 1 / i, r)), e;
}
-function jne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Mne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Mh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = og(a.min, a.max, r);
- e === a && (s -= t), e.min = My(e.min, t, n, s, i), e.max = My(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = jy(e.min, t, n, s, i), e.max = jy(e.max, t, n, s, i);
}
-function Ny(e, t, [n, r, i], a, o) {
- jne(e, t[n], t[r], t[i], t.scale, a, o);
+function My(e, t, [n, r, i], a, o) {
+ Mne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Mne = [
+var Nne = [
"x",
"scaleX",
"originX"
-], Nne = [
+], Pne = [
"y",
"scaleY",
"originY"
];
-function Py(e, t, n, r) {
- Ny(e.x, t, Mne, n?.x, r?.x), Ny(e.y, t, Nne, n?.y, r?.y);
+function Ny(e, t, n, r) {
+ My(e.x, t, Nne, n?.x, r?.x), My(e.y, t, Pne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : jm;
-function Ly(e) {
- e.min = Iy(e.min), e.max = Iy(e.max);
+var Py = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Fy = Py("applewebkit/") && !Py("chrome/") ? Math.round : jm;
+function Iy(e) {
+ e.min = Fy(e.min), e.max = Fy(e.max);
}
-function Pne(e) {
- Ly(e.x), Ly(e.y);
+function Fne(e) {
+ Iy(e.x), Iy(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Ry = () => ({
+var Ly = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
+}), Ry = () => ({
+ x: Ly(),
+ y: Ly()
}), zy = () => ({
- x: Ry(),
- y: Ry()
-}), By = () => ({
min: 0,
max: 0
-}), Vy = () => ({
- x: By(),
- y: By()
+}), By = () => ({
+ x: zy(),
+ y: zy()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Hy(e) {
+function Vy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Uy(e) {
- return Hy(e.x) && Hy(e.y);
+function Hy(e) {
+ return Vy(e.x) && Vy(e.y);
}
-function Wy(e, t) {
+function Uy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Fne(e, t) {
- return Wy(e.x, t.x) && Wy(e.y, t.y);
+function Ine(e, t) {
+ return Uy(e.x, t.x) && Uy(e.y, t.y);
}
-function Gy(e, t) {
+function Wy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Ky(e, t) {
- return Gy(e.x, t.x) && Gy(e.y, t.y);
+function Gy(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function qy(e) {
- return Ey(e.x) / Ey(e.y);
+function Ky(e) {
+ return Ty(e.x) / Ty(e.y);
}
-function Jy(e, t) {
+function qy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Ine = class {
+var Lne = class {
constructor() {
this.members = [];
}
@@ -18884,22 +18884,22 @@ var Ine = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Yy(e, t) {
+function Jy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Xy = { correct: (e, t) => {
+var Yy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (Nh.test(e)) e = parseFloat(e);
else return e;
}
- return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
-} }, Lne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Ov.slice() }),
- borderTopLeftRadius: Xy,
- borderTopRightRadius: Xy,
- borderBottomLeftRadius: Xy,
- borderBottomRightRadius: Xy,
+ return `${Jy(e, t.target.x)}% ${Jy(e, t.target.y)}%`;
+} }, Rne = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Yy, { applyTo: /* @__PURE__ */ Ev.slice() }),
+ borderTopLeftRadius: Yy,
+ borderTopRightRadius: Yy,
+ borderBottomLeftRadius: Yy,
+ borderBottomRightRadius: Yy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = rg.parse(e);
if (i.length > 5) return r;
@@ -18910,13 +18910,13 @@ var Xy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Rne(e, t, n) {
+function zne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < $v.length; e++) {
- let t = $v[e], i = n[t];
+ for (let e = 0; e < Zv.length; e++) {
+ let t = Zv[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18924,11 +18924,11 @@ function Rne(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Zy(e) {
+function Xy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var zne = (e, t) => e.depth - t.depth, Bne = class {
+var Bne = (e, t) => e.depth - t.depth, Vne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -18939,47 +18939,47 @@ var zne = (e, t) => e.depth - t.depth, Bne = class {
wm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(zne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Bne), this.isDirty = !1, this.children.forEach(e);
}
-}, Qy = {
+}, Zy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, $y = [
+}, Qy = [
"z",
"skew",
"skewZ"
-], Vne = 1e3, Hne = 0;
-function eb(e, t, n, r) {
+], Hne = 1e3, Une = 0;
+function $y(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var tb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function nb(e) {
+var eb = (e) => e.instance && q_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function tb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = Cv(t);
+ let n = xv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
window.MotionCancelOptimisedAnimation(n, "transform", _g, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && nb(r);
+ r && !r.hasCheckedOptimisedAppear && tb(r);
}
-function rb(e) {
- if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
+function nb(e) {
+ if (e) return e.options.allowProjection === !1 ? nb(e.parent) : e.projection;
}
-function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(_y, {
- ...Lne,
- ..._y
+function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(hy, {
+ ...Rne,
+ ...hy
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : rb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : nb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && vne(o),
+ alwaysMeasureLayout: !!a || o && bne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18992,16 +18992,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Hne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Une++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Gne), this.nodes.forEach($ne), this.nodes.forEach(ere), this.nodes.forEach(Kne), vy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Kne), this.nodes.forEach(ere), this.nodes.forEach(tre), this.nodes.forEach(qne), gy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Bne());
+ this.root === this && (this.nodes = new Vne());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pm()), this.eventHandlers.get(e).add(t);
@@ -19014,7 +19014,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Pv(t) && !yne(t), this.instance = t;
+ this.isSVG = Mv(t) && !xne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -19022,7 +19022,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = _ne(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(sb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = yne(i, 250), Zy.hasAnimatedSinceResize && (Zy.hasAnimatedSinceResize = !1, this.nodes.forEach(ob)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19034,16 +19034,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || ire, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Ky(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || are, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Gy(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...pv(a, "layout"),
+ ...dv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || sb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || ob(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
@@ -19060,7 +19060,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(tre), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(nre), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19071,11 +19071,11 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- tb(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ eb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, tb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, eb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19085,22 +19085,22 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Jne), this.nodes.forEach(ab);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Yne), this.nodes.forEach(ib);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(ob);
+ this.nodes.forEach(ab);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach(Une), this.nodes.forEach(Wne)) : this.nodes.forEach(ob), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(Wne), this.nodes.forEach(Gne)) : this.nodes.forEach(ab), this.clearAllSnapshots();
let e = ch.now();
ah.delta = Tm(0, 1e3 / 60, e - ah.timestamp), ah.timestamp = e, ah.isProcessing = !0, yg.update.process(ah), yg.preRender.process(ah), yg.render.process(ah), ah.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, py.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(qne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Jne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, _g.preRender(this.updateProjection, !1, !0));
@@ -19111,13 +19111,13 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ey(this.snapshot.measuredBox.x) && !Ey(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ty(this.snapshot.measuredBox.x) && !Ty(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= Vy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= By(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19137,13 +19137,13 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && tb(this);
- let t = this.projectionDelta && !Uy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || ey(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && eb(this);
+ let t = this.projectionDelta && !Hy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || Qv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Pne(n), {
+ return e && (n = this.removeTransform(n)), Fne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19153,42 +19153,42 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return Vy();
+ if (!e) return By();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(are))) {
+ if (!(this.scroll?.wasRoot || this.path.some(ore))) {
let { scroll: e } = this.root;
- e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
+ e && (cy(t.x, e.offset.x), cy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = Vy();
- if (wy(t, e), this.scroll?.wasRoot) return t;
+ let t = By();
+ if (Cy(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && wy(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Cy(t, e), cy(t.x, i.offset.x), cy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || Vy();
- wy(a, e);
+ let a = n || By();
+ Cy(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (cy(a.x, -n.scroll.offset.x), cy(a.y, -n.scroll.offset.y)), Qv(n.latestValues) && dy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && Qv(this.latestValues) && dy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = Vy();
- wy(t, e);
+ let t = By();
+ Cy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!ey(n.latestValues)) continue;
+ if (!Qv(n.latestValues)) continue;
let r;
- n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Vy(), wy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Xv(n.latestValues) && n.updateSnapshot(), r = By(), Cy(r, n.measurePageBox())), Ny(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return ey(this.latestValues) && Py(t, this.latestValues), t;
+ return Qv(this.latestValues) && Ny(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19215,16 +19215,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = ah.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Vy(), this.targetWithTransforms = Vy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ane(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : wy(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : wy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vy.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = By(), this.targetWithTransforms = By()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), jne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Cy(this.target, this.layout.layoutBox), ay(this.target, this.targetDelta)) : Cy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Xv(this.parent.latestValues) || ey(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), jy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), wy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = By(), this.relativeTargetOrigin = By(), Ay(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Cy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -19234,11 +19234,11 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ah.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- wy(this.layoutCorrected, this.layout.layoutBox);
+ Cy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- cne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Vy());
+ une(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = By());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ty(this.prevProjectionDelta.x, this.projectionDelta.x), Ty(this.prevProjectionDelta.y, this.projectionDelta.y)), Oy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Jy(this.projectionDelta.x, this.prevProjectionDelta.x) && Jy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wy(this.prevProjectionDelta.x, this.projectionDelta.x), wy(this.prevProjectionDelta.y, this.projectionDelta.y)), Dy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && qy(this.projectionDelta.x, this.prevProjectionDelta.x) && qy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19250,22 +19250,22 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = zy(), this.projectionDelta = zy(), this.projectionDeltaWithTransform = zy();
+ this.prevProjectionDelta = Ry(), this.projectionDelta = Ry(), this.projectionDeltaWithTransform = Ry();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = zy();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ry();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = Vy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(rre));
+ let s = By(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(ire));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- cb(o.x, e.x, n), cb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), nre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Fne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, Sne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ sb(o.x, e.x, n), sb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ay(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), rre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ine(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= By(), Cy(f, this.relativeTarget)), c && (this.animationValues = a, Cne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (vg(this.pendingAnimation), void 0), this.pendingAnimation = _g.update(() => {
- Qy.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
+ Zy.hasAnimatedSinceResize = !0, this.motionValue ||= lv(0), this.motionValue.jump(0, !1), this.currentAnimation = my(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19275,7 +19275,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Nee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19284,20 +19284,20 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Vne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Hne), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && db(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && ub(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || Vy(), ub(i.x, t.x, e.x), ub(i.y, t.y, e.y);
+ i = this.target || By(), lb(i.x, t.x, e.x), lb(i.y, t.y, e.y);
}
- wy(t, i), py(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Cy(t, i), dy(t, r), Dy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ine()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Lne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19330,10 +19330,10 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!ty(t)) return;
+ if (!$v(t)) return;
let n = {};
- for (let t = 0; t < $y.length; t++) eb($y[t], e, n, this.animationValues);
- for (let t = 0; t < $v.length; t++) eb($v[t], e, n, this.animationValues);
+ for (let t = 0; t < Qy.length; t++) $y(Qy[t], e, n, this.animationValues);
+ for (let t = 0; t < Zv.length; t++) $y(Zv[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19347,70 +19347,70 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = _y(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = _y(t?.pointerEvents) || ""), this.hasProjected && !Qv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Rne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = zne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in _y) {
+ for (let t in hy) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = hy[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? yy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? _y(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ab), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ib), this.root.sharedNodes.clear();
}
};
}
-function Une(e) {
- e.updateLayout(), Yne(e);
-}
function Wne(e) {
+ e.updateLayout(), Xne(e);
+}
+function Gne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Zy((e) => {
- let t = Ey(r[e]);
+ if (i === "size") Xy((e) => {
+ let t = Ty(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- Cy(r[e], a[e]);
- } else db(i, t.layoutBox, n) && Zy((t) => {
- let n = Ey(a[t]);
+ Sy(r[e], a[e]);
+ } else ub(i, t.layoutBox, n) && Xy((t) => {
+ let n = Ty(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = zy();
- Oy(c, n, t.layoutBox);
- let l = zy();
- Oy(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = Ry();
+ Dy(c, n, t.layoutBox);
+ let l = Ry();
+ Dy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Hy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = Vy();
- jy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = Vy();
- jy(l, n, i.layoutBox, s), a && o(c, l), Ky(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = By();
+ Ay(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = By();
+ Ay(l, n, i.layoutBox, s), a && o(c, l), Gy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19424,65 +19424,65 @@ function Wne(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Gne(e) {
- vy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
-}
function Kne(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ gy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function qne(e) {
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+}
+function Jne(e) {
e.clearSnapshot();
}
-function ab(e) {
+function ib(e) {
e.clearMeasurements();
}
-function Jne(e) {
+function Yne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function ob(e) {
+function ab(e) {
e.isLayoutDirty = !1;
}
-function Yne(e) {
+function Xne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Zy((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Xy((e) => cy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Xne(e) {
+function Zne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Zne(e) {
+function Qne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Qne(e) {
+function $ne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function sb(e) {
+function ob(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function $ne(e) {
+function ere(e) {
e.resolveTargetDelta();
}
-function ere(e) {
+function tre(e) {
e.calcProjection();
}
-function tre(e) {
+function nre(e) {
e.resetSkewAndRotation();
}
-function cb(e, t, n) {
+function sb(e, t, n) {
e.translate = og(t.translate, 0, n), e.scale = og(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function lb(e, t, n, r) {
+function cb(e, t, n, r) {
e.min = og(t.min, n.min, r), e.max = og(t.max, n.max, r);
}
-function nre(e, t, n, r) {
- lb(e.x, t.x, n.x, r), lb(e.y, t.y, n.y, r);
+function rre(e, t, n, r) {
+ cb(e.x, t.x, n.x, r), cb(e.y, t.y, n.y, r);
}
-function rre(e) {
+function ire(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var ire = {
+var are = {
duration: .45,
ease: [
.4,
@@ -19491,51 +19491,51 @@ var ire = {
1
]
};
-function ub(e, t, n) {
- e.max = Ey(n) + (e.min = t.min);
+function lb(e, t, n) {
+ e.max = Ty(n) + (e.min = t.min);
}
-function db(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !kne(qy(t), qy(n), .2);
+function ub(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Ane(Ky(t), Ky(n), .2);
}
-function are(e) {
+function ore(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function fb(e, t, n, r = { passive: !0 }) {
+function db(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var ore = /* @__PURE__ */ ib({
- attachResizeListener: (e, t) => fb(e, "resize", t),
- measureScroll: une,
+var sre = /* @__PURE__ */ rb({
+ attachResizeListener: (e, t) => db(e, "resize", t),
+ measureScroll: fne,
checkIsScrollRoot: () => !0
-}), pb = { current: void 0 }, mb = /* @__PURE__ */ ib({
+}), fb = { current: void 0 }, pb = /* @__PURE__ */ rb({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!pb.current) {
- let e = new ore({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), pb.current = e;
+ if (!fb.current) {
+ let e = new sre({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), fb.current = e;
}
- return pb.current;
+ return fb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), hb = /* @__PURE__ */ new WeakMap();
+}), mb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function gb(e) {
+function hb(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function _b(e) {
+function gb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var vb = [
+var _b = [
"animate",
"whileInView",
"whileFocus",
@@ -19543,29 +19543,29 @@ var vb = [
"whileTap",
"whileDrag",
"exit"
-], yb = /* @__PURE__ */ ["initial"].concat(vb);
+], vb = /* @__PURE__ */ ["initial"].concat(_b);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function bb(e) {
- if (gb(e.animate)) return !0;
- for (let t = 0; t < yb.length; t++) if (_b(e[yb[t]])) return !0;
+function yb(e) {
+ if (hb(e.animate)) return !0;
+ for (let t = 0; t < vb.length; t++) if (gb(e[vb[t]])) return !0;
return !1;
}
-function xb(e) {
- return !!(bb(e) || e.variants);
+function bb(e) {
+ return !!(yb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function sre(e, t, n) {
+function cre(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (bv(i)) e.addValue(r, i);
- else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
+ if (vv(i)) e.addValue(r, i);
+ else if (vv(a)) e.addValue(r, lv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, lv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19573,17 +19573,17 @@ function sre(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Sb = { current: null }, Cb = { current: !1 }, cre = typeof window < "u";
-function wb() {
- if (Cb.current = !0, cre) {
+var xb = { current: null }, Sb = { current: !1 }, lre = typeof window < "u";
+function Cb() {
+ if (Sb.current = !0, lre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => xb.current = e.matches;
e.addEventListener("change", t), t();
- } else Sb.current = !1;
+ } else xb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Tb = [
+var wb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19591,35 +19591,35 @@ var Tb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Eb = {};
-function Db(e) {
- Eb = e;
+], Tb = {};
+function Eb(e) {
+ Tb = e;
}
-function lre() {
- return Eb;
+function ure() {
+ return Tb;
}
-var ure = class {
+var dre = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = O_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = E_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = ch.now();
this.renderScheduledAt < e && (this.renderScheduledAt = e, _g.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bb(t), this.isVariantNode = xb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = yb(t), this.isVariantNode = bb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && bv(t) && t.set(c[e]);
+ c[e] !== void 0 && vv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, hb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, mb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19629,7 +19629,7 @@ var ure = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Cb.current || wb(), this.shouldReduceMotion = Sb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Sb.current || Cb(), this.shouldReduceMotion = xb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection?.unmount(), vg(this.notifyUpdate), vg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
@@ -19647,8 +19647,8 @@ var ure = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && V_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new L_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && z_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new F_({
element: this.current,
name: e,
keyframes: r,
@@ -19661,10 +19661,10 @@ var ure = class {
});
return;
}
- let n = g_.has(e);
+ let n = m_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), q_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19675,8 +19675,8 @@ var ure = class {
}
updateFeatures() {
let e = "animation";
- for (e in Eb) {
- let t = Eb[e];
+ for (e in Tb) {
+ let t = Tb[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19689,7 +19689,7 @@ var ure = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : By();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19699,14 +19699,14 @@ var ure = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Tb.length; t++) {
- let n = Tb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && q_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < wb.length; t++) {
+ let n = wb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = sre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = cre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19736,11 +19736,11 @@ var ure = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = lv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = i_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = n_(e, t)), this.setBaseTarget(e, vv(n) ? n.get() : n)), vv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -19752,11 +19752,11 @@ var ure = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- hy.render(this.render);
+ py.render(this.render);
}
-}, Ob = class extends ure {
+}, Db = class extends dre {
constructor() {
- super(...arguments), this.KeyframeResolver = Dv;
+ super(...arguments), this.KeyframeResolver = Tv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19771,105 +19771,105 @@ var ure = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- bv(e) && (this.childSubscription = e.on("change", (e) => {
+ vv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function kb(e, { style: t, vars: n }, r, i) {
+function Ob(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Ab(e, { layout: t, layoutId: n }) {
- return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
+function kb(e, { layout: t, layoutId: n }) {
+ return m_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function jb(e, t, n) {
+function Ab(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (bv(r[t]) || i && bv(i[t]) || Ab(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (vv(r[t]) || i && vv(i[t]) || kb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function dre(e) {
+function fre(e) {
return window.getComputedStyle(e);
}
-var fre = class extends Ob {
+var pre = class extends Db {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = kb;
+ super(...arguments), this.type = "html", this.renderInstance = Ob;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
+ if (m_.has(t)) return this.projection?.isProjecting ? u_(t) : f_(e, t);
{
- let n = dre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = fre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return my(e, t);
+ return fy(e, t);
}
build(e, t, n) {
- Gv(e, t, n.transformTemplate);
+ Uv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return jb(e, t, n);
+ return Ab(e, t, n);
}
-}, Mb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, jb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Nb(e) {
+function Mb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var pre = (e) => (t) => Mb(t) && e(t, Nb(t));
+var mre = (e) => (t) => jb(t) && e(t, Mb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Pb(e, t, n, r) {
- return fb(e, t, pre(n), r);
+function Nb(e, t, n, r) {
+ return db(e, t, mre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Fb = /* @__PURE__ */ new WeakMap(), Ib, Lb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], mre = /*@__PURE__*/ Lb("inline", "width", "offsetWidth"), hre = /*@__PURE__*/ Lb("block", "height", "offsetHeight");
-function gre({ target: e, borderBoxSize: t }) {
- Fb.get(e)?.forEach((n) => {
+var Pb = /* @__PURE__ */ new WeakMap(), Fb, Ib = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Mv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], hre = /*@__PURE__*/ Ib("inline", "width", "offsetWidth"), gre = /*@__PURE__*/ Ib("block", "height", "offsetHeight");
+function _re({ target: e, borderBoxSize: t }) {
+ Pb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return mre(e, t);
+ return hre(e, t);
},
get height() {
- return hre(e, t);
+ return gre(e, t);
}
});
});
}
-function _re(e) {
- e.forEach(gre);
+function vre(e) {
+ e.forEach(_re);
}
-function vre() {
- typeof ResizeObserver < "u" && (Ib = new ResizeObserver(_re));
+function yre() {
+ typeof ResizeObserver < "u" && (Fb = new ResizeObserver(vre));
}
-function yre(e, t) {
- Ib || vre();
- let n = Rv(e);
+function bre(e, t) {
+ Fb || yre();
+ let n = Iv(e);
return n.forEach((e) => {
- let n = Fb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Fb.set(e, n)), n.add(t), Ib?.observe(e);
+ let n = Pb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Pb.set(e, n)), n.add(t), Fb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Fb.get(e);
- n?.delete(t), n?.size || Ib?.unobserve(e);
+ let n = Pb.get(e);
+ n?.delete(t), n?.size || Fb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Rb = /* @__PURE__ */ new Set(), zb;
-function bre() {
- zb = () => {
+var Lb = /* @__PURE__ */ new Set(), Rb;
+function xre() {
+ Rb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19878,26 +19878,26 @@ function bre() {
return window.innerHeight;
}
};
- Rb.forEach((t) => t(e));
- }, window.addEventListener("resize", zb);
+ Lb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Rb);
}
-function xre(e) {
- return Rb.add(e), zb || bre(), () => {
- Rb.delete(e), !Rb.size && typeof zb == "function" && (window.removeEventListener("resize", zb), zb = void 0);
+function Sre(e) {
+ return Lb.add(e), Rb || xre(), () => {
+ Lb.delete(e), !Lb.size && typeof Rb == "function" && (window.removeEventListener("resize", Rb), Rb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Bb(e, t) {
- return Iv(typeof e == "function" ? xre(e) : yre(e, t));
+function zb(e, t) {
+ return Pv(typeof e == "function" ? Sre(e) : bre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Vb = (e, t) => Math.abs(e - t);
-function Sre(e, t) {
- let n = Vb(e.x, t.x), r = Vb(e.y, t.y);
+var Bb = (e, t) => Math.abs(e - t);
+function Cre(e, t) {
+ let n = Bb(e.x, t.x), r = Bb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
+var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19905,8 +19905,8 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = qb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Sre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Wb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Kb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Cre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19919,40 +19919,40 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Wb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = qb(e.type === "pointercancel" ? this.lastMoveEventInfo : Gb(t, this.transformPagePoint), this.history);
+ let a = Kb(e.type === "pointercancel" ? this.lastMoveEventInfo : Wb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Mb(e)) return;
+ }, !jb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Gb(Nb(e), this.transformPagePoint), { point: c } = s;
+ let s = Wb(Mb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: ch.now()
}];
let { onSessionStart: l } = t;
- l && l(e, qb(s, this.history));
+ l && l(e, Kb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Mm(Pb(this.contextWindow, "pointermove", this.handlePointerMove, u), Pb(this.contextWindow, "pointerup", this.handlePointerUp, u), Pb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Mm(Nb(this.contextWindow, "pointermove", this.handlePointerMove, u), Nb(this.contextWindow, "pointerup", this.handlePointerUp, u), Nb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Hb.has(e.overflowX) || Hb.has(e.overflowY)) && this.scrollPositions.set(t, Wb(t)), t = t.parentElement;
+ (Vb.has(e.overflowX) || Vb.has(e.overflowY)) && this.scrollPositions.set(t, Ub(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Wb(window)), this.removeScrollListeners = Mm(fb(window, "scroll", this.onElementScroll, { capture: !0 }), fb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Ub(window)), this.removeScrollListeners = Mm(db(window, "scroll", this.onElementScroll, { capture: !0 }), db(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Wb(e), i = {
+ let n = e === window, r = Ub(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
@@ -19964,42 +19964,42 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
end() {
this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), vg(this.updatePoint);
}
-}, Wb = (e) => e === window ? {
+}, Ub = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Gb(e, t) {
+function Wb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Kb(e, t) {
+function Gb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function qb({ point: e }, t) {
+function Kb({ point: e }, t) {
return {
point: e,
- delta: Kb(e, Jb(t)),
- offset: Kb(e, Cre(t)),
- velocity: wre(t, .1)
+ delta: Gb(e, qb(t)),
+ offset: Gb(e, wre(t)),
+ velocity: Tre(t, .1)
};
}
-function Cre(e) {
+function wre(e) {
return e[0];
}
-function Jb(e) {
+function qb(e) {
return e[e.length - 1];
}
-function wre(e, t) {
+function Tre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Jb(e);
+ let n = e.length - 1, r = null, i = qb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t)));) n--;
if (!r) return {
x: 0,
@@ -20018,95 +20018,95 @@ function wre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var Tre = /* @__PURE__ */ new Set([
+var Ere = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Ere(e) {
- return Tre.has(e.tagName) || e.isContentEditable === !0;
+function Dre(e) {
+ return Ere.has(e.tagName) || e.isContentEditable === !0;
}
-var Dre = /* @__PURE__ */ new Set([
+var Ore = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Ore(e) {
- return Dre.has(e.tagName) || e.isContentEditable === !0;
+function kre(e) {
+ return Ore.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Yb = {
+var Jb = {
x: !1,
y: !1
};
-function Xb() {
- return Yb.x || Yb.y;
+function Yb() {
+ return Jb.x || Jb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function kre(e) {
- return e === "x" || e === "y" ? Yb[e] ? null : (Yb[e] = !0, () => {
- Yb[e] = !1;
- }) : Yb.x || Yb.y ? null : (Yb.x = Yb.y = !0, () => {
- Yb.x = Yb.y = !1;
+function Are(e) {
+ return e === "x" || e === "y" ? Jb[e] ? null : (Jb[e] = !0, () => {
+ Jb[e] = !1;
+ }) : Jb.x || Jb.y ? null : (Jb.x = Jb.y = !0, () => {
+ Jb.x = Jb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Are(e, { min: t, max: n }, r) {
+function jre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? og(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? og(n, e, r.max) : Math.min(e, n)), e;
}
-function Zb(e, t, n) {
+function Xb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function jre(e, { top: t, left: n, bottom: r, right: i }) {
+function Mre(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Zb(e.x, n, i),
- y: Zb(e.y, t, r)
+ x: Xb(e.x, n, i),
+ y: Xb(e.y, t, r)
};
}
-function Qb(e, t) {
+function Zb(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function Mre(e, t) {
+function Nre(e, t) {
return {
- x: Qb(e.x, t.x),
- y: Qb(e.y, t.y)
+ x: Zb(e.x, t.x),
+ y: Zb(e.y, t.y)
};
}
-function Nre(e, t) {
- let n = .5, r = Ey(e), i = Ey(t);
+function Pre(e, t) {
+ let n = .5, r = Ty(e), i = Ty(t);
return i > r ? n = /* @__PURE__ */ Nm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Nm(e.min, e.max - i, t.min)), Tm(0, 1, n);
}
-function Pre(e, t) {
+function Fre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var $b = .35;
-function Fre(e = $b) {
- return e === !1 ? e = 0 : e === !0 && (e = $b), {
- x: ex(e, "left", "right"),
- y: ex(e, "top", "bottom")
+var Qb = .35;
+function Ire(e = Qb) {
+ return e === !1 ? e = 0 : e === !0 && (e = Qb), {
+ x: $b(e, "left", "right"),
+ y: $b(e, "top", "bottom")
};
}
-function ex(e, t, n) {
+function $b(e, t, n) {
return {
- min: tx(e, t),
- max: tx(e, n)
+ min: ex(e, t),
+ max: ex(e, n)
};
}
-function tx(e, t) {
+function ex(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function nx(e) {
+function tx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20115,12 +20115,12 @@ function nx(e) {
}
return t;
}
-var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
+var Lre = /* @__PURE__ */ new WeakMap(), Rre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Vy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = By(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20128,25 +20128,25 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = kre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = Are(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Xy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ph(t) && (t = hv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
+ if (ph(t) && (t = pv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
else if (Mh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = Ey(n) * (parseFloat(t) / 100));
+ n && (t = Ty(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), yv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = zre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Bre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && _g.update(() => a(e, t), !1, !0);
@@ -20159,7 +20159,7 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Ub(e, {
+ this.panSession = new Hb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20191,26 +20191,26 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ox(e, n, this.currentDirection)) return;
+ if (!t || !ax(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Are(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = jre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- rx(e) ? this.constraints && this.scroll === nx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? jre(r.layoutBox, e) : !1, this.elastic = Fre(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Pre(r.layoutBox[e], this.constraints[e]));
+ nx(e) ? this.constraints && this.scroll === tx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Mre(r.layoutBox, e) : !1, this.elastic = Ire(t), i !== this.constraints && !nx(e) && r && this.constraints && !this.hasMutatedConstraints && Xy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Fre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!rx(e)) return !1;
- let n = ix(e), { projection: r } = this.visualElement;
+ if (!nx(e)) return !1;
+ let n = rx(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = nx(r);
- let i = lne(n, r.root, this.visualElement.getTransformPagePoint()), a = Mre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = tx(r);
+ let i = dne(n, r.root, this.visualElement.getTransformPagePoint()), a = Nre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(one(a));
- this.hasMutatedConstraints = !!e, e && (a = Xv(e));
+ let e = t(cne(a));
+ this.hasMutatedConstraints = !!e, e && (a = Jv(e));
}
return a;
}
@@ -20222,13 +20222,13 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && ox(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && ax(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Zy((e) => {
- if (!ox(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Xy((e) => {
+ if (!ax(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20246,10 +20246,10 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
+ return yv(this.visualElement, e), n.start(fv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Zy((e) => this.getAxisMotionValue(e).stop());
+ Xy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20260,8 +20260,8 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Zy((e) => {
- if (!ox(e, n, this.currentDirection)) return;
+ Xy((e) => {
+ if (!ax(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - og(r, o, .5));
});
@@ -20269,41 +20269,41 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!rx(t) || !n || !this.constraints) return;
+ if (!nx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Zy((e) => {
+ Xy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Nre({
+ i[e] = Pre({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Zy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Xy((t) => {
let n = this.getAxisMotionValue(t);
- if (!ox(t, e, null) || !n.get()) return;
+ if (!ax(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(og(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Ire.set(this.visualElement, this);
- let e = this.visualElement.current, t = Pb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ore(i);
+ Lre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Nb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && kre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Rre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = nx(t) && rx(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= zre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i.layout || (i.root?.updateScroll(), i.updateLayout()), _g.read(r);
- let o = fb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Zy((t) => {
- if (!ox(t, this.getProps().drag, this.currentDirection)) return;
+ let o = db(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Xy((t) => {
+ if (!ax(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20313,7 +20313,7 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = Qb, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20321,32 +20321,32 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
};
}
};
-function rx(e) {
+function nx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var ix = (e) => "current" in e ? e.current : e;
-function ax(e) {
+var rx = (e) => "current" in e ? e.current : e;
+function ix(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Rre(e, t, n) {
- let r = Bb(e, ax(n)), i = Bb(t, ax(n));
+function zre(e, t, n) {
+ let r = zb(e, ix(n)), i = zb(t, ix(n));
return () => {
r(), i();
};
}
-function ox(e, t, n) {
+function ax(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function zre(e, t = 10) {
+function Bre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function sx(e, t) {
- let n = Rv(e), r = new AbortController();
+function ox(e, t) {
+ let n = Iv(e), r = new AbortController();
return [
n,
{
@@ -20354,16 +20354,16 @@ function sx(e, t) {
...t,
signal: r.signal
},
- Iv(() => r.abort())
+ Pv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Bre(e) {
- return !(e.pointerType === "touch" || Xb());
+function Vre(e) {
+ return !(e.pointerType === "touch" || Yb());
}
-function Vre(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = sx(e, n);
+function Hre(e, t, n = {}) {
+ t = Fv(t);
+ let [r, i, a] = ox(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20377,7 +20377,7 @@ function Vre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Bre(n)) return;
+ if (!Vre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20385,71 +20385,71 @@ function Vre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var cx = (e, t) => t ? e === t || cx(e, t.parentElement) : !1, lx = /* @__PURE__ */ new WeakSet();
+var sx = (e, t) => t ? e === t || sx(e, t.parentElement) : !1, cx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function ux(e) {
+function lx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function dx(e, t) {
+function ux(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Hre = (e, t) => {
- let n = !1, r = ux(() => {
- lx.has(e) || (n = !0, dx(e, "down"));
- }), i = ux(() => {
- n && (n = !1, dx(e, "up"));
+var Ure = (e, t) => {
+ let n = !1, r = lx(() => {
+ cx.has(e) || (n = !0, ux(e, "down"));
+ }), i = lx(() => {
+ n && (n = !1, ux(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && dx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && ux(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function fx(e) {
- return Mb(e) && !Xb();
+function dx(e) {
+ return jb(e) && !Yb();
}
-var px = /* @__PURE__ */ new WeakSet();
-function Ure(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = sx(e, n), o = (e) => {
+var fx = /* @__PURE__ */ new WeakSet();
+function Wre(e, t, n = {}) {
+ t = Fv(t);
+ let [r, i, a] = ox(e, n), o = (e) => {
let r = e.currentTarget;
- if (!fx(e) || px.has(e)) return;
- lx.add(r), n.stopPropagation && px.add(e);
+ if (!dx(e) || fx.has(e)) return;
+ cx.add(r), n.stopPropagation && fx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), lx.has(r) && lx.delete(r), fx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), cx.has(r) && cx.delete(r), dx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || cx(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || sx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Nv(e) && (e.addEventListener("focus", () => Hre(e, i), i), !Ere(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), jv(e) && (e.addEventListener("focus", () => Ure(e, i), i), !Dre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function mx(e, t) {
+function px(e, t) {
let n = window.getComputedStyle(e);
- return k_(t) ? n.getPropertyValue(t) : n[t];
+ return D_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var hx = class {
+var mx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, gx = /* @__PURE__ */ new Set([
+}, hx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20473,58 +20473,58 @@ var hx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), _x = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), gx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Wre(e, t, n, r) {
- kb(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Wv(n), t.attrs[n]);
+function Gre(e, t, n, r) {
+ Ob(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(hx.has(n) ? n : Hv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function vx(e, t, n) {
- let r = jb(e, t, n);
- for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
- let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function _x(e, t, n) {
+ let r = Ab(e, t, n);
+ for (let n in e) if (n !== "children" && (vv(e[n]) || vv(t[n]))) {
+ let t = p_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Gre = class extends Ob {
+var Kre = class extends Db {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = By;
}
getBaseTargetFromProps(e, t) {
- return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
+ return m_.has(t) ? super.getBaseTargetFromProps(e, t) ?? u_(t) : e[t];
}
getDefaultValue(e) {
- return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
+ return m_.has(e) ? this.latestValues[e] ?? u_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (g_.has(t)) {
- let e = r_(t);
+ if (m_.has(t)) {
+ let e = t_(t);
return e && e.default || 0;
}
- if (Kv.includes(t)) {
+ if (Wv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = gx.has(t) ? t : Wv(t), e.getAttribute(t);
+ return t = hx.has(t) ? t : Hv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return vx(e, t, n);
+ return _x(e, t, n);
}
build(e, t, n) {
- qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Gv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Wre(e, t, n, r);
+ Gre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = _x(e.tagName), super.mount(e);
+ this.isSVGTag = gx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function yx(e, t) {
+function vx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20532,18 +20532,18 @@ function yx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Kre = [...vb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;
-function qre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Rte(e, t, n))), n = xx(), r = !0, i = !1;
+var qre = [..._b].reverse(), yx = (e) => e?.out === !0 ? e : e?.out;
+function Jre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Bte(e, t, n))), n = bx(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && hv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);
- if (Kre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? _b(f) || f === !1 ? f : void 0 : l, y = _b(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || gb(v) || typeof v == "boolean") return;
+ let _ = u && yx(f(l ?? (g && g.props.initial))?.transition);
+ if (qre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? gb(f) || f === !1 ? f : void 0 : l, y = gb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || hb(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20551,14 +20551,14 @@ function qre(e) {
};
return;
}
- let S = Jre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Yre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = _v(e, n, vv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = hv(e, n, gv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = bx(r) || D;
+ }, D = yx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20566,7 +20566,7 @@ function qre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !yx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !vx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20581,8 +20581,8 @@ function qre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = _v(s, n)?.transition?.delayChildren;
- r.delay = sv(s.enteringChildren, e, t);
+ let t = hv(s, n)?.transition?.delayChildren;
+ r.delay = av(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20599,7 +20599,7 @@ function qre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !vv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20620,16 +20620,16 @@ function qre(e) {
},
getState: () => n,
reset: () => {
- n = xx(), i = !0;
+ n = bx(), i = !0;
}
};
}
-function Jre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;
+function Yre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !vx(t, e) : !1;
}
-function xx() {
+function bx() {
let e = {};
- for (let t of vb) e[t] = {
+ for (let t of _b) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20639,55 +20639,55 @@ function xx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var Sx = /* @__PURE__ */ (0, F.createContext)({
+var xx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Cx(e, t) {
+function Sx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Yre(...e) {
+function Xre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Cx(e, t);
+ let r = Sx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Cx(e[t], null);
+ typeof n == "function" ? n() : Sx(e[t], null);
}
};
};
}
-function Xre(...e) {
- return F.useCallback(Yre(...e), e);
+function Zre(...e) {
+ return F.useCallback(Xre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var wx = (e) => {
+var Cx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Tx = (e) => {
+}, wx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = wx(r);
+ let [a, o] = Cx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = wx(e.offsetParent);
+ let [i, a] = Cx(e.offsetParent);
return [t / i, n / a];
-}, Zre = class extends F.Component {
+}, Qre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Tx(t);
+ if (jv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = jv(e) && e.offsetWidth || 0, r = jv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = wx(t);
}
return null;
}
@@ -20696,7 +20696,7 @@ var wx = (e) => {
return this.props.children;
}
};
-function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function $re({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20705,7 +20705,7 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(Sx), d = Xre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(xx), d = Zre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20718,10 +20718,10 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return hy.setup(() => {
- let [e, t] = Tx(r);
+ return py.setup(() => {
+ let [e, t] = wx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), hy.read(() => {
+ }), py.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20729,7 +20729,7 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Zre, {
+ }, [t]), (0, I.jsx)(Qre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20738,8 +20738,8 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = bm(eie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var eie = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = bm(tie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
xm(() => {
p.current = n, m.current = r;
});
@@ -20765,7 +20765,7 @@ var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Qre, {
+ }, [n]), e = (0, I.jsx)($re, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20778,11 +20778,11 @@ var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function eie() {
+function tie() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Ex(e = !0) {
+function Tx(e = !0) {
let t = (0, F.useContext)(Sm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20796,23 +20796,23 @@ function Ex(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Dx() {
- return tie((0, F.useContext)(Sm));
+function Ex() {
+ return nie((0, F.useContext)(Sm));
}
-function tie(e) {
+function nie(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Ox = (e) => e.key || "";
-function kx(e) {
+var Dx = (e) => e.key || "";
+function Ox(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Ex(o), f = (0, F.useMemo)(() => kx(e), [e]), p = o && !u ? [] : f.map(Ox), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Tx(o), f = (0, F.useMemo)(() => Ox(e), [e]), p = o && !u ? [] : f.map(Dx), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
xm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20828,7 +20828,7 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), xm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Ox(y[e]);
+ let t = Dx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20840,15 +20840,15 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Ox(n));
+ let r = p.indexOf(Dx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Ox(e))) ? e = f : a === "wait" && (e = S), b(kx(e)), v(f), null;
+ return S.every((e) => h.get(Dx(e))) ? e = f : a === "wait" && (e = S), b(Ox(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(ym);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)($re, {
+ let _ = Dx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(eie, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20869,8 +20869,8 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {
- animation: ["variants", ...vb],
+}, Ax = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), jx = {
+ animation: ["variants", ..._b],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20897,32 +20897,32 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Nx = !1;
-function nie() {
- if (Nx) return;
+}, Mx = !1;
+function rie() {
+ if (Mx) return;
let e = {};
- for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };
- Db(e), Nx = !0;
+ for (let t in jx) e[t] = { isEnabled: (e) => jx[t].some((t) => !!e[t]) };
+ Eb(e), Mx = !0;
}
-function Px() {
- return nie(), lre();
+function Nx() {
+ return rie(), ure();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function rie(e) {
- let t = Px();
+function iie(e) {
+ let t = Nx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Db(t);
+ Eb(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function iie({ children: e, ...t }) {
- let n = (0, F.useContext)(Sx);
+function aie({ children: e, ...t }) {
+ let n = (0, F.useContext)(xx);
t = {
...n,
...t
- }, t.transition = fv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
+ }, t.transition = uv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20930,77 +20930,77 @@ function iie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(Sx.Provider, {
+ return (0, I.jsx)(xx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Fx = /* @__PURE__ */ (0, F.createContext)({});
+var Px = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function aie(e, t) {
- if (bb(e)) {
+function oie(e, t) {
+ if (yb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || _b(t) ? t : void 0,
- animate: _b(n) ? n : void 0
+ initial: t === !1 || gb(t) ? t : void 0,
+ animate: gb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function oie(e) {
- let { initial: t, animate: n } = aie(e, (0, F.useContext)(Fx));
+function sie(e) {
+ let { initial: t, animate: n } = oie(e, (0, F.useContext)(Px));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Ix(t), Ix(n)]);
+ }), [Fx(t), Fx(n)]);
}
-function Ix(e) {
+function Fx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Lx = () => ({
+var Ix = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Rx(e, t, n) {
- for (let r in t) !bv(t[r]) && !Ab(r, n) && (e[r] = t[r]);
+function Lx(e, t, n) {
+ for (let r in t) !vv(t[r]) && !kb(r, n) && (e[r] = t[r]);
}
-function sie({ transformTemplate: e }, t) {
+function cie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Lx();
- return Gv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Ix();
+ return Uv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function cie(e, t) {
+function lie(e, t) {
let n = e.style || {}, r = {};
- return Rx(r, n, e), Object.assign(r, sie(e, t)), r;
+ return Lx(r, n, e), Object.assign(r, cie(e, t)), r;
}
-function lie(e, t) {
- let n = {}, r = cie(e, t);
+function uie(e, t) {
+ let n = {}, r = lie(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var zx = () => ({
- ...Lx(),
+var Rx = () => ({
+ ...Ix(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function uie(e, t, n, r) {
+function die(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = zx();
- return qv(n, t, _x(r), e.transformTemplate, e.style), {
+ let n = Rx();
+ return Gv(n, t, gx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Rx(t, e.style, e), {
+ return Lx(t, e.style, e), {
...i,
style: {
...t,
@@ -21011,21 +21011,21 @@ function uie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var die = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Bx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || die.has(e);
+var fie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function zx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || fie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function fie(e, t) {
- return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);
+function pie(e, t) {
+ return e.startsWith("on") ? !zx(e) : t?.(e) ?? !zx(e);
}
-function pie(e, t, n, r) {
+function mie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || (fie(a, r) || n === !0 && Bx(a) || !t && !Bx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || vv(e[a]) || (pie(a, r) || n === !0 && zx(a) || !t && !zx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var mie = [
+var hie = [
"animate",
"circle",
"defs",
@@ -21053,40 +21053,40 @@ var mie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Vx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(mie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Bx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(hie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function hie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Vx(e) ? uie : lie)(t, r, i, e), l = pie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function gie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Bx(e) ? die : uie)(t, r, i, e), l = mie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => vv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function gie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function _ie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: _ie(n, r, i, e),
+ latestValues: vie(n, r, i, e),
renderState: t()
};
}
-function _ie(e, t, n, r) {
+function vie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = yy(a[e]);
- let { initial: o, animate: s } = e, c = bb(e), l = xb(e);
+ for (let e in a) i[e] = _y(a[e]);
+ let { initial: o, animate: s } = e, c = yb(e), l = bb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !gb(d)) {
+ if (d && typeof d != "boolean" && !hb(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = gv(e, t[n]);
+ let r = mv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21103,18 +21103,18 @@ function _ie(e, t, n, r) {
}
return i;
}
-var Hx = (e) => (t, n) => {
- let r = (0, F.useContext)(Fx), i = (0, F.useContext)(Sm), a = () => gie(e, t, r, i);
+var Vx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Px), i = (0, F.useContext)(Sm), a = () => _ie(e, t, r, i);
return n ? a() : bm(a);
-}, vie = /*@__PURE__*/ Hx({
- scrapeMotionValuesFromProps: jb,
- createRenderState: Lx
-}), yie = /*@__PURE__*/ Hx({
- scrapeMotionValuesFromProps: vx,
- createRenderState: zx
-}), bie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}, yie = /*@__PURE__*/ Vx({
+ scrapeMotionValuesFromProps: Ab,
+ createRenderState: Ix
+}), bie = /*@__PURE__*/ Vx({
+ scrapeMotionValuesFromProps: _x,
+ createRenderState: Rx
+}), xie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function xie(e, t, n) {
+function Sie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21132,10 +21132,10 @@ function xie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Ux = /* @__PURE__ */ (0, F.createContext)({});
+var Hx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Sie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(Sm), l = (0, F.useContext)(Sx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function Cie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Px), s = (0, F.useContext)(Ax), c = (0, F.useContext)(Sm), l = (0, F.useContext)(xx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21146,11 +21146,11 @@ function Sie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Ux);
+ let m = f.current, h = (0, F.useContext)(Hx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ let g = n[bv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
return xm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
}, []), xm(() => {
@@ -21162,46 +21162,46 @@ function Sie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && rie(r);
- let a = n ? n === "svg" : Vx(e), o = a ? yie : vie;
+function Ux(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && iie(r);
+ let a = n ? n === "svg" : Bx(e), o = a ? bie : yie;
function s(n, s) {
- let c, l = Cie(n);
- bm(() => !!pb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = wie(n);
+ bm(() => !!fb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(Sx),
+ ...(0, F.useContext)(xx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = oie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = sie(n), m = o(n, d);
if (!d && typeof window < "u") {
- wie(u, r);
- let t = Tie(u);
- p.visualElement = Sie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ Tie(u, r);
+ let t = Eie(u);
+ p.visualElement = Cie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Fx.Provider, {
+ return (0, I.jsxs)(Px.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, hie(e, n, xie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, gie(e, n, Sie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[bie] = e, c;
+ return c[xie] = e, c;
}
-function Cie({ layoutId: e }) {
+function wie({ layoutId: e }) {
let t = (0, F.useContext)(ym).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function wie(e, t) {
- (0, F.useContext)(jx).strict;
+function Tie(e, t) {
+ (0, F.useContext)(Ax).strict;
}
-function Tie(e) {
- let { drag: t, layout: n } = Px();
+function Eie(e) {
+ let { drag: t, layout: n } = Nx();
if (!t && !n) return {};
let r = {
...t,
@@ -21214,19 +21214,19 @@ function Tie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Eie(e, t) {
- if (typeof Proxy > "u") return Wx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Wx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Wx(a, void 0, e, t)), n.get(a)) });
+function Die(e, t) {
+ if (typeof Proxy > "u") return Ux;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Ux(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Ux(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection: e !== F.Fragment }), Oie = class extends hx {
+var Oie = (e, t) => t.isSVG ?? Bx(e) ? new Kre(t) : new pre(t, { allowProjection: e !== F.Fragment }), kie = class extends mx {
constructor(e) {
- super(e), e.animationState ||= qre(e);
+ super(e), e.animationState ||= Jre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- gb(e) && (this.unmountControls = e.subscribe(this.node));
+ hb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21237,11 +21237,11 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, kie = 0, Aie = {
- animation: { Feature: Oie },
- exit: { Feature: class extends hx {
+}, Aie = 0, jie = {
+ animation: { Feature: kie },
+ exit: { Feature: class extends mx {
constructor() {
- super(...arguments), this.id = kie++;
+ super(...arguments), this.id = Aie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21252,7 +21252,7 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = hv(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21271,9 +21271,9 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
}
unmount() {}
} }
-}, jie = class extends hx {
+}, Mie = class extends mx {
constructor(e) {
- super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Lre(e);
+ super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Rre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21286,14 +21286,14 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Gx = (e) => (t, n) => {
+}, Wx = (e) => (t, n) => {
e && _g.update(() => e(t, n), !1, !0);
-}, Mie = class extends hx {
+}, Nie = class extends mx {
constructor() {
super(...arguments), this.removePointerDownListener = jm;
}
onPointerDown(e) {
- this.session = new Ub(e, this.createPanHandlers(), {
+ this.session = new Hb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21301,16 +21301,16 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Gx(e),
- onStart: Gx(t),
- onMove: Gx(n),
+ onSessionStart: Wx(e),
+ onStart: Wx(t),
+ onMove: Wx(n),
onEnd: (e, t) => {
delete this.session, r && _g.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Pb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Nb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21318,12 +21318,12 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Kx = !1, qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Gx = !1, Kx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Jx = (e, t) => {
+}), qx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21332,33 +21332,33 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Nie = class extends F.Component {
+}, Pie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Kx && i.root.didUpdate(), i.options.layoutId !== r && Jx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Gx && i.root.didUpdate(), i.options.layoutId !== r && qx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...qx(this.props),
+ ...Kx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Qy.hasEverUpdated = !0;
+ })), Zy.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Jx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), qx(o, n)), o.setOptions({
...o.options,
- ...qx(this.props)
- }), Kx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
+ ...Kx(this.props)
+ }), Gx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), py.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Kx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Gx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21367,39 +21367,39 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
return null;
}
};
-function Yx(e) {
- let [t, n] = Ex(), r = (0, F.useContext)(ym);
- return (0, I.jsx)(Nie, {
+function Jx(e) {
+ let [t, n] = Tx(), r = (0, F.useContext)(ym);
+ return (0, I.jsx)(Pie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Ux),
+ switchLayoutGroup: (0, F.useContext)(Hx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Pie = {
- pan: { Feature: Mie },
+var Fie = {
+ pan: { Feature: Nie },
drag: {
- Feature: jie,
- ProjectionNode: mb,
- MeasureLayout: Yx
+ Feature: Mie,
+ ProjectionNode: pb,
+ MeasureLayout: Jx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Xx(e, t, n, r) {
+function Yx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && _g.postRender(() => o(t, Nb(t)));
+ o && _g.postRender(() => o(t, Mb(t)));
}
-var Fie = class extends hx {
+var Iie = class extends mx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Vre(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Hre(e, (e, t) => (Yx(this.node, t, "Hover", "Start"), (e) => Yx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Iie = class extends hx {
+}, Lie = class extends mx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21416,51 +21416,51 @@ var Fie = class extends hx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Mm(fb(this.node.current, "focus", () => this.onFocus()), fb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Mm(db(this.node.current, "focus", () => this.onFocus()), db(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Zx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);
+function Xx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Yx(e, t, "Tap", n);
}
-var Lie = class extends hx {
+var Rie = class extends mx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Ure(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Wre(e, (e, t) => (Xx(this.node, t, "Start"), (e, { success: t }) => Xx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Rie = (e) => {
- let t = Qx.get(e.target);
+}, Zx = /* @__PURE__ */ new WeakMap(), Qx = /* @__PURE__ */ new WeakMap(), zie = (e) => {
+ let t = Zx.get(e.target);
t && t(e);
-}, zie = (e) => {
- e.forEach(Rie);
+}, Bie = (e) => {
+ e.forEach(zie);
};
-function Bie({ root: e, ...t }) {
+function Vie({ root: e, ...t }) {
let n = e || document;
- $x.has(n) || $x.set(n, {});
- let r = $x.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(zie, {
+ Qx.has(n) || Qx.set(n, {});
+ let r = Qx.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Bie, {
root: e,
...t
})), r[i];
}
-function Vie(e, t, n) {
- let r = Bie(t);
- return Qx.set(e, n), r.observe(e), () => {
- Qx.delete(e), r.unobserve(e);
+function Hie(e, t, n) {
+ let r = Vie(t);
+ return Zx.set(e, n), r.observe(e), () => {
+ Zx.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Hie = {
+var Uie = {
some: 0,
all: 1
-}, Uie = class extends hx {
+}, Wie = class extends mx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21469,7 +21469,7 @@ var Hie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Hie[r]
+ threshold: typeof r == "number" ? r : Uie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21477,7 +21477,7 @@ var Hie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Vie(this.node.current, a, o);
+ this.stopObserver = Hie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21489,61 +21489,61 @@ var Hie = {
"amount",
"margin",
"root"
- ].some(Wie(e, t)) && this.startObserver();
+ ].some(Gie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Wie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Gie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Gie = /*@__PURE__*/ Eie(/* @__PURE__ */ Object.assign({}, Aie, {
- inView: { Feature: Uie },
- tap: { Feature: Lie },
- focus: { Feature: Iie },
- hover: { Feature: Fie }
-}, Pie, { layout: {
- ProjectionNode: mb,
- MeasureLayout: Yx
-} }), Die);
+var Kie = /*@__PURE__*/ Die(/* @__PURE__ */ Object.assign({}, jie, {
+ inView: { Feature: Wie },
+ tap: { Feature: Rie },
+ focus: { Feature: Lie },
+ hover: { Feature: Iie }
+}, Fie, { layout: {
+ ProjectionNode: pb,
+ MeasureLayout: Jx
+} }), Oie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function eS() {
- !Cb.current && wb();
- let [e] = (0, F.useState)(Sb.current);
+function $x() {
+ !Sb.current && Cb();
+ let [e] = (0, F.useState)(xb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function tS(e) {
+function eS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function nS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && tS(t) ? Rv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function tS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && eS(t) ? Iv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Kie(e, t, n) {
+function qie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function rS(e, t) {
+function nS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function qie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : rS(t, r) ?? e;
+function Jie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : nS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Jie(e, t, n) {
+function Yie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (wm(e, i), r--);
}
}
-function Yie(e, t, n, r, i, a) {
- Jie(e, i, a);
+function Xie(e, t, n, r, i, a) {
+ Yie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: og(i, a, r[o]),
@@ -21551,19 +21551,19 @@ function Yie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Xie(e, t, n = 0) {
+function Zie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Zie(e, t) {
+function Qie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Qie = "easeInOut", $ie = 20;
-function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var $ie = "easeInOut", eae = 20;
+function tae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : qie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Jie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21578,12 +21578,12 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = tae(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = nae(e), { delay: l = 0, times: u = zg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = I_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = P_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && iae(c)) {
+ if (S === 2 && aae(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21599,9 +21599,9 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < $ie) {
+ if (T > 0 && Rg(u, T), c.length === 1 && c.unshift(null), m && m < eae) {
let e = b > 0 ? g / b : 0;
- b = Kie(b, m, g);
+ b = qie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21611,20 +21611,20 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ eh(f, e - 1));
}
- Xie(u, m, e);
+ Zie(u, m, e);
}
let E = w + b;
- Yie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Xie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (bv(g)) {
- let e = iS(g, c);
- b(_, v, aS("default", e));
+ if (vv(g)) {
+ let e = rS(g, c);
+ b(_, v, iS("default", e));
} else {
- let e = nS(g, _, r, l), t = e.length;
+ let e = tS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = iS(r, c);
- for (let e in _) b(_[e], nae(v, e), aS(e, i), n, t);
+ let r = e[n], i = rS(r, c);
+ for (let e in _) b(_[e], rae(v, e), iS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21634,13 +21634,13 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Zie);
+ a.sort(Qie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ Nm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Qie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift($ie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21658,45 +21658,45 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function iS(e, t) {
+function rS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function aS(e, t) {
+function iS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function tae(e) {
+function nae(e) {
return Array.isArray(e) ? e : [e];
}
-function nae(e, t) {
+function rae(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var rae = (e) => typeof e == "number", iae = (e) => e.every(rae);
+var iae = (e) => typeof e == "number", aae = (e) => e.every(iae);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function aae(e, t) {
- return bv(e) || typeof e == "number" || typeof e == "string" && !tS(t);
+function oae(e, t) {
+ return vv(e) || typeof e == "number" || typeof e == "string" && !eS(t);
}
-function oS(e, t, n, r) {
+function aS(e, t, n, r) {
let i = [];
- if (aae(e, t)) i.push(gy(e, tS(t) && t.default || t, n && (n.default || n)));
+ if (oae(e, t)) i.push(my(e, eS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = nS(e, t, r), o = a.length;
+ let a = tS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...mne(r, t, s, hb.get(r))) : i.push(...Mv(Jte(r) ?? hne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...gne(r, t, s, mb.get(r))) : i.push(...Av(Xte(r) ?? _ne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function oae(e, t, n, r) {
+function sae(e, t, n, r) {
let i = [];
- return eae(e.map((e) => {
+ return tae(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = dv(0);
+ let t = e[0], n = lv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21708,31 +21708,31 @@ function oae(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...oS(n, e, t));
+ }), t, n, { spring: Fg }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...aS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var sS = 0;
-function sae(e, t) {
+var oS = 0;
+function cae(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var cS = (e, t) => t === void 0 ? e : {
+var sS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function lS(e) {
+function cS(e) {
e.pause(), e.time = 0, e.stop();
}
-var uS = class e {
+var lS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Nv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new rv(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
r && (r.animations.push(this), this.finished.then(() => wm(r.animations, this)));
}
@@ -21747,7 +21747,7 @@ var uS = class e {
item: e,
at: t,
marker: {
- name: "_m" + sS++,
+ name: "_m" + oS++,
time: 0,
callback: e
}
@@ -21758,7 +21758,7 @@ var uS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + sS++,
+ name: "_m" + oS++,
time: 0,
callback: t,
pause: !0
@@ -21852,50 +21852,50 @@ var uS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (lS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (cS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, lS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, cS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = Fv.current;
- Fv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Nv.current;
+ Nv.current = this.motionScope;
let m;
try {
- m = oae(this.toSequence(d), {
+ m = sae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- Fv.current = p;
+ Nv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = dv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
+ let e = this.clock = lv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = my(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new av(m);
+ let v = this.group = new rv(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), cS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), sS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? sae(n, r) : {
+ } : typeof n == "string" ? sS(n, r) : r === void 0 ? n : Array.isArray(n) ? cae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : rS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : nS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21943,16 +21943,16 @@ var uS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function cae(e) {
+function lae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function lae(e = {}) {
+function uae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Fv.current?.transition, s = {};
+ let o = Nv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (cae(e)) {
+ if (lae(e)) {
let n = {
...s,
...i,
@@ -21961,14 +21961,14 @@ function lae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new uS(e, n);
+ }), c = new lS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new uS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new lS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21983,29 +21983,29 @@ function lae(e = {}) {
...s,
onComplete: n,
scope: t
- }, oS(e, i, l, t));
+ }, aS(e, i, l, t));
}
return c;
}
return i;
}
-var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ lae(), {
- addEffect: qte,
- removeEffect: Av
+var uS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ uae(), {
+ addEffect: Yte,
+ removeEffect: Ov
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function uae(e, t, n, r) {
+function dae(e, t, n, r) {
if (e == null) return [];
- let i = Rv(e, r), a = i.length, o = [];
+ let i = Iv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...pv(s, e) };
+ let i = { ...dv(s, e) };
i.duration &&= /* @__PURE__ */ Fm(i.duration), i.delay &&= /* @__PURE__ */ Fm(i.delay);
- let a = yte(r), c = vte(e, i.pseudoElement || ""), l = a.get(c);
+ let a = xte(r), c = bte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -22021,21 +22021,21 @@ function uae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = mx(r, i)), a_(t), Kte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = px(r, i)), r_(t), Jte(t, i), !a && t.length < 2 && t.unshift(px(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new L_(r);
+ let { map: t, key: n, options: r } = o[e], i = new F_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var dae = /*@__PURE__*/ ((e) => {
+var fae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new av(uae(t, n, r, e));
+ return new rv(dae(t, n, r, e));
}
return t;
-})(), fS = Gie, pS = class {
+})(), dS = Kie, fS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -22050,22 +22050,22 @@ var dae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, mS = class extends pS {
+}, pS = class extends fS {
filter(e, t, n) {
- let [r, i] = vS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = _S(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends pS {
+(class extends fS {
static {
this.type = "header";
}
});
-var hS = class extends pS {
+var mS = class extends fS {
static {
this.type = "loader";
}
-}, gS = class extends mS {
+}, hS = class extends pS {
static {
this.type = "item";
}
@@ -22076,7 +22076,7 @@ var hS = class extends pS {
}
return null;
}
-}, fae = class extends mS {
+}, pae = class extends pS {
static {
this.type = "section";
}
@@ -22088,7 +22088,7 @@ var hS = class extends pS {
}
return null;
}
-}, _S = class {
+}, gS = class {
get size() {
return this.itemCount;
}
@@ -22163,14 +22163,14 @@ var hS = class extends pS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = vS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = _S(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function vS(e, t, n, r) {
+function _S(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22184,7 +22184,7 @@ function vS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var yS = class {
+var vS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22265,7 +22265,7 @@ var yS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, bS = class e extends yS {
+}, yS = class e extends vS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22316,7 +22316,7 @@ var yS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, pae = class extends yS {
+}, mae = class extends vS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22324,7 +22324,7 @@ var yS = class {
return !0;
}
createElement(e) {
- return new bS(e, this);
+ return new yS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22346,8 +22346,8 @@ var yS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof bS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof bS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof yS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof yS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22365,13 +22365,13 @@ var yS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function xS(e) {
+function bS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = mae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = hae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22396,7 +22396,7 @@ function xS(e) {
i
]);
}
-function mae(e) {
+function hae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22405,24 +22405,24 @@ function mae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function SS(e) {
+function xS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var CS = (e) => hae(e) ? e.document : gae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wS = (e) => CS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function TS(e) {
+var SS = (e) => gae(e) ? e.document : _ae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), CS = (e) => SS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function wS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function hae(e) {
+function gae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function gae(e) {
- return TS(e) && e.nodeType === 9;
+function _ae(e) {
+ return wS(e) && e.nodeType === 9;
}
-function ES(e) {
- return TS(e) && e.nodeType === 11 && "host" in e;
+function TS(e) {
+ return wS(e) && e.nodeType === 11 && "host" in e;
}
-function DS(e, t, n, r) {
+function ES(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22430,7 +22430,7 @@ function DS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function OS(e, t, n, r) {
+function DS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22444,70 +22444,70 @@ function OS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var _ae = !1;
-function kS() {
- return _ae;
+var vae = !1;
+function OS() {
+ return vae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function AS(e, t) {
- if (!kS()) return t && e ? e.contains(t) : !1;
+function kS(e, t) {
+ if (!OS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : ES(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : TS(n) ? n.host : n.parentNode;
}
return !1;
}
-var jS = (e = document) => {
- if (!kS()) return e.activeElement;
+var AS = (e = document) => {
+ if (!OS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (kS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (OS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function MS(e, t) {
+function jS(e, t) {
if (t === null) return [];
- t ??= wS(e);
+ t ??= CS(e);
let n = [t];
- if (!kS() || !e || e === t) return n;
+ if (!OS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; ES(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; TS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function NS(e) {
+function MS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = wS(e);
+ let t = e.getRootNode(), n = CS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var vae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function yae(e) {
- let t = wS(e);
+var yae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function bae(e) {
+ let t = CS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = wS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = CS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function bae(e, t) {
+function xae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function PS(e, t) {
- return vae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && yae(e) && bae(e, t) && (!e.parentElement || PS(e.parentElement, e));
+function NS(e, t) {
+ return yae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && bae(e) && xae(e, t) && (!e.parentElement || NS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var FS = [
+var PS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22522,39 +22522,39 @@ var FS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], xae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Sae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function IS(e, t) {
- return e.matches(xae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));
+], Sae = PS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+PS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Cae = PS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function FS(e, t) {
+ return e.matches(Sae) && !LS(e) && (t?.skipVisibilityCheck || NS(e));
}
-function LS(e) {
- return e.matches(Sae) && PS(e) && !RS(e);
+function IS(e) {
+ return e.matches(Cae) && NS(e) && !LS(e);
}
-function RS(e) {
+function LS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof wS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof CS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var zS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var RS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function BS(e) {
+function zS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function VS(e, t) {
+function BS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function HS(e) {
+function VS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return zS(() => {
+ return RS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22566,14 +22566,14 @@ function HS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = BS(r);
+ let t = zS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === jS() ? null : jS();
+ let e = n === AS() ? null : AS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22586,80 +22586,80 @@ function HS(e) {
}
}, [e]);
}
-var US = !1;
-function Cae(e) {
- for (; e && !IS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = jS(wS(e).document);
+var HS = !1;
+function wae(e) {
+ for (; e && !FS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = AS(CS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && ES(n) ? n : wS(e), i = (t) => t === e || TS(t) && AS(e, t), a = (e) => e === t || t != null && TS(e) && AS(t, e);
- US = !0;
+ let n = e?.getRootNode(), r = n != null && TS(n) ? n : CS(e), i = (t) => t === e || wS(t) && kS(e, t), a = (e) => e === t || t != null && wS(e) && kS(t, e);
+ HS = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, SS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), US = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), HS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function WS(e) {
+function US(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function GS(e) {
+function WS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function KS(e) {
+function GS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var qS = KS(function() {
- return GS(/^Mac/i);
-}), wae = KS(function() {
- return GS(/^iPhone/i);
-}), JS = KS(function() {
- return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;
-}), YS = KS(function() {
- return wae() || JS();
-}), Tae = KS(function() {
- return qS() || YS();
-}), XS = KS(function() {
- return WS(/AppleWebKit/i) && (YS() || !ZS());
-}), ZS = KS(function() {
- return WS(/Chrome|CriOS|CrMo/i);
-}), QS = KS(function() {
- return WS(/Android/i);
+var KS = GS(function() {
+ return WS(/^Mac/i);
+}), Tae = GS(function() {
+ return WS(/^iPhone/i);
+}), qS = GS(function() {
+ return WS(/^iPad/i) || KS() && navigator.maxTouchPoints > 1;
+}), JS = GS(function() {
+ return Tae() || qS();
+}), Eae = GS(function() {
+ return KS() || JS();
+}), YS = GS(function() {
+ return US(/AppleWebKit/i) && (JS() || !XS());
+}), XS = GS(function() {
+ return US(/Chrome|CriOS|CrMo/i);
+}), ZS = GS(function() {
+ return US(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function $S(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : QS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function QS(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : ZS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Eae(e) {
- return !QS() && e.width === 0 && e.height === 0 || QS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Dae(e) {
+ return !ZS() && e.width === 0 && e.height === 0 || ZS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var Dae = /*#__PURE__*/ (0, F.createContext)({
+var Oae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: Aae,
+ open: jae,
useHref: (e) => e
});
-function eC() {
- return (0, F.useContext)(Dae);
+function $S() {
+ return (0, F.useContext)(Oae);
}
-function Oae(e, t) {
+function kae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function tC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = XS() && qS() && !JS() ? new KeyboardEvent("keydown", {
+function eC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = YS() && KS() && !qS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22674,21 +22674,21 @@ function tC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;
+ eC.isOpening = n, xS(e), e.dispatchEvent(s), eC.isOpening = !1;
}
-tC.isOpening = !1;
-function kae(e, t) {
+eC.isOpening = !1;
+function Aae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Aae(e, t) {
- kae(e, (e) => tC(e, t));
+function jae(e, t) {
+ Aae(e, (e) => eC(e, t));
}
-function nC(e) {
- let t = eC().useHref(e.href ?? "");
+function tC(e) {
+ let t = $S().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22698,8 +22698,8 @@ function nC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function rC(e) {
- let t = eC().useHref(e?.href ?? ""), n = {};
+function nC(e) {
+ let t = $S().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22710,138 +22710,138 @@ function rC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function jae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Oae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Mae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && kae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var iC = {
+var rC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, aC = /*#__PURE__*/ F.createContext(iC), Mae = /*#__PURE__*/ F.createContext(!1);
+}, iC = /*#__PURE__*/ F.createContext(rC), Nae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var oC = /* @__PURE__ */ new WeakMap();
-function Nae(e = !1) {
- let t = (0, F.useContext)(aC), n = (0, F.useRef)(null);
+var aC = /* @__PURE__ */ new WeakMap();
+function Pae(e = !1) {
+ let t = (0, F.useContext)(iC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = oC.get(e);
- n == null ? oC.set(e, {
+ let n = aC.get(e);
+ n == null ? aC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, aC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Pae(e) {
- let t = (0, F.useContext)(aC), n = Nae(!!e), r = `react-aria${t.prefix}`;
+function Fae(e) {
+ let t = (0, F.useContext)(iC), n = Pae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Fae(e) {
- let t = F.useId(), [n] = (0, F.useState)(sC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;
+function Iae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(oC()), r = n ? "react-aria" : `react-aria${rC.prefix}`;
return e || `${r}-${t}`;
}
-var Iae = typeof F.useId == "function" ? Fae : Pae;
-function Lae() {
+var Lae = typeof F.useId == "function" ? Iae : Fae;
+function Rae() {
return !1;
}
-function Rae() {
+function zae() {
return !0;
}
-function zae(e) {
+function Bae(e) {
return () => {};
}
-function sC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(zae, Lae, Rae) : (0, F.useContext)(Mae);
+function oC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Bae, Rae, zae) : (0, F.useContext)(Nae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var cC = null, lC = /* @__PURE__ */ new Set(), uC = /* @__PURE__ */ new Map(), dC = !1, fC = !1, Bae = {
+var sC = null, cC = /* @__PURE__ */ new Set(), lC = /* @__PURE__ */ new Map(), uC = !1, dC = !1, Vae = {
Tab: !0,
Escape: !0
};
-function pC(e, t) {
- for (let n of lC) n(e, t);
+function fC(e, t) {
+ for (let n of cC) n(e, t);
+}
+function Hae(e) {
+ return !(e.metaKey || !KS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function Vae(e) {
- return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function pC(e) {
+ uC = !0, !eC.isOpening && Hae(e) && (sC = "keyboard", fC("keyboard", e));
}
function mC(e) {
- dC = !0, !tC.isOpening && Vae(e) && (cC = "keyboard", pC("keyboard", e));
+ sC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (uC = !0, fC("pointer", e));
}
function hC(e) {
- cC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (dC = !0, pC("pointer", e));
+ !eC.isOpening && QS(e) && (uC = !0, sC = "virtual");
}
function gC(e) {
- !tC.isOpening && $S(e) && (dC = !0, cC = "virtual");
+ if (HS) return;
+ let t = G(e), n = CS(t), r = SS(t);
+ t === n ? dC = !0 : t !== r && e.isTrusted && (!uC && !dC && (sC = "virtual", fC("virtual", e)), uC = !1, dC = !1);
}
-function _C(e) {
- if (US) return;
- let t = G(e), n = wS(t), r = CS(t);
- t === n ? fC = !0 : t !== r && e.isTrusted && (!dC && !fC && (cC = "virtual", pC("virtual", e)), dC = !1, fC = !1);
+function _C() {
+ HS || (uC = !1, dC = !0);
}
-function vC() {
- US || (dC = !1, fC = !0);
-}
-function yC(e) {
- let t = jS(CS(G(e)));
+function vC(e) {
+ let t = AS(SS(G(e)));
queueMicrotask(() => {
- jS(CS(G(e))) !== t && wC("keyboard");
+ AS(SS(G(e))) !== t && CC("keyboard");
});
}
-function bC(e) {
+function yC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = wS(e), n = CS(e);
- if (uC.get(t)) return;
+ let t = CS(e), n = SS(e);
+ if (lC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- dC = !0, r.apply(this, arguments);
+ uC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", mC, !0), n.addEventListener("keyup", mC, !0), n.addEventListener("click", gC, !0), n.addEventListener("invalid", yC, !0), t.addEventListener("focus", _C, !0), t.addEventListener("blur", vC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", hC, !0), n.addEventListener("pointermove", hC, !0), n.addEventListener("pointerup", hC, !0)), t.addEventListener("beforeunload", () => {
- xC(e);
- }, { once: !0 }), uC.set(t, { focus: r });
+ }), n.addEventListener("keydown", pC, !0), n.addEventListener("keyup", pC, !0), n.addEventListener("click", hC, !0), n.addEventListener("invalid", vC, !0), t.addEventListener("focus", gC, !0), t.addEventListener("blur", _C, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", mC, !0), n.addEventListener("pointermove", mC, !0), n.addEventListener("pointerup", mC, !0)), t.addEventListener("beforeunload", () => {
+ bC(e);
+ }, { once: !0 }), lC.set(t, { focus: r });
}
-var xC = (e, t) => {
- let n = wS(e), r = CS(e);
- t && r.removeEventListener("DOMContentLoaded", t), uC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var bC = (e, t) => {
+ let n = CS(e), r = SS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), lC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: uC.get(n).focus
- }), r.removeEventListener("keydown", mC, !0), r.removeEventListener("keyup", mC, !0), r.removeEventListener("click", gC, !0), r.removeEventListener("invalid", yC, !0), n.removeEventListener("focus", _C, !0), n.removeEventListener("blur", vC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", hC, !0), r.removeEventListener("pointermove", hC, !0), r.removeEventListener("pointerup", hC, !0)), uC.delete(n));
+ value: lC.get(n).focus
+ }), r.removeEventListener("keydown", pC, !0), r.removeEventListener("keyup", pC, !0), r.removeEventListener("click", hC, !0), r.removeEventListener("invalid", vC, !0), n.removeEventListener("focus", gC, !0), n.removeEventListener("blur", _C, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", mC, !0), r.removeEventListener("pointermove", mC, !0), r.removeEventListener("pointerup", mC, !0)), lC.delete(n));
};
-function Hae(e) {
- let t = CS(e), n;
+function Uae(e) {
+ let t = SS(e), n;
return t.readyState === "loading" ? (n = () => {
- bC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : bC(e), () => xC(e, n);
+ yC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : yC(e), () => bC(e, n);
}
-typeof document < "u" && Hae();
-function SC() {
- return cC !== "pointer";
+typeof document < "u" && Uae();
+function xC() {
+ return sC !== "pointer";
}
-function CC() {
- return cC;
+function SC() {
+ return sC;
}
-function wC(e) {
- cC = e, pC(e, null);
+function CC(e) {
+ sC = e, fC(e, null);
}
-function TC() {
- bC();
- let [e, t] = (0, F.useState)(cC);
+function wC() {
+ yC();
+ let [e, t] = (0, F.useState)(sC);
return (0, F.useEffect)(() => {
let e = () => {
- t(cC);
+ t(sC);
};
- return lC.add(e), () => {
- lC.delete(e);
+ return cC.add(e), () => {
+ cC.delete(e);
};
- }, []), sC() ? null : e;
+ }, []), oC() ? null : e;
}
-var Uae = /* @__PURE__ */ new Set([
+var Wae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22852,107 +22852,107 @@ var Uae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Wae(e, t, n) {
- let r = n ? G(n) : void 0, i = CS(r), a = wS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = jS(i);
- return e = e || u instanceof o && !Uae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Bae[n.key]);
+function Gae(e, t, n) {
+ let r = n ? G(n) : void 0, i = SS(r), a = CS(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 = AS(i);
+ return e = e || u instanceof o && !Wae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Vae[n.key]);
}
-function EC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || SC());
- return DC((e) => {
+function TC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || xC());
+ return EC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function DC(e, t, n) {
- bC(), (0, F.useEffect)(() => {
+function EC(e, t, n) {
+ yC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Wae(!!n?.isTextInput, t, r) && e(SC());
+ Gae(!!n?.isTextInput, t, r) && e(xC());
};
- return lC.add(t), () => {
- lC.delete(t);
+ return cC.add(t), () => {
+ cC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var OC = /* @__PURE__ */ new Map(), kC = /* @__PURE__ */ new Set();
-function AC(e) {
+var DC = /* @__PURE__ */ new Map(), OC = /* @__PURE__ */ new Set();
+function kC(e) {
return "propertyName" in e;
}
-function Gae(e) {
+function Kae(e) {
let t = G(e);
- if (!AC(e) || !t) return;
- let n = OC.get(t);
- n || (n = /* @__PURE__ */ new Set(), OC.set(t, n), t.addEventListener("transitioncancel", jC, { once: !0 })), n.add(e.propertyName);
+ if (!kC(e) || !t) return;
+ let n = DC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), DC.set(t, n), t.addEventListener("transitioncancel", AC, { once: !0 })), n.add(e.propertyName);
}
-function jC(e) {
+function AC(e) {
let t = G(e);
- if (!AC(e) || !t) return;
- let n = OC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", jC), OC.delete(t)), OC.size === 0)) for (let e of kC) e(!0), kC.delete(e);
+ if (!kC(e) || !t) return;
+ let n = DC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", AC), DC.delete(t)), DC.size === 0)) for (let e of OC) e(!0), OC.delete(e);
}
-function MC() {
- DS(document, "transitionrun", Gae), DS(document, "transitionend", jC);
+function jC() {
+ ES(document, "transitionrun", Kae), ES(document, "transitionend", AC);
}
-function Kae() {
- for (let [e] of OC) "isConnected" in e && !e.isConnected && OC.delete(e);
+function qae() {
+ for (let [e] of DC) "isConnected" in e && !e.isConnected && DC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", MC) : MC());
-function NC(e) {
+typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", jC) : jC());
+function MC(e) {
let t = window.requestAnimationFrame(() => {
- if (Kae(), OC.size === 0) return e(!1);
- kC.add(e);
+ if (qae(), DC.size === 0) return e(!1);
+ OC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), kC.delete(e);
+ window.cancelAnimationFrame(t), OC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function PC(e) {
+function NC(e) {
if (!e.isConnected) return;
- let t = CS(e);
- if (CC() === "virtual") {
- let n = jS(t);
- NC(() => {
- let r = jS(t);
- (r === n || r === t.body) && e.isConnected && SS(e);
+ let t = SS(e);
+ if (SC() === "virtual") {
+ let n = AS(t);
+ MC(() => {
+ let r = AS(t);
+ (r === n || r === t.body) && e.isConnected && xS(e);
});
- } else SS(e);
+ } else xS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function FC(...e) {
+function PC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function qae(e) {
+function Jae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return zS(() => {
+ return RS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Jae = !!(typeof window < "u" && window.document && window.document.createElement), IC = /* @__PURE__ */ new Map(), LC;
-typeof FinalizationRegistry < "u" && (LC = new FinalizationRegistry((e) => {
- IC.delete(e);
+var Yae = !!(typeof window < "u" && window.document && window.document.createElement), FC = /* @__PURE__ */ new Map(), IC;
+typeof FinalizationRegistry < "u" && (IC = new FinalizationRegistry((e) => {
+ FC.delete(e);
}));
-var RC = /* @__PURE__ */ new WeakMap();
-function zC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Iae(t), a = (0, F.useRef)(null), o = RC.get(a);
- if (LC && o !== i && (o != null && LC.unregister(a), LC.register(a, i, a), RC.set(a, i)), Jae) {
- let e = IC.get(i);
- e && !e.includes(r) ? e.push(r) : IC.set(i, [r]);
- }
- return zS(() => {
+var LC = /* @__PURE__ */ new WeakMap();
+function RC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Lae(t), a = (0, F.useRef)(null), o = LC.get(a);
+ if (IC && o !== i && (o != null && IC.unregister(a), IC.register(a, i, a), LC.set(a, i)), Yae) {
+ let e = FC.get(i);
+ e && !e.includes(r) ? e.push(r) : FC.set(i, [r]);
+ }
+ return RS(() => {
let e = i;
return () => {
- LC && (LC.unregister(a), RC.delete(a)), IC.delete(e);
+ IC && (IC.unregister(a), LC.delete(a)), FC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22961,57 +22961,57 @@ function zC(e) {
};
}), i;
}
-function Yae(e, t) {
+function Xae(e, t) {
if (e === t) return e;
- let n = IC.get(e);
+ let n = FC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = IC.get(t);
+ let r = FC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function BC(e = []) {
- let t = zC(), [n, r] = qae(t), i = (0, F.useCallback)(() => {
+function zC(e = []) {
+ let t = RC(), [n, r] = Jae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return zS(i, [
+ return RS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function VC(...e) {
+function BC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = HC(e, t);
+ let r = VC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : HC(e[n], null);
+ typeof t == "function" ? t() : VC(e[n], null);
});
};
};
}
-function HC(e, t) {
+function VC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function UC(e) {
+function HC(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 = UC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = HC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function WC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = UC(e)) && (r && (r += " "), r += t);
+function UC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = HC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -23021,17 +23021,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = FC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = WC(n, i) : e === "id" && n && i ? t.id = Yae(n, i) : e === "ref" && n && i ? t.ref = VC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = PC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = UC(n, i) : e === "id" && n && i ? t.id = Xae(n, i) : e === "ref" && n && i ? t.ref = BC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function GC(e) {
+function WC(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 = HS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = CS(t), a = r ? jS(r) : jS();
+ }, [r, i]), o = VS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = SS(t), a = r ? AS(r) : AS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23044,7 +23044,7 @@ function GC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function KC(e) {
+function GC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23068,33 +23068,33 @@ function KC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Xae = /* @__PURE__ */ new Set([
+var Zae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Zae = [
+]), Qae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Qae(e) {
+function $ae(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(qS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(KS() ? "Meta" : "Control"), t;
}
-function $ae(e) {
+function eoe(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 qC(e) {
- return Zae.filter((t) => e.has(t));
+function KC(e) {
+ return Qae.filter((t) => e.has(t));
}
-function eoe(e) {
+function toe(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Xae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ 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,
@@ -23106,10 +23106,10 @@ function eoe(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 JC(e) {
+function qC(e) {
return e.toLowerCase();
}
-var toe = {
+var noe = {
space: " ",
esc: "escape",
del: "delete",
@@ -23121,26 +23121,26 @@ var toe = {
pageup: "pageup",
pagedown: "pagedown"
};
-function noe(e) {
- let t = JC(e);
- return toe[t] ?? t;
-}
function roe(e) {
- let t = qC(Qae(e)), n = noe(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = qC(e);
+ return noe[t] ?? t;
}
function ioe(e) {
- let t = qC($ae(e)), n = JC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = KC($ae(e)), n = roe(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function aoe(e) {
+ let t = KC(eoe(e)), n = qC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function ooe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = eoe(n);
- t.set(roe(e), r);
+ let e = toe(n);
+ t.set(ioe(e), r);
}
return (e) => {
- let n = ioe(e), r = t.get(n), i = r?.(e);
+ let n = aoe(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23151,23 +23151,23 @@ function aoe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function YC(e) {
+function JC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = aoe(t), s = KC((e) => {
- AS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = KC((e) => {
- AS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = ooe(t), s = GC((e) => {
+ kS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = GC((e) => {
+ kS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? FC(e.onKeyDown, s) : s, a = e.onKeyUp ? FC(e.onKeyUp, c) : c;
- } else i = KC(e.onKeyDown), a = KC(e.onKeyUp);
+ i = e.onKeyDown ? PC(e.onKeyDown, s) : s, a = e.onKeyUp ? PC(e.onKeyUp, c) : c;
+ } else i = GC(e.onKeyDown), a = GC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function XC(e) {
+function YC(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);
@@ -23189,25 +23189,25 @@ function XC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function ZC(e, t) {
- zS(() => {
+function XC(e, t) {
+ RS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var QC = /*#__PURE__*/ F.createContext(null);
-function ooe(e) {
- let t = (0, F.useContext)(QC) || {};
- ZC(t, e);
+var ZC = /*#__PURE__*/ F.createContext(null);
+function soe(e) {
+ let t = (0, F.useContext)(ZC) || {};
+ XC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function $C(e, t) {
- let { focusProps: n } = GC(e), { keyboardProps: r } = YC(e), i = K(n, r), a = ooe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function QC(e, t) {
+ let { focusProps: n } = WC(e), { keyboardProps: r } = JC(e), i = K(n, r), a = soe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && PC(t.current), s.current = !1;
+ s.current && t.current && NC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23241,21 +23241,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var ew = /*#__PURE__*/ (0, F.createContext)(!1);
-function soe(e) {
- if ((0, F.useContext)(ew)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(ew.Provider, { value: !0 }, e.children);
+var $C = /*#__PURE__*/ (0, F.createContext)(!1);
+function coe(e) {
+ if ((0, F.useContext)($C)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement($C.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function tw(e) {
- let t = (t, n) => (0, F.useContext)(ew) ? null : e(t, n);
+function ew(e) {
+ let t = (t, n) => (0, F.useContext)($C) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function nw() {
- return (0, F.useContext)(ew);
+function tw() {
+ return (0, F.useContext)($C);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var coe = /* @__PURE__ */ o(((e) => {
+var loe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23293,47 +23293,47 @@ var coe = /* @__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;
-})), rw = /* @__PURE__ */ o(((e, t) => {
- t.exports = coe();
-})), loe = rw(), iw = /*#__PURE__*/ (0, F.createContext)(!1), aw = /*#__PURE__*/ (0, F.createContext)(null);
-function ow(e) {
- if ((0, F.useContext)(aw)) return e.content;
- let { collection: t, document: n } = poe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(soe, null, /*#__PURE__*/ F.createElement(aw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(uoe, {
+})), nw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = loe();
+})), uoe = nw(), rw = /*#__PURE__*/ (0, F.createContext)(!1), iw = /*#__PURE__*/ (0, F.createContext)(null);
+function aw(e) {
+ if ((0, F.useContext)(iw)) return e.content;
+ let { collection: t, document: n } = moe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(coe, null, /*#__PURE__*/ F.createElement(iw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(doe, {
render: e.children,
collection: t
}));
}
-function uoe({ collection: e, render: t }) {
+function doe({ collection: e, render: t }) {
return t(e);
}
-function doe(e, t, n) {
- let r = sC(), i = (0, F.useRef)(r);
+function foe(e, t, n) {
+ let r = oC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, loe.useSyncExternalStore)(e, a);
+ return (0, uoe.useSyncExternalStore)(e, a);
}
-var foe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : doe;
-function poe(e) {
- let [t] = (0, F.useState)(() => new pae(e?.() || new _S()));
+var poe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : foe;
+function moe(e) {
+ let [t] = (0, F.useState)(() => new mae(e?.() || new gS()));
return {
- collection: foe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: poe((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 sw = /*#__PURE__*/ (0, F.createContext)(null);
-function moe(e) {
- return class extends pS {
+var ow = /*#__PURE__*/ (0, F.createContext)(null);
+function hoe(e) {
+ return class extends fS {
static {
this.type = e;
}
};
}
-function cw(e, t, n, r, i, a) {
- typeof e == "string" && (e = moe(e));
+function sw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = hoe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23342,82 +23342,82 @@ function cw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(sw);
+ ]), s = (0, F.useContext)(ow);
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(sw.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(ow.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function lw(e, t) {
+function cw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(QC);
- if (!(0, F.useContext)(iw)) {
+ let a = (0, F.useContext)(ZC);
+ if (!(0, F.useContext)(rw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return cw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(QC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return sw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ZC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function uw(e, t, n = dw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => cw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function lw(e, t, n = uw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => sw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function dw(e) {
- return xS({
+function uw(e) {
+ return bS({
...e,
addIdAndValue: !0
});
}
-var fw = /*#__PURE__*/ (0, F.createContext)(null);
-function pw(e) {
- let t = (0, F.useContext)(fw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = dw({
+var dw = /*#__PURE__*/ (0, F.createContext)(null);
+function fw(e) {
+ let t = (0, F.useContext)(dw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = uw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(aw) && (i = /*#__PURE__*/ F.createElement(hoe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(iw) && (i = /*#__PURE__*/ F.createElement(goe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, i);
}
-function hoe({ children: e }) {
- let t = (0, F.useContext)(aw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(aw.Provider, { value: null }, /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e)), [e]);
- return sC() ? /*#__PURE__*/ F.createElement(sw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function goe({ children: e }) {
+ let t = (0, F.useContext)(iw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(iw.Provider, { value: null }, /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e)), [e]);
+ return oC() ? /*#__PURE__*/ F.createElement(ow.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var goe = "react-aria-clear-focus", _oe = "react-aria-focus";
+var _oe = "react-aria-clear-focus", voe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function mw(e) {
- let t = yoe(CS(e));
- t !== e && (t && voe(t, e), e && hw(e, t));
+function pw(e) {
+ let t = boe(SS(e));
+ t !== e && (t && yoe(t, e), e && mw(e, t));
}
-function voe(e, t) {
+function yoe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function hw(e, t) {
+function mw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function yoe(e) {
- let t = jS(e), n = t?.getAttribute("aria-activedescendant");
+function boe(e) {
+ let t = AS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function gw(e, t) {
- let n = wS(t), r = CS(t);
+function hw(e, t) {
+ let n = CS(t), r = SS(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 _w = 100, vw = 600, yw = {
+var gw = 100, _w = 600, vw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23427,7 +23427,7 @@ var _w = 100, vw = 600, yw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, boe = /* @__PURE__ */ new Set([
+}, xoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23438,7 +23438,7 @@ var _w = 100, vw = 600, yw = {
"submit",
"reset"
]);
-function bw() {
+function yw() {
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,
@@ -23446,58 +23446,58 @@ function bw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function xoe(e) {
- yw.resizeTimeStamp <= e.timeStamp + 50 && (yw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(yw.resizeTimeout), yw.resizeTimeout = window.setTimeout(xw, 150));
+function Soe(e) {
+ vw.resizeTimeStamp <= e.timeStamp + 50 && (vw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(vw.resizeTimeout), vw.resizeTimeout = window.setTimeout(bw, 150));
}
-function xw() {
- let e = gw("viewport");
- if (QS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = bw(), r = t - yw.startTimeStamp, i = yw.screenHeight - n.height, a = yw.screenAngle - n.angle;
- Math.abs(a) % 180 && yw.screenWidth - n.height < _w && (yw.screenWidth = n.width, yw.screenHeight = n.height, yw.screenAngle = n.angle, i = 0), r > vw && (window.clearTimeout(yw.screenTimeout), yw.screenTimeout = window.setTimeout(() => {
- let e = ww(document.hasFocus() ? jS() : null), t = bw();
- Math.abs(yw.screenAngle - t.angle) % 180 || yw.isOpen && e || (yw.screenWidth = t.width, yw.screenHeight = t.height, yw.screenAngle = t.angle, yw.isOpen = !1);
- }, vw)), r <= vw && i >= _w && (yw.endTimeStamp = t), yw.isOpen = i >= _w;
-}
-function Soe() {
- let e = bw(), t = yw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !yw.isOpen) {
- let e = yw.screenWidth;
- yw.screenWidth = yw.screenHeight, yw.screenHeight = e;
- }
- yw.isOpen || (yw.screenAngle = e.angle);
-}
-function Coe(e) {
- let t = ww(G(e)), n = performance.now(), r = bw(), i = yw.screenHeight - r.height;
- i < _w && t && (yw.screenWidth = r.width, yw.screenHeight = r.height, yw.screenAngle = r.angle, yw.startTimeStamp = n), t && window.clearTimeout(yw.screenTimeout), i >= _w && t && (yw.endTimeStamp = n);
+function bw() {
+ let e = hw("viewport");
+ if (ZS() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = yw(), r = t - vw.startTimeStamp, i = vw.screenHeight - n.height, a = vw.screenAngle - n.angle;
+ Math.abs(a) % 180 && vw.screenWidth - n.height < gw && (vw.screenWidth = n.width, vw.screenHeight = n.height, vw.screenAngle = n.angle, i = 0), r > _w && (window.clearTimeout(vw.screenTimeout), vw.screenTimeout = window.setTimeout(() => {
+ let e = Cw(document.hasFocus() ? AS() : null), t = yw();
+ Math.abs(vw.screenAngle - t.angle) % 180 || vw.isOpen && e || (vw.screenWidth = t.width, vw.screenHeight = t.height, vw.screenAngle = t.angle, vw.isOpen = !1);
+ }, _w)), r <= _w && i >= gw && (vw.endTimeStamp = t), vw.isOpen = i >= gw;
+}
+function Coe() {
+ let e = yw(), t = vw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !vw.isOpen) {
+ let e = vw.screenWidth;
+ vw.screenWidth = vw.screenHeight, vw.screenHeight = e;
+ }
+ vw.isOpen || (vw.screenAngle = e.angle);
+}
+function woe(e) {
+ let t = Cw(G(e)), n = performance.now(), r = yw(), i = vw.screenHeight - r.height;
+ i < gw && t && (vw.screenWidth = r.width, vw.screenHeight = r.height, vw.screenAngle = r.angle, vw.startTimeStamp = n), t && window.clearTimeout(vw.screenTimeout), i >= gw && t && (vw.endTimeStamp = n);
}
-function Sw() {
- let e = bw();
- DS(window.visualViewport, "resize", XS() ? xw : xoe), DS(window.screen.orientation, "change", Soe), DS(window, "focus", Coe, {
+function xw() {
+ let e = yw();
+ ES(window.visualViewport, "resize", YS() ? bw : Soe), ES(window.screen.orientation, "change", Coe), ES(window, "focus", woe, {
capture: !0,
passive: !0
- }), yw.screenWidth = e.width, yw.screenHeight = e.height, yw.screenAngle = e.angle;
+ }), vw.screenWidth = e.width, vw.screenHeight = e.height, vw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", Sw) : Sw());
-function Cw() {
- let e = gw("viewport");
- return QS() && e?.includes("overlays-content") ? !1 : yw.isOpen ? !0 : yw.startTimeStamp ? yw.endTimeStamp >= yw.startTimeStamp ? !0 : performance.now() - yw.startTimeStamp <= vw ? yw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", xw) : xw());
+function Sw() {
+ let e = hw("viewport");
+ return ZS() && e?.includes("overlays-content") ? !1 : vw.isOpen ? !0 : vw.startTimeStamp ? vw.endTimeStamp >= vw.startTimeStamp ? !0 : performance.now() - vw.startTimeStamp <= _w ? vw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function ww(e) {
- if (!(e instanceof Element) || !IS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !boe.has(e.type);
+function Cw(e) {
+ if (!(e instanceof Element) || !FS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !xoe.has(e.type);
return t || n || r;
}
-function Tw(e) {
- return qS() ? e.metaKey : e.ctrlKey;
+function ww(e) {
+ return KS() ? e.metaKey : e.ctrlKey;
}
-function Ew() {
- return yw.isOpen;
+function Tw() {
+ return vw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var woe = F.useInsertionEffect ?? zS;
-function Dw(e) {
+var Toe = F.useInsertionEffect ?? RS;
+function Ew(e) {
let t = (0, F.useRef)(null);
- return woe(() => {
+ return Toe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23505,10 +23505,10 @@ function Dw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ow(e, t, n, r) {
- let i = Dw(n), a = n == null;
+function Dw(e, t, n, r) {
+ let i = Ew(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return DS(e.current, t, i, r);
+ if (!(a || e.current == null)) return ES(e.current, t, i, r);
}, [
e,
t,
@@ -23517,16 +23517,16 @@ function Ow(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function kw(e, t) {
+function Ow(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = zC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = RC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var Toe = /* @__PURE__ */ new Set([
+var Eoe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23537,7 +23537,7 @@ var Toe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Eoe = /* @__PURE__ */ new Set([
+]), Doe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23558,19 +23558,19 @@ var Toe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Doe(e) {
+function Ooe(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 Toe.has(t.script);
+ if (t.script) return Eoe.has(t.script);
}
let t = e.split("-")[0];
- return Eoe.has(t);
+ return Doe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Aw = Symbol.for("react-aria.i18n.locale");
-function jw() {
- let e = typeof window < "u" && window[Aw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var kw = Symbol.for("react-aria.i18n.locale");
+function Aw() {
+ let e = typeof window < "u" && window[kw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23578,31 +23578,31 @@ function jw() {
}
return {
locale: e,
- direction: Doe(e) ? "rtl" : "ltr"
+ direction: Ooe(e) ? "rtl" : "ltr"
};
}
-var Mw = jw(), Nw = /* @__PURE__ */ new Set();
-function Pw() {
- Mw = jw();
- for (let e of Nw) e(Mw);
+var jw = Aw(), Mw = /* @__PURE__ */ new Set();
+function Nw() {
+ jw = Aw();
+ for (let e of Mw) e(jw);
}
-function Ooe() {
- let e = sC(), [t, n] = (0, F.useState)(Mw);
- return (0, F.useEffect)(() => (Nw.size === 0 && window.addEventListener("languagechange", Pw), Nw.add(n), () => {
- Nw.delete(n), Nw.size === 0 && window.removeEventListener("languagechange", Pw);
+function koe() {
+ let e = oC(), [t, n] = (0, F.useState)(jw);
+ return (0, F.useEffect)(() => (Mw.size === 0 && window.addEventListener("languagechange", Nw), Mw.add(n), () => {
+ Mw.delete(n), Mw.size === 0 && window.removeEventListener("languagechange", Nw);
}), []), e ? {
- locale: typeof window < "u" && window[Aw] || "en-US",
+ locale: typeof window < "u" && window[kw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var koe = /*#__PURE__*/ F.createContext(null);
-function Fw() {
- let e = Ooe();
- return (0, F.useContext)(koe) || e;
+var Aoe = /*#__PURE__*/ F.createContext(null);
+function Pw() {
+ let e = koe();
+ return (0, F.useContext)(Aoe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Aoe = Symbol.for("react-aria.i18n.locale"), joe = Symbol.for("react-aria.i18n.strings"), Iw = void 0, Lw = class e {
+var joe = Symbol.for("react-aria.i18n.locale"), Moe = Symbol.for("react-aria.i18n.strings"), Fw = void 0, Iw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23613,38 +23613,38 @@ var Aoe = Symbol.for("react-aria.i18n.locale"), joe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Moe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Noe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Aoe];
- if (Iw === void 0) {
- let t = window[joe];
+ let n = window[joe];
+ if (Fw === void 0) {
+ let t = window[Moe];
if (!t) return null;
- Iw = {};
- for (let r in t) Iw[r] = new e({ [n]: t[r] }, n);
+ Fw = {};
+ for (let r in t) Fw[r] = new e({ [n]: t[r] }, n);
}
- let r = Iw?.[t];
+ let r = Fw?.[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 Moe(e, t, n = "en-US") {
+function Noe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Noe(e), i = Poe(e);
+ let r = Poe(e), i = Foe(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 Noe(e) {
+function Poe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Poe(e) {
+function Foe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class {
+var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), Ioe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23655,36 +23655,36 @@ var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Rw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Rw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Lw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Lw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = zw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), zw.set(this.locale, t)), t.format(e);
+ let t = Rw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Rw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Bw = /* @__PURE__ */ new WeakMap();
-function Ioe(e) {
- let t = Bw.get(e);
- return t || (t = new Lw(e), Bw.set(e, t)), t;
+}, zw = /* @__PURE__ */ new WeakMap();
+function Loe(e) {
+ let t = zw.get(e);
+ return t || (t = new Iw(e), zw.set(e, t)), t;
}
-function Loe(e, t) {
- return t && Lw.getGlobalDictionaryForPackage(t) || Ioe(e);
+function Roe(e, t) {
+ return t && Iw.getGlobalDictionaryForPackage(t) || Loe(e);
}
-function Vw(e, t) {
- let { locale: n } = Fw(), r = Loe(e, t);
- return (0, F.useMemo)(() => new Foe(n, r), [n, r]);
+function Bw(e, t) {
+ let { locale: n } = Pw(), r = Roe(e, t);
+ return (0, F.useMemo)(() => new Ioe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
+var zoe = /* @__PURE__ */ new Set(["id"]), Boe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Boe = /* @__PURE__ */ new Set([
+]), Voe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23692,60 +23692,60 @@ var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Voe = /* @__PURE__ */ new Set([
+]), Hoe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Hw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Hoe = /^(data-.*)$/;
-function Uw(e, t = {}) {
+]), Vw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Uoe = /^(data-.*)$/;
+function Hw(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) && (Roe.has(t) || n && zoe.has(t) || r && Boe.has(t) || i && Voe.has(t) || a && (Hw.has(t) || t.endsWith("Capture") && Hw.has(t.slice(0, -7))) || o?.has(t) || Hoe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (zoe.has(t) || n && Boe.has(t) || r && Voe.has(t) || i && Hoe.has(t) || a && (Vw.has(t) || t.endsWith("Capture") && Vw.has(t.slice(0, -7))) || o?.has(t) || Uoe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Ww = "default", Gw = "", Kw = /* @__PURE__ */ new WeakMap();
-function qw(e) {
- if (YS() && XS()) {
- if (Ww === "default") {
- let t = CS(e);
- Gw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Ww = "disabled";
+var Uw = "default", Ww = "", Gw = /* @__PURE__ */ new WeakMap();
+function Kw(e) {
+ if (JS() && YS()) {
+ if (Uw === "default") {
+ let t = SS(e);
+ Ww = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Uw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Kw.set(e, e.style[t]), e.style[t] = "none";
+ Gw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Jw(e) {
- if (YS() && XS()) {
- if (Ww !== "disabled") return;
- Ww = "restoring", setTimeout(() => {
- NC(() => {
- if (Ww === "restoring") {
- let t = CS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Gw || ""), Gw = "", Ww = "default";
+function qw(e) {
+ if (JS() && YS()) {
+ if (Uw !== "disabled") return;
+ Uw = "restoring", setTimeout(() => {
+ MC(() => {
+ if (Uw === "restoring") {
+ let t = SS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Ww || ""), Ww = "", Uw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Kw.has(e)) {
- let t = Kw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Kw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Gw.has(e)) {
+ let t = Gw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Gw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Yw = /* @__PURE__ */ new WeakMap();
-function Xw(e) {
- let t = CS(e), n = Yw.get(t);
- return n ??= gw("csp-nonce", t), n !== void 0 && Yw.set(t, n), n;
+var Jw = /* @__PURE__ */ new WeakMap();
+function Yw(e) {
+ let t = SS(e), n = Jw.get(t);
+ return n ??= hw("csp-nonce", t), n !== void 0 && Jw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var Zw = F.createContext({ register: () => {} });
-Zw.displayName = "PressResponderContext";
+var Xw = F.createContext({ register: () => {} });
+Xw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Qw() {
+function Zw() {
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);
@@ -23771,15 +23771,15 @@ function Qw() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Uoe(e) {
- let t = (0, F.useContext)(Zw);
+function Woe(e) {
+ let t = (0, F.useContext)(Xw);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return ZC(t, e.ref), e;
+ return XC(t, e.ref), e;
}
-var $w = class {
+var Qw = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23792,9 +23792,9 @@ var $w = class {
get shouldStopPropagation() {
return this.#e;
}
-}, eT = Symbol("linkClicked"), tT = "react-aria-pressable-style", nT = "data-react-aria-pressable";
-function rT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Uoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, $w = Symbol("linkClicked"), eT = "react-aria-pressable-style", tT = "data-react-aria-pressable";
+function nT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Woe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23804,12 +23804,12 @@ function rT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Qw(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Zw(), 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 $w("pressstart", t, e);
+ let n = new Qw("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23823,11 +23823,11 @@ function rT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new $w("pressend", r, e);
+ let t = new Qw("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new $w("press", r, e);
+ let n = new Qw("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23836,19 +23836,19 @@ function rT(e) {
i,
n,
t
- ]), x = Dw(b), S = Dw((0, F.useCallback)((e, t) => {
+ ]), x = Ew(b), S = Ew((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new $w("pressup", t, e);
+ let r = new Qw("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(oT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Jw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(aT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || qw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23856,7 +23856,7 @@ function rT(e) {
d,
v,
b
- ]), w = Dw(C);
+ ]), w = Ew(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23873,39 +23873,39 @@ function rT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- VS(n, t), o(BS(n));
+ BS(n, t), o(zS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (aT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, G(t))) {
- sT(G(t), t.key) && t.preventDefault();
+ if (iT(t.nativeEvent, t.currentTarget) && kS(t.currentTarget, G(t))) {
+ oT(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;
- _(CS(t.currentTarget), "keyup", FC((t) => {
- aT(t, i) && !t.repeat && AS(i, G(t)) && e.target && S(oT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && qS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(SS(t.currentTarget), "keyup", PC((t) => {
+ iT(t, i) && !t.repeat && kS(i, G(t)) && e.target && S(aT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && KS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || AS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {
+ if ((!t || kS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !eC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || $S(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || QS(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(oT(t.currentTarget, t), r), a = x(oT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(aT(t.currentTarget, t), r), a = x(aT(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 && aT(t, e.target)) {
- sT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = AS(e.target, n);
- x(oT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && iT(e.target) && AS(e.target, n) && !t[eT] && (t[eT] = !0, tC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && iT(t, e.target)) {
+ oT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = kS(e.target, n);
+ x(aT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && rT(e.target) && kS(e.target, n) && !t[$w] && (t[$w] = !0, eC(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;
@@ -23914,39 +23914,39 @@ function rT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !AS(t.currentTarget, G(t))) return;
- if (Eae(t.nativeEvent)) {
+ if (t.button !== 0 || !kS(t.currentTarget, G(t))) return;
+ if (Dae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || qw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Kw(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)), _(CS(t.currentTarget), "pointerup", n, !1), _(CS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(SS(t.currentTarget), "pointerup", n, !1), _(SS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (AS(t.currentTarget, G(t)) && t.button === 0) {
+ if (kS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Cae(t.target);
+ let n = wae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- AS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ kS(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(oT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(aT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(oT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(aT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (AS(e.target, G(t)) && e.pointerType != null) {
+ if (kS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (SS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (xS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23956,7 +23956,7 @@ function rT(e) {
w(e);
};
t.onDragStart = (e) => {
- AS(e.currentTarget, G(e)) && w(e);
+ kS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23973,14 +23973,14 @@ function rT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = CS(f.current);
- if (!e || !e.head || e.getElementById(tT)) return;
+ let e = SS(f.current);
+ if (!e || !e.head || e.getElementById(eT)) return;
let t = e.createElement("style");
- t.id = tT;
- let n = Xw(e);
+ t.id = eT;
+ let n = Yw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${nT}] {
+ [${tT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23988,23 +23988,23 @@ function rT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Jw(e.target ?? void 0);
+ d || qw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [nT]: !0 })
+ pressProps: K(p, O, { [tT]: !0 })
};
}
-function iT(e) {
+function rT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function aT(e, t) {
+function iT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wS(i).HTMLInputElement && !cT(i, n) || i instanceof wS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && iT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof CS(i).HTMLInputElement && !sT(i, n) || i instanceof CS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && rT(i)) && n !== "Enter");
}
-function oT(e, t) {
+function aT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24017,13 +24017,13 @@ function oT(e, t) {
key: t.key
};
}
-function Woe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !iT(e);
+function Goe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !rT(e);
}
-function sT(e, t) {
- return qS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !cT(e, t) : Woe(e);
+function oT(e, t) {
+ return KS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !sT(e, t) : Goe(e);
}
-var Goe = /* @__PURE__ */ new Set([
+var Koe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24034,11 +24034,11 @@ var Goe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function cT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Goe.has(e.type);
+function sT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Koe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Koe(e, t) {
+function qoe(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,
@@ -24060,7 +24060,7 @@ function Koe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = rT({
+ let { pressProps: _, isPressed: v } = nT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24070,9 +24070,9 @@ function Koe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = $C(e, t);
+ }), { focusableProps: y } = QC(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Uw(e, { labelable: !0 }));
+ let b = K(y, _, Hw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24086,7 +24086,7 @@ function Koe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var qoe = class {
+var Joe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24111,7 +24111,7 @@ var qoe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!AS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!kS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24125,7 +24125,7 @@ var qoe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return AS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return kS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24189,44 +24189,44 @@ var qoe = class {
return null;
}
};
-function lT(e, t, n, r) {
- return kS() ? new qoe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function cT(e, t, n, r) {
+ return OS() ? new Joe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var uT = /*#__PURE__*/ F.createContext(null), dT = "react-aria-focus-scope-restore", fT = null;
-function pT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(uT) || {}, l = (0, F.useMemo)(() => new ET({ scopeRef: s }), [s]);
- zS(() => {
- let e = c || DT.root;
- if (DT.getTreeNode(e.scopeRef) && fT && !yT(fT, e.scopeRef)) {
- let t = DT.getTreeNode(fT);
+var lT = /*#__PURE__*/ F.createContext(null), uT = "react-aria-focus-scope-restore", dT = null;
+function fT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(lT) || {}, l = (0, F.useMemo)(() => new TT({ scopeRef: s }), [s]);
+ RS(() => {
+ let e = c || ET.root;
+ if (ET.getTreeNode(e.scopeRef) && dT && !vT(dT, e.scopeRef)) {
+ let t = ET.getTreeNode(dT);
t && (e = t);
}
- e.addChild(l), DT.addNode(l);
- }, [l, c]), zS(() => {
- let e = DT.getTreeNode(s);
+ e.addChild(l), ET.addNode(l);
+ }, [l, c]), RS(() => {
+ let e = ET.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), zS(() => {
+ }, [n]), RS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(dT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(uT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(dT, n);
+ for (let e of t) e.removeEventListener(uT, n);
};
- }, [t]), ese(s, r, n), Zoe(s, n), tse(s, r, n), $oe(s, i), (0, F.useEffect)(() => {
- let e = jS(CS(s.current ? s.current[0] : void 0)), t = null;
- if (_T(e, s.current)) {
- for (let n of DT.traverse()) n.scopeRef && _T(e, n.scopeRef.current) && (t = n);
- t === DT.getTreeNode(s) && (fT = t.scopeRef);
- }
- }, [s]), zS(() => () => {
- let e = DT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== fT && !yT(s, fT) || e && !DT.getTreeNode(e) || (fT = e), DT.removeTreeNode(s);
+ }, [t]), tse(s, r, n), Qoe(s, n), nse(s, r, n), ese(s, i), (0, F.useEffect)(() => {
+ let e = AS(SS(s.current ? s.current[0] : void 0)), t = null;
+ if (gT(e, s.current)) {
+ for (let n of ET.traverse()) n.scopeRef && gT(e, n.scopeRef.current) && (t = n);
+ t === ET.getTreeNode(s) && (dT = t.scopeRef);
+ }
+ }, [s]), RS(() => () => {
+ let e = ET.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== dT && !vT(s, dT) || e && !ET.getTreeNode(e) || (dT = e), ET.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Joe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Yoe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(uT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(lT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24236,154 +24236,154 @@ function pT(e) {
ref: o
}));
}
-function Joe(e) {
+function Yoe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = TT(mT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = wT(pT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = _T(s, n) ? s : c;
+ l.currentNode = gT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && bT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && yT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = TT(mT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = wT(pT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = _T(s, n) ? s : c;
+ l.currentNode = gT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && bT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && yT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && bT(o, !0), o;
+ return o && yT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && bT(o, !0), o;
+ return o && yT(o, !0), o;
}
};
}
-function mT(e) {
+function pT(e) {
return e[0].parentElement;
}
-function hT(e) {
- let t = DT.getTreeNode(fT);
+function mT(e) {
+ let t = ET.getTreeNode(dT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Yoe(e) {
- if (!e.form) return Array.from(CS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = wS(e);
+function Xoe(e) {
+ if (!e.form) return Array.from(SS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = CS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Xoe(e) {
+function Zoe(e) {
if (e.checked) return !0;
- let t = Yoe(e);
+ let t = Xoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Zoe(e, t) {
+function Qoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- zS(() => {
+ RS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = CS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
- let n = jS(a), r = e.current;
- if (!r || !_T(n, r)) return;
- let i = TT(mT(r), { tabbable: !0 }, r);
+ let a = SS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
+ let n = AS(a), r = e.current;
+ if (!r || !gT(n, r)) return;
+ let i = wT(pT(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 && (bT(o, !0), o instanceof wS(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 && (yT(o, !0), o instanceof CS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!fT || yT(fT, e)) && _T(G(t), e.current) ? (fT = e, n.current = G(t)) : hT(e) && !vT(G(t), e) ? n.current ? bT(n.current) : fT && fT.current && ST(fT.current) : hT(e) && (n.current = G(t));
+ (!dT || vT(dT, e)) && gT(G(t), e.current) ? (dT = e, n.current = G(t)) : mT(e) && !_T(G(t), e) ? n.current ? yT(n.current) : dT && dT.current && xT(dT.current) : mT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = CC(), i = (r === "virtual" || r === null) && QS() && ZS(), o = jS(a);
- if (!i && o && hT(e) && !vT(o, e)) {
- fT = e;
+ let r = SC(), i = (r === "virtual" || r === null) && ZS() && XS(), o = AS(a);
+ if (!i && o && mT(e) && !_T(o, e)) {
+ dT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, bT(n.current)) : fT.current && ST(fT.current);
+ r && r.isConnected ? (n.current = r, yT(n.current)) : dT.current && xT(dT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), zS(() => () => {
+ }, [e, t]), RS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function gT(e) {
- return vT(e);
+function hT(e) {
+ return _T(e);
}
-function _T(e, t) {
- return !e || !t ? !1 : t.some((t) => AS(t, e));
+function gT(e, t) {
+ return !e || !t ? !1 : t.some((t) => kS(t, e));
}
-function vT(e, t = null) {
+function _T(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of DT.traverse(DT.getTreeNode(t))) if (n && _T(e, n.current)) return !0;
+ for (let { scopeRef: n } of ET.traverse(ET.getTreeNode(t))) if (n && gT(e, n.current)) return !0;
return !1;
}
-function Qoe(e) {
- return vT(e, fT);
+function $oe(e) {
+ return _T(e, dT);
}
-function yT(e, t) {
- let n = DT.getTreeNode(t)?.parent;
+function vT(e, t) {
+ let n = ET.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function bT(e, t = !1) {
+function yT(e, t = !1) {
if (e != null && !t) try {
- PC(e);
+ NC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function xT(e, t = !0) {
- let n = e[0].previousElementSibling, r = mT(e), i = TT(r, { tabbable: t }, e);
+function bT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = pT(e), i = wT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = mT(e), i = TT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = pT(e), i = wT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function ST(e, t = !0) {
- bT(xT(e, t));
+function xT(e, t = !0) {
+ yT(bT(e, t));
}
-function $oe(e, t) {
+function ese(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (fT = e, !_T(jS(CS(e.current ? e.current[0] : void 0)), fT.current) && e.current && ST(e.current)), n.current = !1;
+ n.current && (dT = e, !gT(AS(SS(e.current ? e.current[0] : void 0)), dT.current) && e.current && xT(e.current)), n.current = !1;
}, [e]);
}
-function ese(e, t, n) {
- zS(() => {
+function tse(e, t, n) {
+ RS(() => {
if (t || n) return;
- let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = SS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- _T(n, e.current) ? fT = e : gT(n) || (fT = null);
+ gT(n, e.current) ? dT = e : hT(n) || (dT = 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));
@@ -24394,43 +24394,43 @@ function ese(e, t, n) {
n
]);
}
-function CT(e) {
- let t = DT.getTreeNode(fT);
+function ST(e) {
+ let t = ET.getTreeNode(dT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function tse(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? jS(CS(e.current ? e.current[0] : void 0)) : null);
- zS(() => {
- let r = e.current, i = CS(r ? r[0] : void 0);
+function nse(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? AS(SS(e.current ? e.current[0] : void 0)) : null);
+ RS(() => {
+ let r = e.current, i = SS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!fT || yT(fT, e)) && _T(jS(i), e.current) && (fT = e);
+ (!dT || vT(dT, e)) && gT(AS(i), e.current) && (dT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), zS(() => {
- let r = CS(e.current ? e.current[0] : void 0);
+ }, [e, n]), RS(() => {
+ let r = SS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!vT(n, e) || !CT(e)) return;
- let i = DT.getTreeNode(e);
+ if (!_T(n, e) || !ST(e)) return;
+ let i = ET.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = TT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = wT(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 || !vT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !_T(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (vT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? bT(s, !0) : gT(a) ? bT(a, !0) : n.blur();
+ while (_T(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? yT(s, !0) : hT(a) ? yT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24440,31 +24440,31 @@ function tse(e, t, n) {
e,
t,
n
- ]), zS(() => {
- let n = CS(e.current ? e.current[0] : void 0);
+ ]), RS(() => {
+ let n = SS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = DT.getTreeNode(e);
+ let i = ET.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = DT.getTreeNode(e);
+ let r = ET.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = jS(n);
- if (t && i && (a && vT(a, e) || a === n.body && CT(e))) {
- let t = DT.clone();
+ let i = r.nodeToRestore, a = AS(n);
+ if (t && i && (a && _T(a, e) || a === n.body && ST(e))) {
+ let t = ET.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- wT(n.nodeToRestore);
+ CT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && DT.getTreeNode(n.scopeRef)) {
- let e = xT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && ET.getTreeNode(n.scopeRef)) {
+ let e = bT(n.scopeRef.current, !0);
if (e) {
- wT(e);
+ CT(e);
return;
}
}
@@ -24476,21 +24476,21 @@ function tse(e, t, n) {
};
}, [e, t]);
}
-function wT(e) {
- e.dispatchEvent(new CustomEvent(dT, {
+function CT(e) {
+ e.dispatchEvent(new CustomEvent(uT, {
bubbles: !0,
cancelable: !0
- })) && bT(e);
+ })) && yT(e);
}
-function TT(e, t, n) {
- let r = t?.tabbable ? LS : IS, i = CS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = lT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return AS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Xoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || _T(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function wT(e, t, n) {
+ let r = t?.tabbable ? IS : FS, i = SS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = cT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return kS(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 || gT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var nse = class e {
+var rse = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new ET({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new TT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24501,7 +24501,7 @@ var nse = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new ET({ scopeRef: e });
+ let i = new TT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24512,7 +24512,7 @@ var nse = 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 && _T(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 && gT(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);
}
@@ -24524,7 +24524,7 @@ var nse = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, ET = class {
+}, TT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24534,13 +24534,13 @@ var nse = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, DT = new nse(), OT = 7e3, kT = null;
-function AT(e, t = "assertive", n = OT) {
- kT ? kT.announce(e, t, n) : (kT = new rse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? kT.announce(e, t, n) : setTimeout(() => {
- kT?.isAttached() && kT?.announce(e, t, n);
+}, ET = new rse(), DT = 7e3, OT = null;
+function kT(e, t = "assertive", n = DT) {
+ OT ? OT.announce(e, t, n) : (OT = new ise(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? OT.announce(e, t, n) : setTimeout(() => {
+ OT?.isAttached() && OT?.announce(e, t, n);
}, 100));
}
-var rse = class {
+var ise = 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,
@@ -24565,7 +24565,7 @@ var rse = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = OT) {
+ announce(e, t = "assertive", n = DT) {
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(() => {
@@ -24577,8 +24577,8 @@ var rse = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function jT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Dw(e);
+function AT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ew(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24587,30 +24587,30 @@ function jT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function MT(e, t) {
+function jT(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 NT(e, t) {
+function MT(e, t) {
let n = e;
- for (MT(n, t) && (n = n.parentElement); n && !MT(n, t);) n = n.parentElement;
+ for (jT(n, t) && (n = n.parentElement); n && !jT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function PT(e, t) {
+function NT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (MT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (jT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function FT(e, t, n = {}) {
- e !== t && ise(e, t, t.getBoundingClientRect(), n);
+function PT(e, t, n = {}) {
+ e !== t && ase(e, t, t.getBoundingClientRect(), n);
}
-function ise(e, t, n, r = {}) {
+function ase(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;
- YS() && XS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ JS() && YS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24631,7 +24631,7 @@ function ise(e, t, n, r = {}) {
top: o
});
}
-function IT(e, t = {}) {
+function FT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24644,45 +24644,45 @@ function IT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = PT(e, !0);
- for (let t of i) FT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = NT(e, !0);
+ for (let t of i) PT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? PT(n, !0) : [];
- for (let e of i) FT(e, n, {
+ i = n ? NT(n, !0) : [];
+ for (let e of i) PT(e, n, {
block: "center",
inline: "center"
});
- for (let t of PT(e, !0)) FT(t, e);
+ for (let t of NT(e, !0)) PT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var ase = 0, LT = /* @__PURE__ */ new Map();
-function RT(e) {
+var ose = 0, IT = /* @__PURE__ */ new Map();
+function LT(e) {
let [t, n] = (0, F.useState)();
- return zS(() => {
+ return RS(() => {
if (!e) return;
- let t = LT.get(e);
+ let t = IT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${ase++}`;
+ let r = `react-aria-description-${ose++}`;
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
- }, LT.set(e, t);
+ }, IT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), LT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), IT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function zT(e, t, n) {
- let r = Dw((e) => {
+function RT(e, t, n) {
+ let r = Ew((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24693,21 +24693,21 @@ function zT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function BT(e, t, n) {
+function zT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- zS(() => {
+ RS(() => {
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(sse(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(cse(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Dw(() => {
+ let a = (0, F.useRef)(!1), o = Ew(() => {
a.current || t.resetValidation();
- }), s = Dw((e) => {
+ }), s = Ew((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && cse(r) === n.current && (i ? i() : n.current?.focus(), wC("keyboard")), e.preventDefault();
- }), c = Dw(() => {
+ !e.defaultPrevented && n && r && lse(r) === n.current && (i ? i() : n.current?.focus(), CC("keyboard")), e.preventDefault();
+ }), c = Ew(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24721,7 +24721,7 @@ function BT(e, t, n) {
};
}, [n, r]);
}
-function ose(e) {
+function sse(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24737,14 +24737,14 @@ function ose(e) {
valid: t.valid
};
}
-function sse(e) {
+function cse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: ose(e),
+ validationDetails: sse(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function cse(e) {
+function lse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24752,23 +24752,23 @@ function cse(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function lse(e = !0) {
+function use(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return zS(() => {
+ return RS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function VT(e = !0) {
- let t = zC(), [n, r] = lse(e);
+function BT(e = !0) {
+ let t = RC(), [n, r] = use(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var HT = {
+var VT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24780,18 +24780,18 @@ var HT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, UT = {
- ...HT,
+}, HT = {
+ ...VT,
customError: !0,
valid: !1
-}, WT = {
+}, UT = {
isInvalid: !1,
- validationDetails: HT,
+ validationDetails: VT,
validationErrors: []
-}, use = (0, F.createContext)({}), GT = "__reactAriaFormValidationState";
-function KT(e) {
+}, dse = (0, F.createContext)({}), WT = "__reactAriaFormValidationState";
+function GT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[GT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[WT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24800,70 +24800,70 @@ function KT(e) {
commitValidation: a
};
}
- return dse(e);
+ return fse(e);
}
-function dse(e) {
+function fse(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: UT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : JT(fse(o, i)), [o, i]);
+ validationDetails: HT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : qT(pse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(use), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => qT(u[e])) : qT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(dse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => KT(u[e])) : KT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => JT(m ? [] : d), [m, d]), _ = (0, F.useRef)(WT), [v, y] = (0, F.useState)(WT), b = (0, F.useRef)(WT), x = () => {
+ let g = (0, F.useMemo)(() => qT(m ? [] : d), [m, d]), _ = (0, F.useRef)(UT), [v, y] = (0, F.useState)(UT), b = (0, F.useRef)(UT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- YT(e, b.current) || (b.current = e, y(e));
+ JT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || WT,
+ realtimeValidation: c || g || l || a || UT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !YT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !JT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = WT;
- YT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = UT;
+ JT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function qT(e) {
+function KT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function fse(e, t) {
+function pse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return qT(n);
+ if (n && typeof n != "boolean") return KT(n);
}
return [];
}
-function JT(e) {
+function qT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: UT
+ validationDetails: HT
} : null;
}
-function YT(e, t) {
+function JT(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 XT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = KT({
+function YT(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = GT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- BT(e, b, n);
+ zT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = rT({
+ }, { pressProps: T, isPressed: E } = nT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24871,7 +24871,7 @@ function XT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = rT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = nT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24888,13 +24888,13 @@ function XT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [GT]: i } = e, { commitValidation: a } = i || b;
+ let { [WT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = $C(e, n), j = K(T, A), M = Uw(e, { labelable: !0 });
- zT(n, t.defaultSelected, t.setSelected);
- let ee = VT(), N = VT();
+ }), { focusableProps: A } = QC(e, n), j = K(T, A), M = Hw(e, { labelable: !0 });
+ RT(n, t.defaultSelected, t.setSelected);
+ let ee = BT(), N = BT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24930,8 +24930,8 @@ function XT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function ZT(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = XT(e, t, n), { isIndeterminate: m } = e;
+function XT(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = YT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24949,17 +24949,17 @@ function ZT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var pse = /* @__PURE__ */ new WeakMap();
+var mse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function QT(e) {
+function ZT(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = zC(t);
- let o = zC(), s = {};
+ t = RC(t);
+ let o = RC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = kw({
+ let c = Ow({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24970,13 +24970,13 @@ function QT(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function $T(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = QT(e), s = BC([
+function QT(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ZT(e), s = zC([
!!t,
!!n,
r,
i
- ]), c = BC([
+ ]), c = zC([
!!t,
!!n,
r,
@@ -24994,26 +24994,26 @@ function $T(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function eE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Qw(), c = (0, F.useCallback)((e) => {
- AS(e.currentTarget, G(e)) && a.current.isFocusWithin && !AS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function $T(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Zw(), c = (0, F.useCallback)((e) => {
+ kS(e.currentTarget, G(e)) && a.current.isFocusWithin && !kS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = HS(c), u = (0, F.useCallback)((e) => {
- if (!AS(e.currentTarget, G(e))) return;
- let t = G(e), n = CS(t), s = jS(n);
+ ]), l = VS(c), u = (0, F.useCallback)((e) => {
+ if (!kS(e.currentTarget, G(e))) return;
+ let t = G(e), n = SS(t), s = AS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !AS(t, r)) {
+ if (a.current.isFocusWithin && !kS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- VS(e, t);
- let i = BS(e);
+ BS(e, t);
+ let i = zS(e);
c(i);
}
}, { capture: !0 });
@@ -25034,14 +25034,14 @@ function eE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var mse = F.useInsertionEffect ?? F.useLayoutEffect;
-function tE(e, t, n) {
+var hse = F.useInsertionEffect ?? F.useLayoutEffect;
+function eE(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;
- mse(() => {
+ hse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25051,8 +25051,8 @@ function tE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function nE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = tE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function tE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = eE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25067,26 +25067,26 @@ function nE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function hse(e, t, n) {
- let r = nE({
+function gse(e, t, n) {
+ let r = tE({
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 } = pse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = mse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = KT({
+ let { realtimeValidation: l } = GT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(WT), d = () => {
+ }), u = (0, F.useRef)(UT), 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 = ZT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = XT({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25094,7 +25094,7 @@ function hse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [GT]: {
+ [WT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25117,10 +25117,10 @@ function hse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function rE(e, t = -Infinity, n = Infinity) {
+function nE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function iE(e, t) {
+function rE(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 {
@@ -25133,23 +25133,23 @@ function iE(e, t) {
}
return n;
}
-function aE(e, t, n, r) {
+function iE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = iE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(iE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(iE((n - t) / r, r)) * r), a = iE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = rE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(rE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(rE((n - t) / r, r)) * r), a = rE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var oE = /* @__PURE__ */ new Map(), sE = !1;
+var aE = /* @__PURE__ */ new Map(), oE = !1;
try {
- sE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ oE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var gse = class {
+var _se = class {
constructor(e, t = {}) {
- this.numberFormatter = _se(e, t), this.options = t;
+ this.numberFormatter = vse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !sE && this.options.signDisplay != null ? vse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !oE && this.options.signDisplay != null ? yse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25181,21 +25181,21 @@ var gse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !sE && this.options.signDisplay != null && (e = {
+ return !oE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function _se(e, t = {}) {
+function vse(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 (oE.has(r)) return oE.get(r);
+ if (aE.has(r)) return aE.get(r);
let i = new Intl.NumberFormat(e, t);
- return oE.set(r, i), i;
+ return aE.set(r, i), i;
}
-function vse(e, t, n) {
+function yse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25208,12 +25208,12 @@ function vse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function cE(e) {
+function sE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = Qw(), s = Dw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = Zw(), s = Ew((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25235,8 +25235,8 @@ function cE(e) {
t,
n,
i
- ])), c = Dw((0, F.useCallback)((e, t) => {
- Jw(), i.current.didMove && r?.({
+ ])), c = Ew((0, F.useCallback)((e, t) => {
+ qw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25247,7 +25247,7 @@ function cE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- qw(), i.current.didMove = !1;
+ Kw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25262,7 +25262,7 @@ function cE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = wS(G(e));
+ let a = CS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25272,7 +25272,7 @@ function cE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = wS(G(e));
+ let o = CS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25305,7 +25305,7 @@ function cE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var lE = {
+var cE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25317,37 +25317,37 @@ var lE = {
width: "1px",
whiteSpace: "nowrap"
};
-function uE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = eE({
+function lE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = $T({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...lE,
+ ...cE,
...t
- } : lE, [r]);
+ } : cE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function dE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = uE(e);
+function uE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = lE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function yse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = tE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = $C(e, t), d = KT({
+function bse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = eE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = QC(e, t), d = GT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $T({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = QT({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Uw(e, { labelable: !0 }), b = {
+ }), y = Hw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return zT(t, e.defaultValue ?? x, l), BT(e, d, t), {
+ return RT(t, e.defaultValue ?? x, l), zT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25393,26 +25393,26 @@ function yse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function bse(e = {}) {
- let { locale: t } = Fw();
- return (0, F.useMemo)(() => new gse(t, e), [t, e]);
+function xse(e = {}) {
+ let { locale: t } = Pw();
+ return (0, F.useMemo)(() => new _se(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var fE = /* @__PURE__ */ new WeakMap();
-function pE(e, t) {
- let n = fE.get(e);
+var dE = /* @__PURE__ */ new WeakMap();
+function fE(e, t) {
+ let n = dE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function xse(e, t, n) {
- let { labelProps: r, fieldProps: i } = QT(e), a = e.orientation === "vertical";
- fE.set(t, {
+function Sse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = ZT(e), a = e.orientation === "vertical";
+ dE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Fw(), { addGlobalListener: s, removeGlobalListener: c } = Qw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = cE({
+ let { direction: o } = Pw(), { addGlobalListener: s, removeGlobalListener: c } = Zw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = sE({
onMoveStart() {
d.current = null;
},
@@ -25422,7 +25422,7 @@ function xse(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 = rE(d.current / s, 0, 1);
+ let e = nE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25446,7 +25446,7 @@ function xse(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(pE(t, 0))?.focus(), wC("keyboard");
+ document.getElementById(fE(t, 0))?.focus(), CC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25469,26 +25469,26 @@ function xse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => pE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => fE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function Sse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Fw(), { addGlobalListener: m, removeGlobalListener: h } = Qw(), g = fE.get(t), { labelProps: _, fieldProps: v } = QT({
+function Cse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Pw(), { addGlobalListener: m, removeGlobalListener: h } = Zw(), g = dE.get(t), { labelProps: _, fieldProps: v } = ZT({
...e,
- id: pE(t, n),
+ id: fE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && SS(s.current);
+ s.current && xS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = YC({
+ }, { keyboardProps: T } = JC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25504,7 +25504,7 @@ function Sse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = cE({
+ }), { moveProps: E } = sE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25515,7 +25515,7 @@ function Sse(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, rE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, nE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25523,7 +25523,7 @@ function Sse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = $C(K(e, {
+ let { focusableProps: D } = QC(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25543,7 +25543,7 @@ function Sse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return zT(s, t.defaultValues[n], (e) => {
+ return RT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25583,42 +25583,42 @@ function Sse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Cse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function mE(e) {
+var wse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function pE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var hE = /* @__PURE__ */ new WeakMap(), gE = [];
-function _E(e, t) {
- let n = wS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Cse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var mE = /* @__PURE__ */ new WeakMap(), hE = [];
+function gE(e, t) {
+ let n = CS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && wse, 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 (kS()) {
+ if (OS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; ES(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; TS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (kS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = lT(CS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = cT(SS(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 = hE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), hE.set(e, t + 1));
+ let t = mE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), mE.set(e, t + 1));
};
- gE.length && gE[gE.length - 1].disconnect(), d(i);
+ hE.length && hE[hE.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) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
- if (kS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (OS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25631,11 +25631,11 @@ function _E(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (kS()) for (let e of u) {
+ if (OS()) 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) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
- if (kS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (OS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25661,56 +25661,56 @@ function _E(e, t) {
p.disconnect();
}
};
- return gE.push(h), () => {
- if (p.disconnect(), kS()) for (let e of m) e.disconnect();
+ return hE.push(h), () => {
+ if (p.disconnect(), OS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = hE.get(e);
- t != null && (t === 1 ? (l(e, !1), hE.delete(e)) : hE.set(e, t - 1));
+ let t = mE.get(e);
+ t != null && (t === 1 ? (l(e, !1), mE.delete(e)) : mE.set(e, t - 1));
}
- h === gE[gE.length - 1] ? (gE.pop(), gE.length && gE[gE.length - 1].observe()) : gE.splice(gE.indexOf(h), 1);
+ h === hE[hE.length - 1] ? (hE.pop(), hE.length && hE[hE.length - 1].observe()) : hE.splice(hE.indexOf(h), 1);
};
}
-function vE(e) {
- let t = gE[gE.length - 1];
+function _E(e) {
+ let t = hE[hE.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 yE = /* @__PURE__ */ new WeakMap();
-function wse(e) {
+var vE = /* @__PURE__ */ new WeakMap();
+function Tse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Tse(e, t) {
- let n = yE.get(e);
+function Ese(e, t) {
+ let n = vE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${wse(t)}`;
+ return `${n.id}-option-${Tse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function bE(e) {
- return Tae() ? e.altKey : e.ctrlKey;
+function yE(e) {
+ return Eae() ? e.altKey : e.ctrlKey;
}
-function xE(e, t) {
+function bE(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 SE = /* @__PURE__ */ new WeakMap();
-function Ese(e) {
- let t = zC();
- return SE.set(e, t), t;
-}
+var xE = /* @__PURE__ */ new WeakMap();
function Dse(e) {
- return SE.get(e);
+ let t = RC();
+ return xE.set(e, t), t;
+}
+function Ose(e) {
+ return xE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var CE = class {
+var SE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : xE(this.ref, e);
+ let n = e == null ? null : bE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25736,12 +25736,12 @@ var CE = class {
height: e?.clientHeight ?? 0
};
}
-}, wE = class {
+}, CE = 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 CE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new CE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new SE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new SE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25781,14 +25781,14 @@ var CE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = xE(this.ref, e);
+ let t = this.getNextKey(e), n = bE(this.ref, e);
if (t != null) {
- let e = xE(this.ref, t);
+ let e = bE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = xE(this.ref, r);
+ let e = bE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25822,7 +25822,7 @@ var CE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !MT(t)) return this.getFirstKey();
+ if (t && !jT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25837,7 +25837,7 @@ var CE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !MT(t)) return this.getLastKey();
+ if (t && !jT(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);
@@ -25860,149 +25860,149 @@ var CE = class {
}
return null;
}
-}, TE = {};
-TE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, wE = {};
+wE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var EE = {};
-EE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var TE = {};
+TE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var DE = {};
-DE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var EE = {};
+EE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var OE = {};
-OE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var DE = {};
+DE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var kE = {};
-kE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var OE = {};
+OE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var AE = {};
-AE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var kE = {};
+kE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var jE = {};
-jE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var AE = {};
+AE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ME = {};
-ME = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var jE = {};
+jE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var NE = {};
-NE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var ME = {};
+ME = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var PE = {};
-PE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var NE = {};
+NE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var FE = {};
-FE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var PE = {};
+PE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var IE = {};
-IE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var FE = {};
+FE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var LE = {};
-LE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var IE = {};
+IE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var RE = {};
-RE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var LE = {};
+LE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var zE = {};
-zE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var RE = {};
+RE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var BE = {};
-BE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var zE = {};
+zE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var VE = {};
-VE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var BE = {};
+BE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var HE = {};
-HE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var VE = {};
+VE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var UE = {};
-UE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var HE = {};
+HE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var WE = {};
-WE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var UE = {};
+UE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var GE = {};
-GE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var WE = {};
+WE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var KE = {};
-KE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var GE = {};
+GE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var qE = {};
-qE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var KE = {};
+KE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var JE = {};
-JE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var qE = {};
+qE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var YE = {};
-YE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var JE = {};
+JE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var XE = {};
-XE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var YE = {};
+YE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var ZE = {};
-ZE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var XE = {};
+XE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var QE = {};
-QE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var ZE = {};
+ZE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var $E = {};
-$E = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var QE = {};
+QE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var eD = {};
-eD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var $E = {};
+$E = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var tD = {};
-tD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var eD = {};
+eD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var nD = {};
-nD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var tD = {};
+tD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var rD = {};
-rD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var nD = {};
+nD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var iD = {};
-iD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var rD = {};
+rD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var aD = {};
-aD = {
- "ar-AE": TE,
- "bg-BG": EE,
- "cs-CZ": DE,
- "da-DK": OE,
- "de-DE": kE,
- "el-GR": AE,
- "en-US": jE,
- "es-ES": ME,
- "et-EE": NE,
- "fi-FI": PE,
- "fr-FR": FE,
- "he-IL": IE,
- "hr-HR": LE,
- "hu-HU": RE,
- "it-IT": zE,
- "ja-JP": BE,
- "ko-KR": VE,
- "lt-LT": HE,
- "lv-LV": UE,
- "nb-NO": WE,
- "nl-NL": GE,
- "pl-PL": KE,
- "pt-BR": qE,
- "pt-PT": JE,
- "ro-RO": YE,
- "ru-RU": XE,
- "sk-SK": ZE,
- "sl-SI": QE,
- "sr-SP": $E,
- "sv-SE": eD,
- "tr-TR": tD,
- "uk-UA": nD,
- "zh-CN": rD,
- "zh-TW": iD
+var iD = {};
+iD = {
+ "ar-AE": wE,
+ "bg-BG": TE,
+ "cs-CZ": EE,
+ "da-DK": DE,
+ "de-DE": OE,
+ "el-GR": kE,
+ "en-US": AE,
+ "es-ES": jE,
+ "et-EE": ME,
+ "fi-FI": NE,
+ "fr-FR": PE,
+ "he-IL": FE,
+ "hr-HR": IE,
+ "hu-HU": LE,
+ "it-IT": RE,
+ "ja-JP": zE,
+ "ko-KR": BE,
+ "lt-LT": VE,
+ "lv-LV": HE,
+ "nb-NO": UE,
+ "nl-NL": WE,
+ "pl-PL": GE,
+ "pt-BR": KE,
+ "pt-PT": qE,
+ "ro-RO": JE,
+ "ru-RU": YE,
+ "sk-SK": XE,
+ "sl-SI": ZE,
+ "sr-SP": QE,
+ "sv-SE": $E,
+ "tr-TR": eD,
+ "uk-UA": tD,
+ "zh-CN": nD,
+ "zh-TW": rD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ose = 500;
-function oD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ose, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Qw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = rT({
+var kse = 500;
+function aD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Zw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = nT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -26010,12 +26010,12 @@ function oD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), CS(e.target).activeElement !== e.target && SS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), SS(e.target).activeElement !== e.target && xS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = wS(e.target);
+ let t = CS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26030,11 +26030,11 @@ function oD(e) {
});
}
});
- return { longPressProps: K(f, RT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, LT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function kse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = oD({
+function Ase(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = aD({
onLongPressStart() {
n.current = !1;
},
@@ -26046,7 +26046,7 @@ function kse(e) {
});
}
});
- return t ? { contextMenuProps: K(YS() ? r : {}, {
+ return t ? { contextMenuProps: K(JS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26057,7 +26057,7 @@ function kse(e) {
});
},
onKeyDown(e) {
- if (qS() && e.ctrlKey && e.key === "Enter") {
+ if (KS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26076,13 +26076,13 @@ function kse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var sD = /* @__PURE__ */ new WeakMap();
-function Ase(e) {
+var oD = /* @__PURE__ */ new WeakMap();
+function jse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : ES(jS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !AS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || sD.get(t.current);
+ if (!t.current || n instanceof Node && !kS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || oD.get(t.current);
i && i();
}, !0), [
n,
@@ -26091,14 +26091,14 @@ function Ase(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function jse(e, t, n) {
+function Mse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && sD.set(n.current, t.close);
+ n && n.current && oD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = zC();
+ let o = RC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26110,14 +26110,14 @@ function jse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Mse(e) {
+function Nse(e) {
return e && e.__esModule ? e.default : e;
}
-function cD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = zC(), { triggerProps: s, overlayProps: c } = jse({ type: r }, t, n), l = (e, n, r = "first") => {
+function sD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = RC(), { triggerProps: s, overlayProps: c } = Mse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = YC({
+ }, { keyboardProps: u } = JC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26129,7 +26129,7 @@ function cD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Vw(Mse(aD), "@react-aria/menu"), { longPressProps: f } = oD({
+ }), d = Bw(Nse(iD), "@react-aria/menu"), { longPressProps: f } = aD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26141,14 +26141,14 @@ function cD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (SS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (SS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (xS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = kse({ onContextMenu(e) {
+ let { contextMenuProps: m } = Ase({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26192,8 +26192,8 @@ function cD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var lD = 1e3;
-function uD(e) {
+var cD = 1e3;
+function lD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26212,12 +26212,12 @@ function uD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, lD);
+ }, cD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Nse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Pse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !kS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26228,32 +26228,32 @@ function uD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, lD);
+ }, cD);
}
} : void 0
} };
}
-function Nse(e) {
+function Pse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function dD(e, t) {
+function uD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- zS(() => (n.current = !0, () => {
+ RS(() => (n.current = !0, () => {
n.current = !1;
- }), []), zS(() => {
+ }), []), RS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function fD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Fw(), _ = eC(), v = (e, n, i) => {
+function dD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Pw(), _ = $S(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !bE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !yE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = xE(r, n), o = t.getItemProps(n);
+ let a = bE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26265,7 +26265,7 @@ function fD(e) {
t.extendSelection(n);
return;
}
- if (l && !bE(e)) {
+ if (l && !yE(e)) {
t.replaceSelection(n);
return;
}
@@ -26292,9 +26292,9 @@ function fD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Tw(e));
+ let r = n.getFirstKey(t.focusedKey, ww(e));
if (t.setFocusedKey(r), r != null) {
- if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26326,9 +26326,9 @@ function fD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Tw(e));
+ let r = n.getLastKey(t.focusedKey, ww(e));
if (t.setFocusedKey(r), r != null) {
- if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26359,12 +26359,12 @@ function fD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = TT(r.current, { tabbable: !0 }), t, n;
+ let e = wT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = jS();
- t && (!NS(t) || i && !LS(i)) && SS(t);
+ let i = AS();
+ t && (!MS(t) || i && !IS(i)) && xS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26374,11 +26374,11 @@ function fD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [KS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [qS() ? e + "+Alt" : e + "+Control"]: t,
+ [KS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = YC({
+ }), { keyboardProps: M } = JC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26388,7 +26388,7 @@ function fD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = YC({ shortcuts: {
+ }), { keyboardProps: ee } = JC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26399,7 +26399,7 @@ function fD(e) {
top: 0,
left: 0
});
- Ow(p, "scroll", () => {
+ Dw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26407,11 +26407,11 @@ function fD(e) {
});
let te = (e) => {
if (t.isFocused) {
- AS(e.currentTarget, G(e)) || t.setFocused(!1);
+ kS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!AS(e.currentTarget, G(e))) return;
- let i = CC();
+ if (!kS(e.currentTarget, G(e))) return;
+ let i = SC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26422,27 +26422,27 @@ function fD(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 = xE(r, t.focusedKey);
- e instanceof HTMLElement && (!NS(e) && !d && SS(e), (i === "keyboard" || h && i === "virtual") && IT(e, { containingElement: r.current }));
+ let e = bE(r, t.focusedKey);
+ e instanceof HTMLElement && (!MS(e) && !d && xS(e), (i === "keyboard" || h && i === "virtual") && FT(e, { containingElement: r.current }));
}
}, P = (e) => {
- AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ kS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Ow(r, _oe, d ? (e) => {
+ Dw(r, voe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- dD(() => {
+ uD(() => {
if (ne.current) {
if (re == null) {
- let e = jS();
- mw(r.current), hw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = AS();
+ pw(r.current), mw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), dD(() => {
+ }, [re, t.collection.size]), uD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Ow(r, goe, d ? (e) => {
+ }, [t.focusedKey]), Dw(r, _oe, 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);
@@ -26457,22 +26457,22 @@ function fD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && PC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && NC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
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 = CC(), n = xE(r, t.focusedKey);
+ let e = SC(), n = bE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (FT(p.current, n), e !== "virtual" && IT(n, { containingElement: r.current }));
+ p.current && (PT(p.current, n), e !== "virtual" && FT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && PC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && NC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Ow(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Dw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26482,27 +26482,27 @@ function fD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = uD({
+ }, { typeSelectProps: ce } = lD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Ese(t.collection);
+ let ue = Dse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function pD(e, t) {
+function fD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function mD(e) {
- return hD(e, 0);
+function pD(e) {
+ return mD(e, 0);
}
-function hD(e, t) {
+function mD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26510,106 +26510,106 @@ function hD(e, t) {
n++;
}
}
-function gD(e) {
+function hD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function _D(e, t, n) {
+function gD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...vD(e, t), t], i = [...vD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [..._D(e, t), t], i = [..._D(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 vD(e, t) {
+function _D(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 yD = /* @__PURE__ */ new WeakMap();
-function bD(e) {
- let t = yD.get(e);
+var vD = /* @__PURE__ */ new WeakMap();
+function yD(e) {
+ let t = vD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(pD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(fD(i, e)) : i.type === "item" && n++;
};
- return r(e), yD.set(e, n), n;
+ return r(e), vD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var xD = /* @__PURE__ */ new Map();
-function SD(e) {
- let { locale: t } = Fw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (xD.has(n)) return xD.get(n);
+var bD = /* @__PURE__ */ new Map();
+function xD(e) {
+ let { locale: t } = Pw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (bD.has(n)) return bD.get(n);
let r = new Intl.Collator(t, e);
- return xD.set(n, r), r;
+ return bD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Pse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Zw), a = K(i || {}, {
+var Fse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Xw), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = XC(n || i?.ref), ZC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = YC(n || i?.ref), XC(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(Zw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Xw.Provider, { value: a }, e);
});
-function Fse({ children: e }) {
+function Ise({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Zw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Xw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var CD = /*#__PURE__*/ (0, F.createContext)({});
-function wD(e) {
- let { getContainer: t } = e, { getContainer: n } = TD();
- return /*#__PURE__*/ F.createElement(CD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var SD = /*#__PURE__*/ (0, F.createContext)({});
+function CD(e) {
+ let { getContainer: t } = e, { getContainer: n } = wD();
+ return /*#__PURE__*/ F.createElement(SD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function TD() {
- return (0, F.useContext)(CD) ?? {};
+function wD() {
+ return (0, F.useContext)(SD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ED = /*#__PURE__*/ F.createContext(null);
-function DD(e) {
- let t = sC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var TD = /*#__PURE__*/ F.createContext(null);
+function ED(e) {
+ let t = oC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = TD();
+ }), [i, a]), { getContainer: s } = wD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(pT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(fT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(ED.Provider, { value: o }, /*#__PURE__*/ F.createElement(Fse, null, /*#__PURE__*/ F.createElement(QC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(TD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Ise, null, /*#__PURE__*/ F.createElement(ZC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function OD() {
- let e = (0, F.useContext)(ED)?.setContain;
- zS(() => {
+function DD() {
+ let e = (0, F.useContext)(TD)?.setContain;
+ RS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Ise(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = BC();
+function Lse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = zC();
i = e["aria-label"] ? void 0 : i;
- let a = BC();
+ let a = zC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !NS(t.current)) {
- PC(t.current);
+ if (!r && t.current && !MS(t.current)) {
+ NC(t.current);
let e = setTimeout(() => {
- (jS() === t.current || jS() === document.body) && (o.current = !0, t.current && (t.current.blur(), PC(t.current)), o.current = !1);
+ (AS() === t.current || AS() === document.body) && (o.current = !0, t.current && (t.current.blur(), NC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), OD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), DD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Uw(e, { labelable: !0 }),
+ ...Hw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26623,23 +26623,23 @@ function Ise(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function kD(e = {}) {
+function OD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || SC()
+ isFocusVisible: t || xC()
}), [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 = SC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = xC(), o(e), l();
}, [l]);
- DC((e) => {
+ EC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = GC({
+ let { focusProps: d } = WC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = eE({
+ }), { focusWithinProps: f } = $T({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26650,41 +26650,41 @@ function kD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Lse(e = {}) {
- let { locale: t } = Fw();
+function Rse(e = {}) {
+ let { locale: t } = Pw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var AD = !1, jD = 0;
-function Rse() {
- AD = !0, setTimeout(() => {
- AD = !1;
+var kD = !1, AD = 0;
+function zse() {
+ kD = !0, setTimeout(() => {
+ kD = !1;
}, 500);
}
-function MD(e) {
- e.pointerType === "touch" && Rse();
+function jD(e) {
+ e.pointerType === "touch" && zse();
}
-function zse() {
- let e = CS(null);
- if (e !== void 0) return jD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", MD), jD++, () => {
- jD--, !(jD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", MD);
+function Bse() {
+ let e = SS(null);
+ if (e !== void 0) return AD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jD), AD++, () => {
+ AD--, !(AD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jD);
};
}
-function ND(e) {
+function MD(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)(zse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Qw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Bse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Zw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !kS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(CS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !AS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(SS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !kS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26699,9 +26699,9 @@ function ND(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- AD && t.pointerType === "mouse" || e(t, t.pointerType);
+ kD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && AS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && kS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26723,22 +26723,22 @@ function ND(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Bse(e) {
+function Vse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Dw((e) => {
- n && PD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Dw((e) => {
+ }), o = Ew((e) => {
+ n && ND(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Ew((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = CS(n);
+ let n = t.current, i = SS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && PD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && ND(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);
@@ -26746,28 +26746,28 @@ function Bse(e) {
}
}, [t, r]);
}
-function PD(e, t) {
+function ND(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !AS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !kS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var FD = /* @__PURE__ */ new WeakMap();
-function ID(e, t) {
- let { id: n } = FD.get(e) ?? {};
+var PD = /* @__PURE__ */ new WeakMap();
+function FD(e, t) {
+ let { id: n } = PD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Vse(t)}`;
+ return `${n}-${Hse(t)}`;
}
-function Vse(e) {
+function Hse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var LD = {};
-LD = {
+var ID = {};
+ID = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26780,8 +26780,8 @@ LD = {
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 RD = {};
-RD = {
+var LD = {};
+LD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26794,8 +26794,8 @@ RD = {
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 zD = {};
-zD = {
+var RD = {};
+RD = {
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",
@@ -26808,8 +26808,8 @@ zD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var BD = {};
-BD = {
+var zD = {};
+zD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26822,8 +26822,8 @@ BD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var VD = {};
-VD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26836,8 +26836,8 @@ VD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var HD = {};
-HD = {
+var VD = {};
+VD = {
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: "Επιλογή",
@@ -26850,8 +26850,8 @@ HD = {
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 UD = {};
-UD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26864,8 +26864,8 @@ UD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26878,8 +26878,8 @@ WD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26892,8 +26892,8 @@ GD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26906,8 +26906,8 @@ KD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
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",
@@ -26920,8 +26920,8 @@ qD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var JD = {};
-JD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26934,8 +26934,8 @@ JD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26948,8 +26948,8 @@ YD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26962,8 +26962,8 @@ XD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26976,8 +26976,8 @@ ZD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
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: "選択",
@@ -26990,8 +26990,8 @@ QD = {
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 $D = {};
-$D = {
+var QD = {};
+QD = {
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: "선택",
@@ -27004,8 +27004,8 @@ $D = {
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 eO = {};
-eO = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27018,8 +27018,8 @@ eO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -27032,8 +27032,8 @@ tO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27046,8 +27046,8 @@ nO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27060,8 +27060,8 @@ rO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27074,8 +27074,8 @@ iO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27088,8 +27088,8 @@ aO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27102,8 +27102,8 @@ oO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27116,8 +27116,8 @@ sO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27130,8 +27130,8 @@ cO = {
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 lO = {};
-lO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27144,8 +27144,8 @@ lO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27158,8 +27158,8 @@ uO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27172,8 +27172,8 @@ dO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27186,8 +27186,8 @@ fO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27200,8 +27200,8 @@ pO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27214,8 +27214,8 @@ mO = {
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 hO = {};
-hO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27228,8 +27228,8 @@ hO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27242,54 +27242,54 @@ gO = {
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 _O = {};
-_O = {
- "ar-AE": LD,
- "bg-BG": RD,
- "cs-CZ": zD,
- "da-DK": BD,
- "de-DE": VD,
- "el-GR": HD,
- "en-US": UD,
- "es-ES": WD,
- "et-EE": GD,
- "fi-FI": KD,
- "fr-FR": qD,
- "he-IL": JD,
- "hr-HR": YD,
- "hu-HU": XD,
- "it-IT": ZD,
- "ja-JP": QD,
- "ko-KR": $D,
- "lt-LT": eO,
- "lv-LV": tO,
- "nb-NO": nO,
- "nl-NL": rO,
- "pl-PL": iO,
- "pt-BR": aO,
- "pt-PT": oO,
- "ro-RO": sO,
- "ru-RU": cO,
- "sk-SK": lO,
- "sl-SI": uO,
- "sr-SP": dO,
- "sv-SE": fO,
- "tr-TR": pO,
- "uk-UA": mO,
- "zh-CN": hO,
- "zh-TW": gO
+var gO = {};
+gO = {
+ "ar-AE": ID,
+ "bg-BG": LD,
+ "cs-CZ": RD,
+ "da-DK": zD,
+ "de-DE": BD,
+ "el-GR": VD,
+ "en-US": HD,
+ "es-ES": UD,
+ "et-EE": WD,
+ "fi-FI": GD,
+ "fr-FR": KD,
+ "he-IL": qD,
+ "hr-HR": JD,
+ "hu-HU": YD,
+ "it-IT": XD,
+ "ja-JP": ZD,
+ "ko-KR": QD,
+ "lt-LT": $D,
+ "lv-LV": eO,
+ "nb-NO": tO,
+ "nl-NL": nO,
+ "pl-PL": rO,
+ "pt-BR": iO,
+ "pt-PT": aO,
+ "ro-RO": oO,
+ "ru-RU": sO,
+ "sk-SK": cO,
+ "sl-SI": lO,
+ "sr-SP": uO,
+ "sv-SE": dO,
+ "tr-TR": fO,
+ "uk-UA": pO,
+ "zh-CN": mO,
+ "zh-TW": hO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Hse(e) {
+function Use(e) {
return e && e.__esModule ? e.default : e;
}
-function vO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Vw(Hse(_O), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function _O(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Bw(Use(gO), "@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 = yO(i, a.current), o = yO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = vO(i, a.current), o = vO(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)) {
@@ -27309,7 +27309,7 @@ function vO(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 && AT(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 && kT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27320,7 +27320,7 @@ function vO(e, t) {
n,
r
]);
- jT(() => {
+ AT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27328,20 +27328,20 @@ function vO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function yO(e, t) {
+function vO(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 bO(e, t) {
+function yO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return zS(() => {
+ return RS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = TT(e.current, { tabbable: !0 });
+ let t = wT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27359,12 +27359,12 @@ function bO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Use(e) {
+function Wse(e) {
return e && e.__esModule ? e.default : e;
}
-function xO(e) {
- let t = Vw(Use(_O), "@react-aria/grid"), n = TC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return RT((0, F.useMemo)(() => {
+function bO(e) {
+ let t = Bw(Wse(gO), "@react-aria/grid"), n = wC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return LT((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;
}, [
@@ -27376,11 +27376,11 @@ function xO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function SO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = SD({
+function xO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = xD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new wE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new CE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27397,7 +27397,7 @@ function SO(e) {
c,
l,
s
- ]), { collectionProps: d } = fD({
+ ]), { collectionProps: d } = dD({
...e,
ref: i,
selectionManager: t,
@@ -27406,10 +27406,10 @@ function SO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Wse(e, t, n) {
+function Gse(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 } = SO({
+ let { listProps: f } = xO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27424,30 +27424,30 @@ function Wse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = zC(e.id);
- FD.set(t, {
+ }), p = RC(e.id);
+ PD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = xO({
+ let m = bO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = bO(n, { isDisabled: t.collection.size !== 0 }), g = K(Uw(e, { labelable: !0 }), {
+ }), h = yO(n, { isDisabled: t.collection.size !== 0 }), g = K(Hw(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), vO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), _O({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function CO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = eC();
- t = zC(t);
+function SO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = $S();
+ t = RC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && bE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && yE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27458,11 +27458,11 @@ function CO(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 && (Tw(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 && (ww(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? mw(i.current) : s ? s() : jS() !== i.current && i.current && PC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? pw(i.current) : s ? s() : AS() !== i.current && i.current && NC(i.current));
}, [
i,
r,
@@ -27490,22 +27490,22 @@ function CO(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 || TO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || wO(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" && !wO(e.key)) return;
+ if (e.pointerType === "keyboard" && !CO(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 || TO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || wO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && wO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && CO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Dse(n.collection);
+ let A = Ose(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));
@@ -27520,10 +27520,10 @@ function CO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = FC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = rT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = PC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = nT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = oD({
+ } : void 0, { longPressProps: N } = aD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27531,7 +27531,7 @@ function CO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- tC.isOpening || e.preventDefault();
+ eC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27544,7 +27544,7 @@ function CO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return LS(e);
+ return IS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27564,14 +27564,14 @@ function CO(e) {
hasAction: S
};
}
-function wO(e) {
+function CO(e) {
return e === "Enter";
}
-function TO(e) {
+function wO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var EO = {
+var TO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27581,18 +27581,18 @@ var EO = {
rtl: "ArrowRight"
}
};
-function Gse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Fw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = FD.get(t), f = BC(), p = (0, F.useRef)(null), m = () => {
+function Kse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Pw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = PD.get(t), f = zC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (NS(n.current) && n.current !== jS(CS(n.current))) return;
- let e = TT(n.current, { tabbable: !0 }).firstChild();
+ if (MS(n.current) && n.current !== AS(SS(n.current))) return;
+ let e = wT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- PC(e), IT(e, { containingElement: NT(e) });
+ NC(e), FT(e, { containingElement: MT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !NS(n.current)) && PC(n.current);
+ (p.current != null && r.key !== p.current || !MS(n.current)) && NC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27602,7 +27602,7 @@ function Gse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Kse(e, t.collection);
+ let n = qse(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;
@@ -27613,75 +27613,75 @@ function Gse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = CO({
+ let { itemProps: v, ...y } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? FC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? PC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = jS(CS(n.current));
- if (!AS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = TT(n.current);
- if (a.currentNode = i, !DO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = AS(SS(n.current));
+ if (!kS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = wT(n.current);
+ if (a.currentNode = i, !EO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
else {
a.currentNode = n.current;
- let e = OO(a);
- e && (PC(e), IT(e, { containingElement: NT(n.current) }));
+ let e = DO(a);
+ e && (NC(e), FT(e, { containingElement: MT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
else {
a.currentNode = n.current;
- let e = OO(a);
- e && (PC(e), IT(e, { containingElement: NT(n.current) }));
+ let e = DO(a);
+ e && (NC(e), FT(e, { containingElement: MT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && jS(CS(n.current)) === n.current && m();
- }) : SC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && AS(SS(n.current)) === n.current && m();
+ }) : xC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = jS(CS(n.current));
- if (AS(e.currentTarget, G(e)) && n.current && i) {
+ let i = AS(SS(n.current));
+ if (kS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (DO(e, t, r, g, s, i, n.current, o)) return;
+ if (EO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = TT(n.current, { tabbable: !0 });
+ let t = wT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = nC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = tC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${ID(t, r.key)} ${f}` : void 0,
- id: ID(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${FD(t, r.key)} ${f}` : void 0,
+ id: FD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27702,66 +27702,66 @@ function Gse(e, t, n) {
...y
};
}
-function DO(e, t, n, r, i, a, o, s) {
+function EO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === EO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === EO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === TO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === TO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (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 OO(e) {
+function DO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Kse(e, t) {
+function qse(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 qse(e) {
+function Jse(e) {
return e && e.__esModule ? e.default : e;
}
-function kO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = zC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function OO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = RC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Vw(qse(_O), "@react-aria/grid").format("select"),
+ "aria-label": Bw(Jse(gO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Jse(e, t) {
- let { key: n } = e, { checkboxProps: r } = kO(e, t);
+function Yse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = OO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${ID(t, n)}`
+ "aria-labelledby": `${r.id} ${FD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Yse(e, t, n) {
- let r = Uw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Xse(e, t, n) {
+ let r = Hw(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 } = SO({
+ let { listProps: s } = xO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = eE({
+ }), { focusWithinProps: c } = $T({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = zC(e.id);
- yE.set(t, {
+ }), l = RC(e.id);
+ vE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27771,7 +27771,7 @@ function Yse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = QT({
+ let { labelProps: u, fieldProps: d } = ZT({
...e,
id: l,
labelElementType: "span"
@@ -27786,8 +27786,8 @@ function Yse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Xse(e) {
- let { heading: t, "aria-label": n } = e, r = zC();
+function Zse(e) {
+ let { heading: t, "aria-label": n } = e, r = RC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27805,8 +27805,8 @@ function Xse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Zse(e, t, n) {
- let { key: r } = e, i = yE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = BC(), f = BC(), p = {
+function Qse(e, t, n) {
+ let { key: r } = e, i = vE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = zC(), f = zC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27816,9 +27816,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"] = bD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = yD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Tse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = CO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Ese(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = SO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27827,18 +27827,18 @@ function Zse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? FC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? PC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = ND({
+ }), { hoverProps: S } = MD({
isDisabled: a || !c,
onHoverStart() {
- SC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ xC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Uw(m?.props);
+ }), C = Hw(m?.props);
delete C.id;
- let w = rC(m?.props);
+ let w = nC(m?.props);
return {
optionProps: {
...p,
@@ -27848,7 +27848,7 @@ function Zse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && SC(),
+ isFocusVisible: y && t.selectionManager.isFocused && xC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27857,12 +27857,12 @@ function Zse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var AO = /* @__PURE__ */ new WeakMap();
+var kO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Qse(e, t, n) {
+function $se(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Uw(e, { labelable: !0 }), { listProps: c } = SO({
+ let s = Hw(e, { labelable: !0 }), { listProps: c } = xO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27871,7 +27871,7 @@ function Qse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return AO.set(t, {
+ return kO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27887,15 +27887,15 @@ function Qse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function $se(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = AO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = eC(), M = () => {
+function ece(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = kO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = $S(), 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 = BC(), te = BC(), P = BC(), ne = {
+ let N = zC(), te = zC(), P = zC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27912,17 +27912,17 @@ function $se(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"] = bD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = yD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), jae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Mae(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 } = CO({
+ }, { itemProps: se, isFocused: ce } = SO({
id: r,
selectionManager: C,
key: i,
@@ -27931,27 +27931,27 @@ function $se(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = rT({
+ }), { pressProps: le, isPressed: ue } = nT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = ND({
+ }), { hoverProps: de } = MD({
isDisabled: E,
onHoverStart(e) {
- !SC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !xC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = YC({
+ }), { keyboardProps: fe } = JC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), wC("keyboard");
+ }, G(e).click(), CC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27959,8 +27959,8 @@ function $se(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), wC("keyboard");
- else return wC("keyboard"), {
+ if (t.tagName !== "A") t.click(), CC("keyboard");
+ else return CC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27968,13 +27968,13 @@ function $se(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = $C({
+ }), { focusableProps: pe } = QC({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Uw(k?.props);
+ }, n), me = Hw(k?.props);
delete me.id;
- let he = rC(k?.props);
+ let he = nC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27989,15 +27989,15 @@ function $se(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && SC() && !T,
+ isFocusVisible: ce && C.isFocused && xC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function ece(e) {
- let { heading: t, "aria-label": n } = e, r = zC();
+function tce(e) {
+ let { heading: t, "aria-label": n } = e, r = RC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -28012,15 +28012,15 @@ function ece(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function tce() {
+function nce() {
return window.ResizeObserver !== void 0;
}
-function jO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Dw(r);
+function AO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Ew(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (tce()) {
+ if (nce()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28035,154 +28035,154 @@ function jO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var MO = {};
-MO = { dismiss: "تجاهل" };
+var jO = {};
+jO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var NO = {};
-NO = { dismiss: "Отхвърляне" };
+var MO = {};
+MO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var PO = {};
-PO = { dismiss: "Odstranit" };
+var NO = {};
+NO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var FO = {};
-FO = { dismiss: "Luk" };
+var PO = {};
+PO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var IO = {};
-IO = { dismiss: "Schließen" };
+var FO = {};
+FO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var LO = {};
-LO = { dismiss: "Απόρριψη" };
+var IO = {};
+IO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var RO = {};
-RO = { dismiss: "Dismiss" };
+var LO = {};
+LO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var zO = {};
-zO = { dismiss: "Descartar" };
+var RO = {};
+RO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var BO = {};
-BO = { dismiss: "Lõpeta" };
+var zO = {};
+zO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var VO = {};
-VO = { dismiss: "Hylkää" };
+var BO = {};
+BO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var HO = {};
-HO = { dismiss: "Rejeter" };
+var VO = {};
+VO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var UO = {};
-UO = { dismiss: "התעלם" };
+var HO = {};
+HO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var WO = {};
-WO = { dismiss: "Odbaci" };
+var UO = {};
+UO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var GO = {};
-GO = { dismiss: "Elutasítás" };
+var WO = {};
+WO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var KO = {};
-KO = { dismiss: "Ignora" };
+var GO = {};
+GO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var qO = {};
-qO = { dismiss: "閉じる" };
+var KO = {};
+KO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var JO = {};
-JO = { dismiss: "무시" };
+var qO = {};
+qO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var YO = {};
-YO = { dismiss: "Atmesti" };
+var JO = {};
+JO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var XO = {};
-XO = { dismiss: "Nerādīt" };
+var YO = {};
+YO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var ZO = {};
-ZO = { dismiss: "Lukk" };
+var XO = {};
+XO = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var QO = {};
-QO = { dismiss: "Negeren" };
+var ZO = {};
+ZO = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var $O = {};
-$O = { dismiss: "Zignoruj" };
+var QO = {};
+QO = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var ek = {};
-ek = { dismiss: "Descartar" };
+var $O = {};
+$O = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var tk = {};
-tk = { dismiss: "Dispensar" };
+var ek = {};
+ek = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var nk = {};
-nk = { dismiss: "Revocare" };
+var tk = {};
+tk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var rk = {};
-rk = { dismiss: "Пропустить" };
+var nk = {};
+nk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ik = {};
-ik = { dismiss: "Zrušiť" };
+var rk = {};
+rk = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var ak = {};
-ak = { dismiss: "Opusti" };
+var ik = {};
+ik = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ok = {};
-ok = { dismiss: "Odbaci" };
+var ak = {};
+ak = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var sk = {};
-sk = { dismiss: "Avvisa" };
+var ok = {};
+ok = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ck = {};
-ck = { dismiss: "Kapat" };
+var sk = {};
+sk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var lk = {};
-lk = { dismiss: "Скасувати" };
+var ck = {};
+ck = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var uk = {};
-uk = { dismiss: "取消" };
+var lk = {};
+lk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var dk = {};
-dk = { dismiss: "關閉" };
+var uk = {};
+uk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var fk = {};
-fk = {
- "ar-AE": MO,
- "bg-BG": NO,
- "cs-CZ": PO,
- "da-DK": FO,
- "de-DE": IO,
- "el-GR": LO,
- "en-US": RO,
- "es-ES": zO,
- "et-EE": BO,
- "fi-FI": VO,
- "fr-FR": HO,
- "he-IL": UO,
- "hr-HR": WO,
- "hu-HU": GO,
- "it-IT": KO,
- "ja-JP": qO,
- "ko-KR": JO,
- "lt-LT": YO,
- "lv-LV": XO,
- "nb-NO": ZO,
- "nl-NL": QO,
- "pl-PL": $O,
- "pt-BR": ek,
- "pt-PT": tk,
- "ro-RO": nk,
- "ru-RU": rk,
- "sk-SK": ik,
- "sl-SI": ak,
- "sr-SP": ok,
- "sv-SE": sk,
- "tr-TR": ck,
- "uk-UA": lk,
- "zh-CN": uk,
- "zh-TW": dk
+var dk = {};
+dk = {
+ "ar-AE": jO,
+ "bg-BG": MO,
+ "cs-CZ": NO,
+ "da-DK": PO,
+ "de-DE": FO,
+ "el-GR": IO,
+ "en-US": LO,
+ "es-ES": RO,
+ "et-EE": zO,
+ "fi-FI": BO,
+ "fr-FR": VO,
+ "he-IL": HO,
+ "hr-HR": UO,
+ "hu-HU": WO,
+ "it-IT": GO,
+ "ja-JP": KO,
+ "ko-KR": qO,
+ "lt-LT": JO,
+ "lv-LV": YO,
+ "nb-NO": XO,
+ "nl-NL": ZO,
+ "pl-PL": QO,
+ "pt-BR": $O,
+ "pt-PT": ek,
+ "ro-RO": tk,
+ "ru-RU": nk,
+ "sk-SK": rk,
+ "sl-SI": ik,
+ "sr-SP": ak,
+ "sv-SE": ok,
+ "tr-TR": sk,
+ "uk-UA": ck,
+ "zh-CN": lk,
+ "zh-TW": uk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function nce(e) {
+function rce(e) {
return e && e.__esModule ? e.default : e;
}
-function pk(e) {
- let { onDismiss: t, ...n } = e, r = kw(n, Vw(nce(fk), "@react-aria/overlays").format("dismiss")), i = () => {
+function fk(e) {
+ let { onDismiss: t, ...n } = e, r = Ow(n, Bw(rce(dk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28193,35 +28193,35 @@ function pk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var mk = [];
-function hk(e, t) {
+var pk = [];
+function mk(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 && !mk.includes(t)) return mk.push(t), () => {
- let e = mk.indexOf(t);
- e >= 0 && mk.splice(e, 1);
+ if (i && !pk.includes(t)) return pk.push(t), () => {
+ let e = pk.indexOf(t);
+ e >= 0 && pk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- mk[mk.length - 1] === t && n && n();
+ pk[pk.length - 1] === t && n && n();
}, u = (e) => {
- let n = mk[mk.length - 1];
+ let n = pk[pk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (mk[mk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = YC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (pk[pk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = JC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Bse({
+ Vse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = eE({
+ let { focusWithinProps: p } = $T({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Qoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !$oe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28233,87 +28233,87 @@ function hk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var rce = 200, ice = 50, ace = 600, gk = /* @__PURE__ */ new WeakMap(), _k = /* @__PURE__ */ new Set(), vk = /* @__PURE__ */ new Set();
-function oce(e, t) {
- let n = Ew();
- if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
- if (!e && n && XS() && !t.aborted) window.clearInterval(gk.get(window)), gk.set(window, yk(rce));
+var ice = 200, ace = 50, oce = 600, hk = /* @__PURE__ */ new WeakMap(), gk = /* @__PURE__ */ new Set(), _k = /* @__PURE__ */ new Set();
+function sce(e, t) {
+ let n = Tw();
+ if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
+ if (!e && n && YS() && !t.aborted) window.clearInterval(hk.get(window)), hk.set(window, vk(ice));
else {
- if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
- (vk.size + _k.size <= 0 || t.aborted) && (window.clearInterval(gk.get(window)), gk.delete(window));
+ if (e !== n || t.aborted) for (let e of gk) e(n), gk.delete(e);
+ (_k.size + gk.size <= 0 || t.aborted) && (window.clearInterval(hk.get(window)), hk.delete(window));
}
}
-function yk(e = ace) {
- return window.setInterval(oce, ice, Ew(), AbortSignal.timeout(e));
+function vk(e = oce) {
+ return window.setInterval(sce, ace, Tw(), AbortSignal.timeout(e));
}
-function bk(e) {
- if (!Cw()) return e(!1), () => {};
+function yk(e) {
+ if (!Sw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ww(document.hasFocus() ? jS() : null);
- if (Ew() === t || Ew() && !t) return e(t);
- vk.add(e), gk.has(window) || gk.set(window, yk());
+ let t = Cw(document.hasFocus() ? AS() : null);
+ if (Tw() === t || Tw() && !t) return e(t);
+ _k.add(e), hk.has(window) || hk.set(window, vk());
});
});
return () => {
- window.cancelAnimationFrame(t), vk.delete(e);
+ window.cancelAnimationFrame(t), _k.delete(e);
};
}
-function sce(e) {
- if (!Cw()) return e(!1), () => {};
+function cce(e) {
+ if (!Sw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ww(document.hasFocus() ? jS() : null);
- if (Ew() === t) return e(t);
- _k.add(e), gk.has(window) || gk.set(window, yk());
+ let t = Cw(document.hasFocus() ? AS() : null);
+ if (Tw() === t) return e(t);
+ gk.add(e), hk.has(window) || hk.set(window, vk());
});
});
return () => {
- window.cancelAnimationFrame(t), _k.delete(e);
+ window.cancelAnimationFrame(t), gk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var xk = typeof document < "u" && window.visualViewport, Sk = 0, Ck;
-function wk(e = {}) {
+var bk = typeof document < "u" && window.visualViewport, xk = 0, Sk;
+function Ck(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- zS(() => {
- if (!t) return Sk++, Sk === 1 && (Ck = YS() && XS() ? lce() : cce(n)), () => {
- Sk--, Sk === 0 && Ck();
+ RS(() => {
+ if (!t) return xk++, xk === 1 && (Sk = JS() && YS() ? uce() : lce(n)), () => {
+ xk--, xk === 0 && Sk();
};
}, [t, n]);
}
-function cce(e) {
+function lce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return FC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? OS(document.documentElement, "scrollbar-gutter", "stable") : OS(document.documentElement, "padding-right", `${t}px`)), OS(document.documentElement, "overflow", "hidden"), e && Ek(), e && Cw() && Tk());
+ return PC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? DS(document.documentElement, "scrollbar-gutter", "stable") : DS(document.documentElement, "padding-right", `${t}px`)), DS(document.documentElement, "overflow", "hidden"), e && Tk(), e && Sw() && wk());
}
-function lce() {
- let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function uce() {
+ let e = DS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = MT(r, !0) ? r : NT(r, !0), n = !1;
+ t = jT(r, !0) ? r : MT(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 = Xw();
+ }, i = document.createElement("style"), a = Yw();
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 = Ek(), c = FC(DS(document, "touchstart", r, {
+ }, s = Tk(), c = PC(ES(document, "touchstart", r, {
passive: !1,
capture: !0
- }), DS(document, "touchmove", o, {
+ }), ES(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Tk());
+ }), wk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Tk() {
- return DS(document, "blur", (e) => {
+function wk() {
+ return ES(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && ww(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Cw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Ek() {
+function Tk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28324,9 +28324,9 @@ function Ek() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- jS() === this && uce(this);
+ AS() === this && dce(this);
};
- bk((t) => t ? e() : sce(() => e()));
+ yk((t) => t ? e() : cce(() => e()));
}
}
}), () => {
@@ -28337,15 +28337,15 @@ function Ek() {
});
};
}
-function uce(e) {
+function dce(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = NT(n);
+ let e = MT(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;
- xk && (n = Math.min(n, xk.offsetTop + xk.height));
+ bk && (n = Math.min(n, bk.offsetTop + bk.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)),
@@ -28357,19 +28357,19 @@ function uce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function dce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = hk({
+function fce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = mk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- wk({
+ Ck({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), OD();
+ }), DD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? vE(n.current) : _E([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? _E(n.current) : gE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28380,33 +28380,33 @@ function dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Dk = {
+var Ek = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Ok = {
+}, Dk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, fce = {
+}, pce = {
top: "left",
left: "top"
-}, kk = {
+}, Ok = {
top: "height",
left: "width"
-}, Ak = {
+}, kk = {
width: "totalWidth",
height: "totalHeight"
-}, jk = {}, pce = () => typeof document < "u" ? window.visualViewport : null;
-function Mk(e, t) {
+}, Ak = {}, mce = () => typeof document < "u" ? window.visualViewport : null;
+function jk(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} = Rk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return XS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Lk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return YS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28416,7 +28416,7 @@ function Mk(e, t) {
left: s
};
}
-function mce(e) {
+function hce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28424,11 +28424,11 @@ function mce(e) {
height: e.scrollHeight
};
}
-function Nk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[kk[e]], l = o[e] + r.scroll[Dk[e]] + a, u = o[e] + r.scroll[Dk[e]] + c - a, d = t - s + r.scroll[Dk[e]] + o[e] - r[Dk[e]], f = t - s + n + r.scroll[Dk[e]] + o[e] - r[Dk[e]];
+function Mk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Ok[e]], l = o[e] + r.scroll[Ek[e]] + a, u = o[e] + r.scroll[Ek[e]] + c - a, d = t - s + r.scroll[Ek[e]] + o[e] - r[Ek[e]], f = t - s + n + r.scroll[Ek[e]] + o[e] - r[Ek[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function hce(e) {
+function gce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28437,55 +28437,55 @@ function hce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Pk(e) {
- if (jk[e]) return jk[e];
- let [t, n] = e.split(" "), r = Dk[t] || "right", i = fce[r];
- Dk[n] || (n = "center");
- let a = kk[r], o = kk[i];
- return jk[e] = {
+function Nk(e) {
+ if (Ak[e]) return Ak[e];
+ let [t, n] = e.split(" "), r = Ek[t] || "right", i = pce[r];
+ Ek[n] || (n = "center");
+ let a = Ok[r], o = Ok[i];
+ return Ak[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, jk[e];
+ }, Ak[e];
}
-function Fk(e, t, n, r, i, a, o, s, c, l, u) {
+function Pk(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] = rE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ak[h]];
- _[Ok[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = nE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[kk[h]];
+ _[Dk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function gce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ak.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function _ce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[kk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
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 Ik(e, t, n, r, i, a, o, s) {
+function Fk(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[Ok[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ok[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Dk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Dk[l]] - i);
}
-function _ce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Pk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Fk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ik(s, l, t, i, a + u, v, c, g);
+function vce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Nk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Pk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Fk(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Pk(`${Ok[S]} ${C}`), r = Fk(t, s, n, e, u, d, l, f, m, h, c);
- Ik(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Nk(`${Dk[S]} ${C}`), r = Pk(t, s, n, e, u, d, l, f, m, h, c);
+ Fk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let 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 = Nk(b, w[b], n[x], s, c, a, l);
+ let O = Mk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = gce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Fk(t, s, n, v, T, d, l, f, m, h, c), O = Nk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Dk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Dk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = rE(rE(M, t[b] + m / 2 - (w[b] + i[Dk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = _ce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Pk(t, s, n, v, T, d, l, f, m, h, c), O = Mk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Ek[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ek[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = nE(nE(M, t[b] + m / 2 - (w[b] + i[Ek[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ek[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28499,17 +28499,17 @@ function _ce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function vce(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = pce(), h = r instanceof HTMLElement ? bce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Rk(n, !1, p) : yce(n, h, !1, p);
+function yce(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 = mce(), h = r instanceof HTMLElement ? bce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Lk(n, !1, p) : Rk(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 = Rk(r, !0), x = hce(r);
+ let b = Lk(r, !0), x = gce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = mce(i), C = Mk(s, m), w = Mk(h, m), T;
+ let S = hce(i), C = jk(s, m), w = jk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Lk(h, !1);
+ let e = Ik(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28521,11 +28521,11 @@ function vce(e) {
left: 0,
width: 0,
height: 0
- } : yce(s, h, !1);
- let E = AS(s, h);
- return _ce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Rk(s, h, !1);
+ let E = kS(s, h);
+ return vce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Lk(e, t) {
+function Ik(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,
@@ -28534,8 +28534,8 @@ function Lk(e, t) {
height: a
};
}
-function Rk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Lk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Lk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Ik(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28543,29 +28543,29 @@ function Rk(e, t, n) {
height: o
};
}
-function yce(e, t, n, r) {
+function Rk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Lk(e, n);
+ if (i.position === "fixed") a = r || Ik(e, n);
else {
- a = Rk(e, n, r);
- let i = Rk(t, n), o = window.getComputedStyle(t);
+ a = Lk(e, n, r);
+ let i = Lk(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 bce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !xce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !xce(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !zk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !zk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function xce(e) {
+function zk(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 zk = typeof document < "u" ? window.visualViewport : null;
-function Sce(e) {
- let { direction: t } = Fw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var Bk = typeof document < "u" ? window.visualViewport : null;
+function xce(e) {
+ let { direction: t } = Pw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28582,15 +28582,15 @@ function Sce(e) {
g,
_,
n
- ], S = (0, F.useRef)(zk?.scale);
+ ], S = (0, F.useRef)(Bk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = zk?.scale);
+ m && (S.current = Bk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || zk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Bk?.scale !== S.current) return;
let e = null;
- if (o.current && NS(o.current)) {
- let t = jS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && MS(o.current)) {
+ let t = AS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28598,8 +28598,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 = vce({
- placement: wce(s, t),
+ let y = yce({
+ placement: Cce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28609,28 +28609,28 @@ function Sce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Lk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Ik(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = jS();
+ let x = AS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- zS(C, x), Cce(C), jO({
+ RS(C, x), Sce(C), AO({
ref: i,
onResize: C
- }), jO({
+ }), AO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- zS(() => {
+ RS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28638,16 +28638,16 @@ function Sce(e) {
}, n = () => {
w.current && t();
};
- zk?.addEventListener("resize", t), zk?.addEventListener("scroll", n);
- let r = DS(MS(window), "scroll", n);
+ Bk?.addEventListener("resize", t), Bk?.addEventListener("scroll", n);
+ let r = ES(jS(window), "scroll", n);
return () => {
- zk?.removeEventListener("resize", t), zk?.removeEventListener("scroll", n), r();
+ Bk?.removeEventListener("resize", t), Bk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Ase({
+ return jse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28673,24 +28673,24 @@ function Sce(e) {
updatePosition: C
};
}
-function Cce(e) {
- zS(() => (window.addEventListener("resize", e, !1), () => {
+function Sce(e) {
+ RS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function wce(e, t) {
+function Cce(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 Tce(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = hk({
+function wce(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = mk({
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 } = xce({
...c,
targetRef: n,
overlayRef: r,
@@ -28698,15 +28698,15 @@ function Tce(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)
});
- wk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? vE(i?.current ?? r.current) : _E([i?.current ?? r.current], { shouldUseInert: !0 });
+ Ck({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? _E(i?.current ?? r.current) : gE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = eE(e);
+ let { focusWithinProps: g } = $T(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28716,12 +28716,12 @@ function Tce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Ece = /* @__PURE__ */ new WeakMap();
+var Vk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Dce(e, t, n) {
+function Tce(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: _ } = rT({
+ }, { pressProps: g, isPressed: _ } = nT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28729,7 +28729,7 @@ function Dce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = rT({
+ }), { pressProps: v, isPressed: y } = nT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28739,11 +28739,11 @@ function Dce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = $C(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Uw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = QC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Hw(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 } = Ece.get(t);
- zT(n, t.defaultSelectedValue, t.setSelectedValue), BT({ validationBehavior: O }, t, n);
- let k = VT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Vk.get(t);
+ RT(n, t.defaultSelectedValue, t.setSelectedValue), zT({ validationBehavior: O }, t, n);
+ let k = BT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28774,13 +28774,13 @@ function Dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Oce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Fw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = $T({
+function Ece(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Pw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = QT({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Uw(e, { labelable: !0 }), { focusWithinProps: v } = eE({
+ }), _ = Hw(e, { labelable: !0 }), { focusWithinProps: v } = $T({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28788,13 +28788,13 @@ function Oce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = TT(n.currentTarget, {
+ let r = wT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof wS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof CS(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 } = YC({
+ let { keyboardProps: b } = JC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28802,8 +28802,8 @@ function Oce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = zC(n);
- return Ece.set(t, {
+ }), x = RC(n);
+ return Vk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28831,21 +28831,21 @@ function Oce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Bk = /* @__PURE__ */ new WeakMap();
-function kce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = SD({
+var Hk = /* @__PURE__ */ new WeakMap();
+function Dce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = xD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new wE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new CE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = cD({
+ ]), { menuTriggerProps: d, menuProps: f } = sD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = YC({
+ }, t, n), { keyboardProps: p } = JC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28861,21 +28861,21 @@ function kce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = uD({
+ }), { typeSelectProps: m } = lD({
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 } = $T({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = QT({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Uw(e, { labelable: !0 }), C = K(m, d, y), w = zC();
- return Bk.set(t, {
+ let S = Hw(e, { labelable: !0 }), C = K(m, d, y), w = RC();
+ return Hk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28885,13 +28885,13 @@ function kce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), wC("keyboard"));
+ e.isDisabled || (n.current?.focus(), CC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: FC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: PC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28915,7 +28915,7 @@ function kce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- AS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ kS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28935,13 +28935,13 @@ function kce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Ace(e, t, n) {
- let r = Bk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = uE({ style: {
+function Oce(e, t, n) {
+ let r = Hk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = lE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- zT(e.selectRef, t.defaultValue, t.setValue), BT({
+ RT(e.selectRef, t.defaultValue, t.setValue), zT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28971,8 +28971,8 @@ function Ace(e, t, n) {
}
};
}
-function jce(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 } = Ace({
+function kce(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 } = Oce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28996,7 +28996,7 @@ function jce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Bk.get(t) || {};
+ let { validationBehavior: e } = Hk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29026,8 +29026,8 @@ function jce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Mce(e) {
- let t = Uw(e, { labelable: !0 }), n;
+function Ace(e) {
+ let t = Hw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29035,8 +29035,8 @@ function Mce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Nce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = XT(e, t, n);
+function jce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = YT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29049,10 +29049,10 @@ function Nce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Vk = class {
+var Uk = 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 Pce(e.layout) : new CE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Mce(e.layout) : new SE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29088,7 +29088,7 @@ var Vk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of pD(n, this.collection)) {
+ for (let e of fD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29122,13 +29122,13 @@ var Vk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = pD(t, this.collection);
- return (this.direction === "rtl" ? gD(e)?.key : mD(e)?.key) ?? null;
+ let e = fD(t, this.collection);
+ return (this.direction === "rtl" ? hD(e)?.key : pD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index - 1) : hD(r, t.index + 1)) ?? null;
+ let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index - 1) : mD(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;
@@ -29137,13 +29137,13 @@ var Vk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = pD(t, this.collection);
- return (this.direction === "rtl" ? mD(e)?.key : gD(e)?.key) ?? null;
+ let e = fD(t, this.collection);
+ return (this.direction === "rtl" ? pD(e)?.key : hD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index + 1) : hD(r, t.index - 1)) ?? null;
+ let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index + 1) : mD(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;
@@ -29154,13 +29154,13 @@ var Vk = 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 ? mD(pD(e, this.collection))?.key ?? null : null;
+ return e ? pD(fD(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 = mD(pD(e, this.collection))?.key ?? null;
+ n = pD(fD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29170,13 +29170,13 @@ var Vk = 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 ? gD(pD(e, this.collection))?.key ?? null : null;
+ return e ? hD(fD(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 = gD(pD(e, this.collection))?.key ?? null;
+ n = hD(fD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29212,13 +29212,13 @@ var Vk = 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" ? mD(pD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? pD(fD(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;
}
-}, Pce = class {
+}, Mce = class {
constructor(e) {
this.layout = e;
}
@@ -29231,15 +29231,15 @@ var Vk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Hk = /* @__PURE__ */ new WeakMap();
+}, Wk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Fce(e, t, n) {
+function Nce(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 = SD({
+ let h = xD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Fw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Vk({
+ }), { direction: g } = Pw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Uk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29256,7 +29256,7 @@ function Fce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = fD({
+ ]), { collectionProps: y } = dD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29264,8 +29264,8 @@ function Fce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = zC(e.id);
- Hk.set(t, {
+ }), b = RC(e.id);
+ Wk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29274,42 +29274,42 @@ function Fce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = xO({
+ let x = bO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Uw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? AS(e.currentTarget, G(e)) || m.setFocused(!1) : AS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Hw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? kS(e.currentTarget, G(e)) || m.setFocused(!1) : kS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = bO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = yO(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), vO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), _O({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Uk = /* @__PURE__ */ new WeakMap();
-function Wk(e) {
+var Gk = /* @__PURE__ */ new WeakMap();
+function Kk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Gk(e, t) {
- let n = Uk.get(e);
+function qk(e, t) {
+ let n = Gk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Wk(t)}`;
+ return `${n}-${Kk(t)}`;
}
-function Kk(e, t, n) {
- let r = Uk.get(e);
+function Jk(e, t, n) {
+ let r = Gk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Wk(t)}-${Wk(n)}`;
+ return `${r}-${Kk(t)}-${Kk(n)}`;
}
-function qk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Kk(e, t, n)).join(" ");
+function Yk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Jk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Jk = {};
-Jk = {
+var Xk = {};
+Xk = {
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: "طي",
@@ -29323,8 +29323,8 @@ Jk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Yk = {};
-Yk = {
+var Zk = {};
+Zk = {
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: "Свиване",
@@ -29338,8 +29338,8 @@ Yk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Xk = {};
-Xk = {
+var Qk = {};
+Qk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29353,8 +29353,8 @@ Xk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Zk = {};
-Zk = {
+var $k = {};
+$k = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29368,8 +29368,8 @@ Zk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Qk = {};
-Qk = {
+var eA = {};
+eA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29383,8 +29383,8 @@ Qk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var $k = {};
-$k = {
+var tA = {};
+tA = {
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: "Σύμπτυξη",
@@ -29398,8 +29398,8 @@ $k = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var eA = {};
-eA = {
+var nA = {};
+nA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29413,8 +29413,8 @@ eA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var tA = {};
-tA = {
+var rA = {};
+rA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29428,8 +29428,8 @@ tA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var nA = {};
-nA = {
+var iA = {};
+iA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29443,8 +29443,8 @@ nA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var rA = {};
-rA = {
+var aA = {};
+aA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29458,8 +29458,8 @@ rA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var iA = {};
-iA = {
+var oA = {};
+oA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29473,8 +29473,8 @@ iA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var aA = {};
-aA = {
+var sA = {};
+sA = {
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: "כווץ",
@@ -29488,8 +29488,8 @@ aA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var oA = {};
-oA = {
+var cA = {};
+cA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29503,8 +29503,8 @@ oA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var sA = {};
-sA = {
+var lA = {};
+lA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29518,8 +29518,8 @@ sA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var cA = {};
-cA = {
+var uA = {};
+uA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29533,8 +29533,8 @@ cA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var lA = {};
-lA = {
+var dA = {};
+dA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29548,8 +29548,8 @@ lA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var uA = {};
-uA = {
+var fA = {};
+fA = {
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: "접기",
@@ -29563,8 +29563,8 @@ uA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var dA = {};
-dA = {
+var pA = {};
+pA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29578,8 +29578,8 @@ dA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var fA = {};
-fA = {
+var mA = {};
+mA = {
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",
@@ -29593,8 +29593,8 @@ fA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var pA = {};
-pA = {
+var hA = {};
+hA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29608,8 +29608,8 @@ pA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var mA = {};
-mA = {
+var gA = {};
+gA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29623,8 +29623,8 @@ mA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var hA = {};
-hA = {
+var _A = {};
+_A = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29638,8 +29638,8 @@ hA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var gA = {};
-gA = {
+var vA = {};
+vA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29653,8 +29653,8 @@ gA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var _A = {};
-_A = {
+var yA = {};
+yA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29668,8 +29668,8 @@ _A = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var vA = {};
-vA = {
+var bA = {};
+bA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29683,8 +29683,8 @@ vA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var yA = {};
-yA = {
+var xA = {};
+xA = {
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: "Свернуть",
@@ -29698,8 +29698,8 @@ yA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var bA = {};
-bA = {
+var SA = {};
+SA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29713,8 +29713,8 @@ bA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var xA = {};
-xA = {
+var CA = {};
+CA = {
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",
@@ -29728,8 +29728,8 @@ xA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var SA = {};
-SA = {
+var wA = {};
+wA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29743,8 +29743,8 @@ SA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var CA = {};
-CA = {
+var TA = {};
+TA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29758,8 +29758,8 @@ CA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var wA = {};
-wA = {
+var EA = {};
+EA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29773,8 +29773,8 @@ wA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var TA = {};
-TA = {
+var DA = {};
+DA = {
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: "Згорнути",
@@ -29788,8 +29788,8 @@ TA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var EA = {};
-EA = {
+var OA = {};
+OA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29803,8 +29803,8 @@ EA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var DA = {};
-DA = {
+var kA = {};
+kA = {
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: "收合",
@@ -29818,45 +29818,45 @@ DA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var OA = {};
-OA = {
- "ar-AE": Jk,
- "bg-BG": Yk,
- "cs-CZ": Xk,
- "da-DK": Zk,
- "de-DE": Qk,
- "el-GR": $k,
- "en-US": eA,
- "es-ES": tA,
- "et-EE": nA,
- "fi-FI": rA,
- "fr-FR": iA,
- "he-IL": aA,
- "hr-HR": oA,
- "hu-HU": sA,
- "it-IT": cA,
- "ja-JP": lA,
- "ko-KR": uA,
- "lt-LT": dA,
- "lv-LV": fA,
- "nb-NO": pA,
- "nl-NL": mA,
- "pl-PL": hA,
- "pt-BR": gA,
- "pt-PT": _A,
- "ro-RO": vA,
- "ru-RU": yA,
- "sk-SK": bA,
- "sl-SI": xA,
- "sr-SP": SA,
- "sv-SE": CA,
- "tr-TR": wA,
- "uk-UA": TA,
- "zh-CN": EA,
- "zh-TW": DA
+var AA = {};
+AA = {
+ "ar-AE": Xk,
+ "bg-BG": Zk,
+ "cs-CZ": Qk,
+ "da-DK": $k,
+ "de-DE": eA,
+ "el-GR": tA,
+ "en-US": nA,
+ "es-ES": rA,
+ "et-EE": iA,
+ "fi-FI": aA,
+ "fr-FR": oA,
+ "he-IL": sA,
+ "hr-HR": cA,
+ "hu-HU": lA,
+ "it-IT": uA,
+ "ja-JP": dA,
+ "ko-KR": fA,
+ "lt-LT": pA,
+ "lv-LV": mA,
+ "nb-NO": hA,
+ "nl-NL": gA,
+ "pl-PL": _A,
+ "pt-BR": vA,
+ "pt-PT": yA,
+ "ro-RO": bA,
+ "ru-RU": xA,
+ "sk-SK": SA,
+ "sl-SI": CA,
+ "sr-SP": wA,
+ "sv-SE": TA,
+ "tr-TR": EA,
+ "uk-UA": DA,
+ "zh-CN": OA,
+ "zh-TW": kA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Ice = class extends Vk {
+var Pce = class extends Uk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29864,7 +29864,7 @@ var Ice = class extends Vk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = mD(pD(n, this.collection));
+ let e = pD(fD(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);
@@ -29885,13 +29885,13 @@ var Ice = class extends Vk {
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 pD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of fD(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 = [...pD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...fD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29920,7 +29920,7 @@ var Ice = class extends Vk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of pD(o, this.collection)) {
+ for (let r of fD(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);
@@ -29933,14 +29933,14 @@ var Ice = class extends Vk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Lce(e) {
+function Fce(e) {
return e && e.__esModule ? e.default : e;
}
-function Rce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = SD({
+function Ice(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = xD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Fw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Ice({
+ }), { direction: c } = Pw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Pce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29959,51 +29959,51 @@ function Rce(e, t, n) {
s,
a,
o
- ]), d = zC(e.id);
- Uk.set(t, d);
- let { gridProps: f } = Fce({
+ ]), d = RC(e.id);
+ Gk.set(t, d);
+ let { gridProps: f } = Nce({
...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 = Vw(Lce(OA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Bw(Fce(AA), "@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
- ]), _ = RT(g);
- return jT(() => {
- g && AT(g, "assertive", 500);
+ ]), _ = LT(g);
+ return AT(() => {
+ g && kT(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 kA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Fw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Hk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function jA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Pw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Wk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = TT(n.current);
+ let e = wT(n.current);
if (p === "child") {
- let i = jS(CS(n.current));
- if (NS(n.current) && n.current !== i) return;
- let a = CS(n.current);
+ let i = AS(SS(n.current));
+ if (MS(n.current) && n.current !== i) return;
+ let a = SS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && AS(n.current, e)) {
- PC(e);
+ if (e && m.current === r.key && kS(n.current, e)) {
+ NC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? AA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? MA(e) : e.firstChild();
if (o) {
- PC(o);
+ NC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !NS(n.current)) && PC(n.current);
+ (m.current != null && r.key !== m.current || !MS(n.current)) && NC(n.current);
}
- }, { itemProps: _, isPressed: v } = CO({
+ }, { itemProps: _, isPressed: v } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30015,44 +30015,44 @@ function kA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = jS(CS(n.current));
- if (!AS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = TT(n.current);
+ let i = AS(SS(n.current));
+ if (!kS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = wT(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) PC(t), IT(t, { containingElement: NT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(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" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : AA(a), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
+ p === "cell" && l === "rtl" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : MA(a), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(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" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? AA(a) : a.firstChild(), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
+ p === "cell" && l === "ltr" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? MA(a) : a.firstChild(), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = jS(CS(n.current));
- if (AS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = AS(SS(n.current));
+ if (kS(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 = TT(n.current, { tabbable: !0 });
+ let t = wT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30063,9 +30063,9 @@ function kA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && AS(n.current, i) && (h.current = i), SC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && jS(CS(n.current)) === n.current && g();
+ n.current && kS(n.current, i) && (h.current = i), xC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && AS(SS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30080,7 +30080,7 @@ function kA(e, t, n) {
isPressed: v
};
}
-function AA(e) {
+function MA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30088,32 +30088,32 @@ function AA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function zce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = kA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Kk(t, e.node.parentKey, a)), {
+function Lce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = jA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Jk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Bce(e) {
+function Rce(e) {
return e && e.__esModule ? e.default : e;
}
-function Vce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = kA({
+function zce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = jA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = rT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = nT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = $C({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !QS() && (u = d ? f : "none");
- let p = Vw(Bce(OA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && QS() && (m = `${m}, ${p.format(f)}`));
- let h = RT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = QC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !ZS() && (u = d ? f : "none");
+ let p = Bw(Rce(AA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && ZS() && (m = `${m}, ${p.format(f)}`));
+ let h = LT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30124,7 +30124,7 @@ function Vce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Gk(t, r.key),
+ id: qk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30132,17 +30132,17 @@ function Vce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Hce(e) {
+function Bce(e) {
return e && e.__esModule ? e.default : e;
}
-function Uce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(Hce(OA), "@react-aria/table"), d = zC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Fw(), b = (0, F.useCallback)((e) => {
+function Vce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Bw(Bce(AA), "@react-aria/table"), d = RC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Pw(), b = (0, F.useCallback)((e) => {
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 && PC(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 && NC(i.current)), m.current = null;
}, [
t,
i,
@@ -30150,14 +30150,14 @@ function Uce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = YC({ shortcuts: {
+ }, { keyboardProps: w } = JC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = cE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = sE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30173,12 +30173,12 @@ function Uce(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 = TC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = wC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = RT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = LT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${Gk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${qk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30186,11 +30186,11 @@ function Uce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && PC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Dw(b);
+ n.current && NC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ew(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = jS() === n.current, ne(r);
+ h.current = AS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30206,7 +30206,7 @@ function Uce(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 } = rT({
+ }, { pressProps: I } = nT({
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)));
@@ -30214,7 +30214,7 @@ function Uce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = uE();
+ }), { visuallyHiddenProps: ie } = lE();
return {
resizerProps: K(w, {
...E,
@@ -30233,19 +30233,19 @@ function Uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Wce(e, t, n) {
+function Hce(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 Gce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Hk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = CO({
+function Uce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Wk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? FC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? PC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30259,10 +30259,10 @@ function Gce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Kce(e) {
+function Wce(e) {
return e && e.__esModule ? e.default : e;
}
-var jA = {
+var NA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30272,21 +30272,21 @@ var jA = {
rtl: "ArrowRight"
}
};
-function qce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Gce(e, t, n), { direction: s } = Fw();
+function Gce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Uce(e, t, n), { direction: s } = Pw();
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 = Vw(Kce(OA), "@react-aria/table"), u = kw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Bw(Wce(AA), "@react-aria/table"), u = Ow({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": qk(t, r.key)
+ "aria-labelledby": Yk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = MA(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 = MA(t.collection, a);
+ let n = PA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = PA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === jA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === jA.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 === NA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === NA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30304,42 +30304,42 @@ function qce(e, t, n) {
};
}
}
- let p = nC(r.props), m = o.hasAction ? p : {};
+ let p = tC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": qk(t, r.key)
+ "aria-labelledby": Yk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function MA(e, t) {
+function PA(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 Kce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function NA() {
- return Jce();
+function FA() {
+ return Kce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Yce(e) {
+function qce(e) {
return e && e.__esModule ? e.default : e;
}
-function Xce(e, t) {
- let { key: n } = e, { checkboxProps: r } = kO(e, t);
+function Jce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = OO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${qk(t, n)}`
+ "aria-labelledby": `${r.id} ${Yk(t, n)}`
} };
}
-function Zce(e) {
+function Yce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Vw(Yce(OA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Bw(qce(AA), "@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,
@@ -30347,22 +30347,22 @@ function Zce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var PA = /* @__PURE__ */ new WeakMap();
-function FA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${PA.get(e)}-${n}-${t}`) : "";
+var IA = /* @__PURE__ */ new WeakMap();
+function LA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${IA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Qce(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = CO({
+function Xce(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = SO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = FA(t, r, "tab"), m = FA(t, r, "tabpanel"), { tabIndex: h } = d, g = Uw(u?.props, { labelable: !0 });
+ }), p = LA(t, r, "tab"), m = LA(t, r, "tabpanel"), { tabIndex: h } = d, g = Hw(u?.props, { labelable: !0 });
delete g.id;
- let _ = rC(u?.props), { focusableProps: v } = $C({
+ let _ = nC(u?.props), { focusableProps: v } = QC({
...u?.props,
isDisabled: l
}, n);
@@ -30381,7 +30381,7 @@ function Qce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var $ce = class {
+var Zce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30424,11 +30424,11 @@ var $ce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function ele(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Fw(), { collectionProps: l } = fD({
+function Qce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Pw(), { collectionProps: l } = dD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new $ce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Zce(a, c, r, s), [
a,
s,
r,
@@ -30438,9 +30438,9 @@ function ele(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = zC();
- return PA.set(t, u), { tabListProps: {
- ...K(l, kw({
+ }), u = RC();
+ return IA.set(t, u), { tabListProps: {
+ ...K(l, Ow({
...e,
id: u
})),
@@ -30450,12 +30450,12 @@ function ele(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function tle(e, t, n) {
- let r = bO(n) ? void 0 : 0, i = FA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(kw({
+function $ce(e, t, n) {
+ let r = yO(n) ? void 0 : 0, i = LA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Ow({
...e,
id: i,
- "aria-labelledby": FA(t, t?.selectedKey, "tab")
+ "aria-labelledby": LA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30464,265 +30464,265 @@ function tle(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function nle(e, t, n) {
- let { gridProps: r } = Wse(e, t, n);
+function ele(e, t, n) {
+ let { gridProps: r } = Gse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var IA = {};
-IA = {
+var RA = {};
+RA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var LA = {};
-LA = {
+var zA = {};
+zA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var RA = {};
-RA = {
+var BA = {};
+BA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var zA = {};
-zA = {
+var VA = {};
+VA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var BA = {};
-BA = {
+var HA = {};
+HA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var VA = {};
-VA = {
+var UA = {};
+UA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var HA = {};
-HA = {
+var WA = {};
+WA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var UA = {};
-UA = {
+var GA = {};
+GA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var WA = {};
-WA = {
+var KA = {};
+KA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var GA = {};
-GA = {
+var qA = {};
+qA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var KA = {};
-KA = {
+var JA = {};
+JA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var qA = {};
-qA = {
+var YA = {};
+YA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var JA = {};
-JA = {
+var XA = {};
+XA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var YA = {};
-YA = {
+var ZA = {};
+ZA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var XA = {};
-XA = {
+var QA = {};
+QA = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var ZA = {};
-ZA = {
+var $A = {};
+$A = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var QA = {};
-QA = {
+var ej = {};
+ej = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var $A = {};
-$A = {
+var tj = {};
+tj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var ej = {};
-ej = {
+var nj = {};
+nj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var tj = {};
-tj = {
+var rj = {};
+rj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var nj = {};
-nj = {
+var ij = {};
+ij = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var rj = {};
-rj = {
+var aj = {};
+aj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var ij = {};
-ij = {
+var oj = {};
+oj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var aj = {};
-aj = {
+var sj = {};
+sj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var oj = {};
-oj = {
+var cj = {};
+cj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var sj = {};
-sj = {
+var lj = {};
+lj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var cj = {};
-cj = {
+var uj = {};
+uj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var lj = {};
-lj = {
+var dj = {};
+dj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var uj = {};
-uj = {
+var fj = {};
+fj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var dj = {};
-dj = {
+var pj = {};
+pj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var fj = {};
-fj = {
+var mj = {};
+mj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var pj = {};
-pj = {
+var hj = {};
+hj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var mj = {};
-mj = {
+var gj = {};
+gj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var hj = {};
-hj = {
+var _j = {};
+_j = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var gj = {};
-gj = {
- "ar-AE": IA,
- "bg-BG": LA,
- "cs-CZ": RA,
- "da-DK": zA,
- "de-DE": BA,
- "el-GR": VA,
- "en-US": HA,
- "es-ES": UA,
- "et-EE": WA,
- "fi-FI": GA,
- "fr-FR": KA,
- "he-IL": qA,
- "hr-HR": JA,
- "hu-HU": YA,
- "it-IT": XA,
- "ja-JP": ZA,
- "ko-KR": QA,
- "lt-LT": $A,
- "lv-LV": ej,
- "nb-NO": tj,
- "nl-NL": nj,
- "pl-PL": rj,
- "pt-BR": ij,
- "pt-PT": aj,
- "ro-RO": oj,
- "ru-RU": sj,
- "sk-SK": cj,
- "sl-SI": lj,
- "sr-SP": uj,
- "sv-SE": dj,
- "tr-TR": fj,
- "uk-UA": pj,
- "zh-CN": mj,
- "zh-TW": hj
+var vj = {};
+vj = {
+ "ar-AE": RA,
+ "bg-BG": zA,
+ "cs-CZ": BA,
+ "da-DK": VA,
+ "de-DE": HA,
+ "el-GR": UA,
+ "en-US": WA,
+ "es-ES": GA,
+ "et-EE": KA,
+ "fi-FI": qA,
+ "fr-FR": JA,
+ "he-IL": YA,
+ "hr-HR": XA,
+ "hu-HU": ZA,
+ "it-IT": QA,
+ "ja-JP": $A,
+ "ko-KR": ej,
+ "lt-LT": tj,
+ "lv-LV": nj,
+ "nb-NO": rj,
+ "nl-NL": ij,
+ "pl-PL": aj,
+ "pt-BR": oj,
+ "pt-PT": sj,
+ "ro-RO": cj,
+ "ru-RU": lj,
+ "sk-SK": uj,
+ "sl-SI": dj,
+ "sr-SP": fj,
+ "sv-SE": pj,
+ "tr-TR": mj,
+ "uk-UA": hj,
+ "zh-CN": gj,
+ "zh-TW": _j
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function rle(e) {
+function tle(e) {
return e && e.__esModule ? e.default : e;
}
-function _j(e, t, n) {
- let { node: r } = e, i = Gse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(rle(gj), "@react-aria/tree"), s = {
+function yj(e, t, n) {
+ let { node: r } = e, i = Kse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Bw(tle(vj), "@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,
- ...kw({
+ ...Ow({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30733,15 +30733,15 @@ function _j(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var vj = "(prefers-reduced-motion: reduce)", ile = () => matchMedia(vj).matches, ale = (e) => {
- let t = matchMedia(vj);
+var bj = "(prefers-reduced-motion: reduce)", nle = () => matchMedia(bj).matches, rle = (e) => {
+ let t = matchMedia(bj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, yj = /* @__PURE__ */ new Map(), bj = () => {
+}, xj = /* @__PURE__ */ new Map(), Sj = () => {
let e = document.documentElement;
- yj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...yj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ xj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...xj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function ole({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(ale, ile, () => !1), { isFocusVisible: o } = EC(), s = a || o, c = {
+function ile({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Ex(), a = (0, F.useSyncExternalStore)(rle, nle, () => !1), { isFocusVisible: o } = TC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30749,12 +30749,12 @@ function ole({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- yj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), bj();
+ xj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Sj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), yj.delete(e), bj();
+ n.disconnect(), window.removeEventListener("resize", t), xj.delete(e), Sj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(dS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30787,17 +30787,17 @@ function ole({ children: e, count: t, label: n }) {
}), e]
});
}
-function xj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(ole, { ...t }, "selection") : null });
+function Cj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(kx, { children: e ? /* @__PURE__ */ (0, I.jsx)(ile, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var Sj = {
+var wj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function sle(e, t = !1) {
+function ale(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30813,7 +30813,7 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ wj
];
case "junk": return [
t ? {
@@ -30834,7 +30834,7 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ wj
];
case "follow": return [
{
@@ -30855,7 +30855,7 @@ function sle(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Sj
+ wj
];
default: return [
{
@@ -30889,38 +30889,38 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ wj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Cj = null, wj = {
+var Tj = null, Ej = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Tj = /* @__PURE__ */ new Set();
-function cle(e) {
- return Tj.add(e), () => {
- Tj.delete(e);
+}, Dj = /* @__PURE__ */ new Set();
+function ole(e) {
+ return Dj.add(e), () => {
+ Dj.delete(e);
};
}
-function lle() {
- for (let e of [...Tj]) e();
+function sle() {
+ for (let e of [...Dj]) e();
}
-var ule = { render(e) {
- wj = e, (0, Rt.flushSync)(lle);
+var cle = { render(e) {
+ Ej = e, (0, Rt.flushSync)(sle);
} };
-function dle(e) {
- return Cj = e, ule;
+function lle(e) {
+ return Tj = e, cle;
}
-function fle() {
- let e = (0, F.useSyncExternalStore)(cle, () => wj);
- return Cj ? /* @__PURE__ */ (0, I.jsx)(ple, {
- host: Cj,
+function ule() {
+ let e = (0, F.useSyncExternalStore)(ole, () => Ej);
+ return Tj ? /* @__PURE__ */ (0, I.jsx)(dle, {
+ host: Tj,
props: e
}) : null;
}
-function ple({ host: e, props: t }) {
+function dle({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30930,11 +30930,11 @@ function ple({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(xj, {
+ children: /* @__PURE__ */ (0, I.jsx)(Cj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: sle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: ale(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30950,11 +30950,11 @@ function ple({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Ej(e, t, n, r) {
+function Oj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function mle(e, t) {
+function fle(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30973,7 +30973,7 @@ function mle(e, t) {
};
}
// src/sort-preferences.ts
-var Dj = [
+var kj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30982,7 +30982,7 @@ var Dj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Oj = ["release", "发行时间"], kj = [...Dj, Oj].map(([e]) => e), Aj = {
+], Aj = ["release", "发行时间"], jj = [...kj, Aj].map(([e]) => e), Mj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30991,43 +30991,43 @@ var Dj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, jj = {
+}, Nj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Mj = (e, t, n = Aj) => (n[e] || [])[+(t === "asc")] || "", Nj = (e, t = Aj) => t[e] ? "desc" : "";
-function Pj(e, t, n, r = Aj) {
+}, Pj = (e, t, n = Mj) => (n[e] || [])[+(t === "asc")] || "", Fj = (e, t = Mj) => t[e] ? "desc" : "";
+function Ij(e, t, n, r = Mj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Nj(e, r)
+ dir: Fj(e, r)
};
}
-function Fj(e, t, n) {
+function Lj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Ij(e, t, n, r, i = n) {
- let a = e ? jj[e] : void 0, o = a ? a[0] : e, s = o && kj.includes(o) ? o : i;
- return Aj[s] ? {
+function Rj(e, t, n, r, i = n) {
+ let a = e ? Nj[e] : void 0, o = a ? a[0] : e, s = o && jj.includes(o) ? o : i;
+ return Mj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Fj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Lj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Lj = [
+var zj = [
"spot1",
"spot2",
"spot3"
-], hle = [
+], ple = [
"光晕一",
"光晕二",
"光晕三"
-], Rj = "native", zj = [
+], Bj = "native", Vj = [
[
"ash",
"灰雾",
@@ -31333,7 +31333,7 @@ var Lj = [
"rose"
],
[
- Rj,
+ Bj,
"玻璃原色",
{
spot1: {
@@ -31351,7 +31351,7 @@ var Lj = [
},
"blue"
]
-], Bj = (e) => e === Rj, Vj = [...zj.map(([e, t]) => [e, t]), ["custom", "自定义"]], gle = (e) => (Vj.find(([t]) => t === e) || Vj[0])[1], Hj = (e) => structuredClone((zj.find(([t]) => t === e) || zj[0])[2]), Uj = [
+], Hj = (e) => e === Bj, Uj = [...Vj.map(([e, t]) => [e, t]), ["custom", "自定义"]], mle = (e) => (Uj.find(([t]) => t === e) || Uj[0])[1], Wj = (e) => structuredClone((Vj.find(([t]) => t === e) || Vj[0])[2]), Gj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31364,7 +31364,7 @@ var Lj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Wj = "blue", Gj = (e) => Uj.some(([t]) => t === e) ? e : Wj, _le = (e) => (zj.find(([t]) => t === e) || [])[3] || "blue", vle = [
+], Kj = "blue", qj = (e) => Gj.some(([t]) => t === e) ? e : Kj, hle = (e) => (Vj.find(([t]) => t === e) || [])[3] || "blue", gle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31374,7 +31374,7 @@ var Lj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], yle = [
+], _le = [
[
"gray",
"云灰",
@@ -31770,11 +31770,11 @@ var Lj = [
"霁蓝",
"#6686b8"
]
-], Kj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, qj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ble = (e, t) => `rgba(${[
+], Jj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Yj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, vle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, xle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, yle = {
strength: [
0,
100,
@@ -31800,7 +31800,7 @@ var Lj = [
100,
50
]
-}, Jj = {
+}, Xj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31808,56 +31808,56 @@ var Lj = [
speed: 100,
soften: 50,
size: 50,
- ...Hj("ash")
+ ...Wj("ash")
};
-function Yj(e) {
- let t = e && typeof e == "object" ? e : {}, n = Vj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Hj(r === "custom" ? "ash" : r), a = {
+function Zj(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Uj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Wj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(xle)) a[e] = Kj(+t[e], n, r, i);
- for (let e of Lj) {
+ for (let [e, [n, r, i]] of Object.entries(yle)) a[e] = Jj(+t[e], n, r, i);
+ for (let e of zj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: qj(r.color, o.color),
- alpha: Kj(+r.alpha, 0, 100, o.alpha)
+ color: Yj(r.color, o.color),
+ alpha: Jj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Sle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Xj = /* @__PURE__ */ new WeakMap();
-function Cle(e, t) {
+var ble = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Qj = /* @__PURE__ */ new WeakMap();
+function xle(e, t) {
if (!e) return;
- let n = Xj.get(e);
- n || (n = /* @__PURE__ */ new Map(), Xj.set(e, n));
- let r = t.on && !Bj(t.preset), i = (t, r) => {
+ let n = Qj.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Qj.set(e, n));
+ let r = t.on && !Hj(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"), Lj.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"), zj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, ble(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, vle(r.color, r.alpha));
});
}
-function wle(e, t) {
+function Sle(e, t) {
if (!e) return;
- let n = !t.on || Bj(t.preset);
+ let n = !t.on || Hj(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 Tle = "peach.settings.v1", Ele = [
+var Cle = "peach.settings.v1", wle = [
"system",
"light",
"dark"
-], Zj = [
+], $j = [
0,
7,
30,
90
-], Dle = [
+], Tle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Qj = {
+], eM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31878,56 +31878,56 @@ var Tle = "peach.settings.v1", Ele = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Bl],
- homeGlow: Jj,
- accent: Wj,
+ homeGlow: Xj,
+ accent: Kj,
performerNameLanguage: "zh-CN"
-}, $j = (e, t, n) => t.includes(e) ? e : n;
-function Ole(e) {
+}, tM = (e, t, n) => t.includes(e) ? e : n;
+function Ele(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Qj,
+ ...eM,
...t
};
- n.followInitialDays = Zj.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = $j.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 = jj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ej(+n.batchSize, 1, 200, 60), n.defaultSort = $j(n.defaultSort, kj, "seed"), n.hoverDelaySeconds = Ej(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ej(+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 = Ej(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ej(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ej(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = $j(n.theme, Ele, "system"), n.performerNameLanguage = $j(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Yj(n.homeGlow), n.accent = Gj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
+ let a = Nj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Oj(+n.batchSize, 1, 200, 60), n.defaultSort = tM(n.defaultSort, jj, "seed"), n.hoverDelaySeconds = Oj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Oj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Oj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Oj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Oj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = tM(n.theme, wle, "system"), n.performerNameLanguage = tM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Zj(n.homeGlow), n.accent = qj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function kle(e) {
+function Dle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Ole(t);
+ return Ele(t);
}
-var eM = null;
-function tM() {
- if (eM) return eM;
- let { settings: e, migrated: t } = kle(localStorage);
- return eM = mle(Tle, e), t && eM.save(), eM;
+var nM = null;
+function rM() {
+ if (nM) return nM;
+ let { settings: e, migrated: t } = Dle(localStorage);
+ return nM = fle(Cle, e), t && nM.save(), nM;
}
-function nM(e, t, n = tM()) {
+function iM(e, t, n = rM()) {
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;
- Zj.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());
+ $j.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of Tle) 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 = Ej(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Qj.searchHistoryLimit && Ale(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Oj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== eM.searchHistoryLimit && Ole(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 Ale(e = tM()) {
+function Ole(e = rM()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var jle = [
+var kle = [
[
"system",
"跟随系统",
@@ -31943,31 +31943,31 @@ var jle = [
"深色",
"moon"
]
-], Mle = null, rM = () => Mle ??= matchMedia("(prefers-color-scheme: dark)"), iM = null;
-function Nle() {
- return iM || (iM = document.createElement("style"), iM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), iM.isConnected || document.head.append(iM), () => {
+], Ale = null, aM = () => Ale ??= matchMedia("(prefers-color-scheme: dark)"), oM = null;
+function jle() {
+ return oM || (oM = document.createElement("style"), oM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), oM.isConnected || document.head.append(oM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), iM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), oM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function aM(e = tM().value.theme) {
- let t = Nle(), n = document.documentElement;
+function sM(e = rM().value.theme) {
+ let t = jle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && rM().matches;
+ let r = e === "dark" || e === "system" && aM().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 oM = !1;
-function Ple() {
- oM || (oM = !0, rM().addEventListener("change", () => {
- tM().value.theme === "system" && aM();
+var cM = !1;
+function Mle() {
+ cM || (cM = !0, aM().addEventListener("change", () => {
+ rM().value.theme === "system" && sM();
}));
}
// src/appearance/layout.ts
-var sM = [[
+var lM = [[
"big",
"大图",
"maximize"
@@ -31975,7 +31975,7 @@ var sM = [[
"small",
"小图",
"layout-grid"
-]], cM = [[
+]], uM = [[
"big",
"大图",
"maximize"
@@ -31983,7 +31983,7 @@ var sM = [[
"small",
"小图",
"layout-grid"
-]], lM = [[
+]], dM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31991,127 +31991,127 @@ var sM = [[
"masonry",
"瀑布流",
"columns-2"
-]], uM = .75, dM = () => tM().value, fM = (e = dM()) => Qa(e.javLayout), Fle = (e = dM()) => Qa(e.homeLayout), pM = (e, t = dM()) => e ? Fle(t) : fM(t), mM = cM.map(([e]) => e), hM = lM.map(([e]) => e), gM = (e = dM()) => $j(e.photoSize, mM, "small"), _M = (e = dM()) => $j(e.photoLayout, hM, "masonry"), vM = null;
-function yM(e, t = dM()) {
+]], fM = .75, pM = () => rM().value, mM = (e = pM()) => Qa(e.javLayout), Nle = (e = pM()) => Qa(e.homeLayout), hM = (e, t = pM()) => e ? Nle(t) : mM(t), gM = uM.map(([e]) => e), _M = dM.map(([e]) => e), vM = (e = pM()) => tM(e.photoSize, gM, "small"), yM = (e = pM()) => tM(e.photoLayout, _M, "masonry"), bM = null;
+function xM(e, t = pM()) {
let n = {
active: e.active,
- size: pM(e.home, t),
+ size: hM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = vM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (vM = n), vM;
+ }, r = bM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (bM = n), bM;
}
-function bM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? uM : 16 / 9;
+function SM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? fM : 16 / 9;
}
-function Ile(e, t = tM()) {
+function Ple(e, t = rM()) {
t.value.homeLayout = Qa(e), t.save();
}
-function xM(e, t = tM()) {
+function CM(e, t = rM()) {
t.value.javLayout = Qa(e), t.save();
}
-function Lle(e, t = tM()) {
+function Fle(e, t = rM()) {
t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
}
-function Rle(e, t = tM()) {
- t.value.photoSize = $j(e, mM, "small"), t.save();
+function Ile(e, t = rM()) {
+ t.value.photoSize = tM(e, gM, "small"), t.save();
}
-function SM(e, t = tM()) {
- t.value.photoLayout = $j(e, hM, "masonry"), t.save();
+function wM(e, t = rM()) {
+ t.value.photoLayout = tM(e, _M, "masonry"), t.save();
}
// src/appearance/density.ts
-var CM = "density", wM = {
+var TM = "density", EM = {
big: "336px",
dense: "168px"
-}, TM = () => localStorage.getItem(CM) === "dense" ? "dense" : "big";
-function EM(e, t) {
- let [n, r] = cM;
+}, DM = () => localStorage.getItem(TM) === "dense" ? "dense" : "big";
+function OM(e, t) {
+ let [n, r] = uM;
if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- DM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ kM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function DM(e, t, n) {
+function kM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var OM = () => document.querySelector("#density");
-function kM(e = TM()) {
+var AM = () => document.querySelector("#density");
+function jM(e = DM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== wM[e] && t.style.setProperty("--tile", wM[e]), DM(document.body, "data-density", e);
- let n = OM();
- n && (DM(n, "aria-pressed", String(e === "dense")), DM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), EM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== EM[e] && t.style.setProperty("--tile", EM[e]), kM(document.body, "data-density", e);
+ let n = AM();
+ n && (kM(n, "aria-pressed", String(e === "dense")), kM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), OM(n, e === "big" ? "big" : "small"));
}
-function zle() {
- let e = TM() === "big" ? "dense" : "big";
- localStorage.setItem(CM, e), kM(e);
+function Lle() {
+ let e = DM() === "big" ? "dense" : "big";
+ localStorage.setItem(TM, e), jM(e);
}
-function Ble(e) {
- let t = OM();
- t && (DM(t, "aria-pressed", String(e === "small")), DM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), EM(t, e));
+function Rle(e) {
+ let t = AM();
+ t && (kM(t, "aria-pressed", String(e === "small")), kM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), OM(t, e));
}
// src/appearance/glow.ts
-function AM(e = tM()) {
- Cle(document.querySelector(".glowlayer"), e.value.homeGlow);
+function MM(e = rM()) {
+ xle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var jM = 0;
-function MM(e = tM()) {
- jM ||= requestAnimationFrame(() => {
- jM = 0, AM(e);
+var NM = 0;
+function PM(e = rM()) {
+ NM ||= requestAnimationFrame(() => {
+ NM = 0, MM(e);
});
}
-function NM(e = tM()) {
- wle(document.documentElement, e.value.homeGlow);
+function FM(e = rM()) {
+ Sle(document.documentElement, e.value.homeGlow);
}
-function PM(e = tM()) {
+function IM(e = rM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var FM = (e, t, n) => ({
+var LM = (e, t, n) => ({
key: e,
label: t,
- native: Bj(e),
- fill: Bj(e) ? "" : Sle(n)
+ native: Hj(e),
+ fill: Hj(e) ? "" : ble(n)
});
-function Vle(e) {
- let t = zj.map(([e, t, n]) => FM(e, t, Lj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(FM("custom", "自定义", Lj.map((t) => e[t].color))), t;
+function zle(e) {
+ let t = Vj.map(([e, t, n]) => LM(e, t, zj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(LM("custom", "自定义", zj.map((t) => e[t].color))), t;
}
-var Hle = Uj;
-function Ule(e, t = tM()) {
+var Ble = Gj;
+function Vle(e, t = rM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Hj(e)), t.value.accent = _le(e), t.save(), MM(t), NM(t), PM(t);
+ n.preset = e, Object.assign(n, Wj(e)), t.value.accent = hle(e), t.save(), PM(t), FM(t), IM(t);
}
-function Wle(e, t = tM()) {
- t.value.accent = Gj(e), t.save(), PM(t);
+function Hle(e, t = rM()) {
+ t.value.accent = qj(e), t.save(), IM(t);
}
-function Gle(e = tM()) {
+function Ule(e = rM()) {
let t = e.value.homeGlow;
- t.preset = Jj.preset, Object.assign(t, Hj(t.preset)), e.value.accent = Wj, e.save(), MM(e), NM(e), PM(e);
+ t.preset = Xj.preset, Object.assign(t, Wj(t.preset)), e.value.accent = Kj, e.save(), PM(e), FM(e), IM(e);
}
-function IM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Bj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function RM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Hj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Kle(e, t = tM()) {
- return IM(e, t.value.homeGlow), t.subscribe(() => IM(e, t.value.homeGlow));
+function Wle(e, t = rM()) {
+ return RM(e, t.value.homeGlow), t.subscribe(() => RM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function LM({ store: e, label: t, hidden: n }) {
+function zM({ 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: Vle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: zle(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: () => Ule(t.key, e),
+ onClick: () => Vle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32122,14 +32122,14 @@ function LM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var RM = null;
-function qle(e) {
- RM = e;
+var BM = null;
+function Gle(e) {
+ BM = e;
}
-function Jle() {
- return RM ? /* @__PURE__ */ (0, I.jsx)(Yle, { host: RM }) : null;
+function Kle() {
+ return BM ? /* @__PURE__ */ (0, I.jsx)(qle, { host: BM }) : null;
}
-function Yle({ host: e }) {
+function qle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32141,11 +32141,11 @@ function Yle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Gle(t),
+ onClick: () => Ule(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(LM, {
+ /* @__PURE__ */ (0, I.jsx)(zM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32159,14 +32159,14 @@ function Yle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Hle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ble.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: () => Wle(e, t),
+ onClick: () => Hle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32184,31 +32184,31 @@ function Yle({ host: e }) {
] });
}
// src/player/host.ts
-var zM = null;
-function Xle(e) {
- zM = e;
+var VM = null;
+function Jle(e) {
+ VM = e;
}
-function BM() {
- if (!zM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return zM;
+function HM() {
+ if (!VM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return VM;
}
// src/player/menu.ts
-var VM = null;
-function Zle(e) {
- VM = e;
+var UM = null;
+function Yle(e) {
+ UM = e;
}
-function Qle() {
+function Xle() {
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 HM = null, UM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function WM() {
+var WM = null, GM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function KM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), HM &&= (HM(), null);
+ }), WM &&= (WM(), null);
}
-async function $le(e) {
+async function Zle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32221,8 +32221,8 @@ async function $le(e) {
return t.remove(), n;
}
}
-function eue(e) {
- let t = !!VM?.inMiniplayer(e), n = e.peachItem, r = VM?.kind(e) ?? "item", i = (t) => {
+function Qle(e) {
+ let t = !!UM?.inMiniplayer(e), n = e.peachItem, r = UM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32238,7 +32238,7 @@ function eue(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- $le(i(e)).then((e) => BM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Zle(i(e)).then((e) => HM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32250,11 +32250,11 @@ function eue(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => VM?.expand()
+ run: () => UM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => VM?.toMiniplayer()
+ run: () => UM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32277,29 +32277,29 @@ function eue(e) {
run: () => s.click()
}), o;
}
-function tue(e, t, n) {
- let r = Qle();
- WM();
- let i = BM().stage();
+function $le(e, t, n) {
+ let r = Xle();
+ KM();
+ let i = HM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = eue(e);
+ let a = Qle(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}">${UM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? UM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? GM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), cs(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- WM(), n?.run();
+ KM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || WM();
+ r.contains(e.target) || KM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), WM();
+ e.preventDefault(), e.stopPropagation(), KM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32307,49 +32307,49 @@ function tue(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && WM();
+ ds(t, e.el()) && KM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), HM = () => {
+ }, 0), WM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function nue(e) {
+function eue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tue(e, t.clientX, t.clientY));
- }), e.on("dispose", WM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), $le(e, t.clientX, t.clientY));
+ }), e.on("dispose", KM);
}
// src/player/registry.ts
-var GM = null, KM = () => GM;
-function qM(e) {
- GM = e;
+var qM = null, JM = () => qM;
+function YM(e) {
+ qM = e;
}
-function JM(e) {
+function XM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function YM(e) {
+function ZM(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 rue(e) {
+function tue(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 XM = 3e3;
-function ZM(e, t) {
+var QM = 3e3;
+function $M(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function iue(e) {
+function nue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32364,10 +32364,10 @@ function iue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = rue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = tue(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 > XM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > QM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32376,55 +32376,55 @@ function iue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > XM;) t.shift();
+ }); t.length > 2 && a - t[0].at > QM;) 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 QM = 24;
-function $M(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > QM && e.splice(0, e.length - QM);
+var eN = 24;
+function tN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eN && e.splice(0, e.length - eN);
}
-var eN = "peach-player-panel";
-function tN(e, t, n, r) {
- let i = [...Array(Math.max(0, QM - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var nN = "peach-player-panel";
+function rN(e, t, n, r) {
+ let i = [...Array(Math.max(0, eN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
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 aue() {
+function rue() {
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 nN(e, t = "") {
+function iN(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 rN(e, t = "") {
- let n = nN(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 aN(e, t = "") {
+ let n = iN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function iN(e, t, n = "", r = null) {
+function oN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : rN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : aN(t, n);
}
-function aN(e) {
+function sN(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 oue(e, t) {
- return e > 0 ? aN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : aN(0);
+function iue(e, t) {
+ return e > 0 ? sN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sN(0);
}
// src/player/subtitle-style.ts
-var oN = {
+var cN = {
font: {
label: "字体",
values: [
@@ -32527,7 +32527,7 @@ var oN = {
["shadow", "阴影"]
]
}
-}, sN = {
+}, lN = {
font: "sans",
size: "100",
color: "white",
@@ -32537,7 +32537,7 @@ var oN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, cN = "peach.caption-style.v1", sue = {
+}, uN = "peach.caption-style.v1", aue = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32546,7 +32546,7 @@ var oN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, cue = {
+}, oue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32554,28 +32554,28 @@ var oN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, lue = {
+}, sue = {
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 uue() {
+function cue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(cN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(uN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(sN).map(([t, n]) => [t, oN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(lN).map(([t, n]) => [t, cN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function lN(e, t, n, r) {
- let i = uue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function dN(e, t, n, r) {
+ let i = cue(), 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(${sue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", cue[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", lue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${aue[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", oue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", sue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32591,15 +32591,15 @@ function lN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...sN,
+ ...lN,
...e.caption_style
};
- for (let e of Object.keys(sN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(lN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(cN);
+ e = !!localStorage.getItem(uN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32607,18 +32607,18 @@ function lN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- oN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ cN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(sN).forEach((e) => a.add(e)), i = { ...sN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(lN).forEach((e) => a.add(e)), i = { ...lN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = class {
+var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32646,7 +32646,7 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await uN.get(this.url)?.catch(() => {});
+ await fN.get(this.url)?.catch(() => {});
let e = await Tn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32658,7 +32658,7 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (uN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (fN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32685,8 +32685,8 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
this.changed();
}
});
- return uN.set(this.url, t), t.finally(() => {
- uN.get(this.url) === t && uN.delete(this.url);
+ return fN.set(this.url, t), t.finally(() => {
+ fN.get(this.url) === t && fN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32695,12 +32695,12 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
} catch {}
}
};
-function fN(e) {
- let t = dN.get(e);
- return t || (t = new due(e), dN.set(e, t)), t;
+function mN(e) {
+ let t = pN.get(e);
+ return t || (t = new lue(e), pN.set(e, t)), t;
}
-function pN(e, t) {
- let n = fN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function hN(e, t) {
+ let n = mN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32713,7 +32713,7 @@ function pN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var mN = class {
+var gN = class {
player;
video;
changed;
@@ -32724,7 +32724,7 @@ var mN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = fN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = mN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32821,7 +32821,7 @@ var mN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, hN = () => "<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>", fue = class {
+}, _N = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", uue = class {
player;
video;
panels;
@@ -32840,7 +32840,7 @@ var mN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = lN(e.el(), t, this.cleanup.signal, fN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = hN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = dN(e.el(), t, this.cleanup.signal, mN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = _N(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32850,7 +32850,7 @@ var mN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new mN(e, t, () => {
+ }), this.session = new gN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32898,7 +32898,7 @@ var mN = 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(oN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(cN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32910,7 +32910,7 @@ var mN = class {
}
styleOptions(e) {
this.page = "style";
- let t = oN[e];
+ let t = cN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -33026,7 +33026,7 @@ var mN = class {
}
};
// src/player/timeline.ts
-function pue(e, t) {
+function due(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -33037,8 +33037,8 @@ function pue(e, t) {
let i = n - 1, a = t.cues[i];
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
-function mue(e, t) {
- let n = pue(e, t);
+function fue(e, t) {
+ let n = due(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33048,15 +33048,15 @@ function mue(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function hue(e, t, n, r = 0) {
+function pue(e, t, n, r = 0) {
return n + r * 2 >= t ? t / 2 : Math.min(t - r - n / 2, Math.max(r + n / 2, e));
}
-function gue(e) {
+function mue(e) {
if (!e || (e.source || "peach") !== "peach" || e.cues?.length || !(e.interval > 0) || e.frames <= 0) return 0;
let t = Math.ceil(e.frames / ((e.columns || 10) * (e.rows || 10)));
return t <= 12 ? t : 0;
}
-function gN(e, t, n = {}) {
+function vN(e, t, n = {}) {
let r = !!t?.id && n.thumbnail !== !1, i = document.createElement("div");
i.className = "vjs-peach-seek-preview", i.dataset.playerSeekPreview = "", i.hidden = !0, i.innerHTML = `${r ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, e.append(i);
let a = i.querySelector(".vjs-peach-seek-frame"), o = i.querySelector("img"), s = i.querySelector("span"), c = encodeURIComponent(String(t?.id ?? "")), l = (e, t) => {
@@ -33064,7 +33064,7 @@ function gN(e, t, n = {}) {
};
t?.width && t.height && l(t.width, t.height);
let u = null, d = "", f = !1, p = -1, m = !1, h = !1, g = t?.has_thumb !== !0, _ = [], v = (e, t) => `/timeline?id=${c}&s=${t}&source=${encodeURIComponent(e.source || "peach")}`, y = () => {
- if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < gue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < mue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33075,7 +33075,7 @@ function gN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = mue(e, n);
+ let r = fue(e, n);
if (!r || !a || !o) return !1;
f = !!n.cues, !f && t?.width && t.height && l(t.width, t.height);
let i = v(n, r.page);
@@ -33102,7 +33102,7 @@ function gN(e, t, n = {}) {
let o = Math.min(1, Math.max(0, t)), c = r * o;
s.textContent = Yn(c), a && !(u && b(c, u)) && !(u?.fallback && b(c, u.fallback)) && x(o), i.hidden = !1;
let l = e.getBoundingClientRect().width;
- i.style.left = `${hue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${pue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33113,8 +33113,8 @@ function gN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function _N(e, t) {
- let n = 0, r = !1, i = fN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function yN(e, t) {
+ let n = 0, r = !1, i = mN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33142,7 +33142,7 @@ function _N(e, t) {
};
}
// src/player/pip.ts
-function _ue(e, t, n, r) {
+function hue(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33174,7 +33174,7 @@ function _ue(e, t, n, r) {
});
}
// src/player/controls.ts
-function vN(e, t, n = "") {
+function bN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33185,27 +33185,27 @@ function vN(e, t, n = "") {
};
return o(), o;
}
-function yN(e, t) {
+function xN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function vue(e, t = !0) {
- let n = BM(), r = n.settings();
+function gue(e, t = !0) {
+ let n = HM(), 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 bN = /* @__PURE__ */ new WeakMap();
-function xN(e) {
+var SN = /* @__PURE__ */ new WeakMap();
+function CN(e) {
if (!e) return;
- let t = BM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), bN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = HM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), SN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function SN(e, t = !0) {
- let n = BM(), r = n.settings();
+function wN(e, t = !0) {
+ let n = HM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), xN(i?.querySelector("[data-player-theater]")), JM(KM());
+ i?.toggleAttribute("data-theater", r.theaterMode), CN(i?.querySelector("[data-player-theater]")), XM(JM());
}
-function yue(e) {
- let t = BM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function _ue(e) {
+ let t = HM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33228,9 +33228,9 @@ function yue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (BM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (HM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && BM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && HM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33239,7 +33239,7 @@ function yue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function CN(e, t, n = 0, r = null) {
+function TN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33249,8 +33249,8 @@ function CN(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]");
- vN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = _N(e, t), d = pN(e, t), f = fN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ bN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = yN(e, t), d = hN(e, t), f = mN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33289,11 +33289,11 @@ function CN(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(eN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(nN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(eN, C);
+ document.addEventListener(nN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33309,15 +33309,15 @@ function CN(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="${BM().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="${HM().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">${hN()}</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">${_N()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-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 = () => {
- vue(!BM().settings().ambientMode), k();
+ gue(!HM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33421,8 +33421,8 @@ function CN(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(eN, C), w && clearTimeout(w);
- }), p = new fue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(nN, C), w && clearTimeout(w);
+ }), p = new uue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33431,21 +33431,21 @@ function CN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), bue(e, a), xue(e), (e) => {
+ }), y(), vue(e, a), yue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function bue(e, t) {
+function vue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = BM().settings().theaterMode, i = document.createElement("div");
+ let r = HM().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");
- bN.set(a, vN(a, "影院模式", "T")), xN(a), a.onclick = (e) => {
- e.stopPropagation(), SN(!BM().settings().theaterMode);
+ SN.set(a, bN(a, "影院模式", "T")), CN(a), a.onclick = (e) => {
+ e.stopPropagation(), wN(!HM().settings().theaterMode);
};
}
-function xue(e) {
+function yue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33457,7 +33457,7 @@ function xue(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 = vN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = bN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33468,7 +33468,7 @@ function xue(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 = vN(p, "静音", "M"), g = () => {
+ let h = bN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33494,7 +33494,7 @@ function xue(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 = vN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = bN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Yn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Yn(t)} / ${Yn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Yn(n)};点击显示已播放时间` : `已播放 ${Yn(t)},总时长 ${Yn(n)};点击显示剩余时间`);
};
@@ -33506,10 +33506,10 @@ function xue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- vN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), _ue(e, E, vN(E, "画中画"), (e) => BM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = vN(D, "全屏", "F"), A = () => {
+ bN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), hue(e, E, bN(E, "画中画"), (e) => HM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = bN(D, "全屏", "F"), A = () => {
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 ? "退出全屏" : "全屏"), JM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), XM(e);
};
e.on([
"fullscreenchange",
@@ -33530,7 +33530,7 @@ function xue(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 = vN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = bN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33542,10 +33542,10 @@ function xue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function wN(e, t, n = {}) {
+function EN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
- let i = gN(r, t, n), a = (n) => {
+ let i = vN(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33565,13 +33565,13 @@ function wN(e, t, n = {}) {
i.dispose();
});
}
-function Sue(e, t) {
+function bue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => qn(e.duration()) || qn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(BM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(HM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33612,11 +33612,11 @@ function Sue(e, t) {
} catch {}
});
}
-function TN(e) {
+function DN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function EN(e, t) {
+function ON(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33632,35 +33632,35 @@ function EN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var DN = "peach.playback-position.v1", ON = /* @__PURE__ */ new WeakMap();
-function kN(e) {
- ON.get(e)?.(), ON.delete(e);
+var kN = "peach.playback-position.v1", AN = /* @__PURE__ */ new WeakMap();
+function jN(e) {
+ AN.get(e)?.(), AN.delete(e);
}
-function AN(e, t, n = null) {
+function MN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function Cue(e) {
+function xue(e) {
try {
- let t = localStorage.getItem(`${DN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${kN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function wue(e, t) {
- let n = Cue(e);
+function Sue(e, t) {
+ let n = xue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Tue(e, t) {
- kN(t);
+function Cue(e, t) {
+ jN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${DN}:${e}`, String(r));
+ localStorage.setItem(`${kN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33674,7 +33674,7 @@ function Tue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), ON.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), AN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33686,19 +33686,19 @@ function Tue(e, t) {
});
}
// src/player/telemetry.ts
-var jN = /* @__PURE__ */ new WeakMap();
-function MN(e) {
- jN.get(e)?.(), jN.delete(e);
+var NN = /* @__PURE__ */ new WeakMap();
+function PN(e) {
+ NN.get(e)?.(), NN.delete(e);
}
-function NN(e, t, n, r) {
+function FN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), jN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), NN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function PN(e, t, n = {}) {
+function IN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = qn(e.duration) || qn(t.duration);
@@ -33739,11 +33739,11 @@ function PN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, NN(t, l, u, () => {
+ }, FN(t, l, u, () => {
a++;
}), c();
}
-function Eue(e, t) {
+function wue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = qn(e.duration) || qn(t.duration);
(r || n) && (Tn("/api/follow/activity", {
@@ -33774,22 +33774,22 @@ function Eue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, NN(t, o, s, () => {});
+ }, FN(t, o, s, () => {});
}
// src/player/dispose.ts
-function FN(e) {
+function LN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (kN(t), MN(t));
+ t && (jN(t), PN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function IN() {
+function RN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33797,23 +33797,23 @@ function IN() {
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 LN() {
- return IN();
+function zN() {
+ return RN();
}
-function RN(e, t) {
+function BN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Due(e) {
+function Tue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function zN(e, t) {
- let n = Due(e);
+async function VN(e, t) {
+ let n = Tue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33822,9 +33822,9 @@ async function zN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return RN(e, t);
+ return BN(e, t);
}
-function BN(e) {
+function HN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33833,22 +33833,22 @@ function BN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var VN = "";
-function HN() {
- return VN;
+var UN = "";
+function WN() {
+ return UN;
}
-function UN() {
- return VN ||= LN(), VN;
+function GN() {
+ return UN ||= zN(), UN;
}
-var Oue = (e) => RN(e, UN()), kue = (e) => zN(e, UN());
-function WN() {
- let e = VN;
- e && (VN = "", BN(e));
+var Eue = (e) => BN(e, GN()), Due = (e) => VN(e, GN());
+function KN() {
+ let e = UN;
+ e && (UN = "", HN(e));
}
// src/player/v10-player.ts
-var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
+var qN = (e) => typeof e == "string" ? [e] : e, Oue = (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-${IN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${RN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33943,9 +33943,9 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (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) => GN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => GN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => GN(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
})),
@@ -34000,7 +34000,7 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (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);
}
};
-}, jue = "/vendor/videojs/10.2.0/", Mue = [
+}, kue = "/vendor/videojs/10.2.0/", Aue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34018,17 +34018,17 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], KN = null;
-function qN() {
- return KN ??= Promise.all(Mue.map((e) => import(
+], JN = null;
+function YN() {
+ return JN ??= Promise.all(Aue.map((e) => import(
/* @vite-ignore */
- `${jue}${e}`
-))).then(() => Aue).catch((e) => {
- throw KN = null, e;
- }), KN;
+ `${kue}${e}`
+))).then(() => Oue).catch((e) => {
+ throw JN = null, e;
+ }), JN;
}
// src/player/immerse-player.ts
-var Nue = {
+var jue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34040,45 +34040,45 @@ var Nue = {
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([zN(n, r), qN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([VN(n, r), YN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = RN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = BN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Nue);
- i = t, t.peachItem = n, t.peachPlaybackKey = AN("item", n);
+ let t = s(e, jue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = MN("item", n);
let r = new AbortController();
- lN(t.el(), e, r.signal, fN(t)), _N(t, e), pN(t, e), t.on("dispose", () => r.abort()), new mN(t, e), EN(t, n.id), l && t.one("error", () => {
+ dN(t.el(), e, r.signal, mN(t)), yN(t, e), hN(t, e), t.on("dispose", () => r.abort()), new gN(t, e), ON(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- PN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ IN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, BN(r), i ? FN(i) : (e.pause(), MN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, HN(r), i ? LN(i) : (e.pause(), PN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var JN = !1, YN = () => JN;
-function Fue() {
- return JN = !0, () => {
- JN = !1;
+var XN = !1, ZN = () => XN;
+function Nue() {
+ return XN = !0, () => {
+ XN = !1;
};
}
// src/player/detail-player.ts
-var XN = /* @__PURE__ */ new WeakMap(), ZN = null, QN = null, $N = null;
-function eP() {
- ZN &&= (clearInterval(ZN), null), QN &&= (clearInterval(QN), null), $N &&= (clearTimeout($N), null);
+var QN = /* @__PURE__ */ new WeakMap(), $N = null, eP = null, tP = null;
+function nP() {
+ $N &&= (clearInterval($N), null), eP &&= (clearInterval(eP), null), tP &&= (clearTimeout(tP), null);
}
-async function Iue(e, t, n, r = {}) {
- let i = KM();
+async function Pue(e, t, n, r = {}) {
+ let i = JM();
if (i && !i.isDisposed()) return i;
- let a = BM(), o = r.resume ?? null;
+ let a = HM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : kue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : Due(e), c;
try {
- c = await qN();
+ c = await YN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34104,7 +34104,7 @@ async function Iue(e, t, n, r = {}) {
} }
}
});
- qM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || AN("item", e), nue(l), l.on("loadedmetadata", () => {
+ YM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || MN("item", e), eue(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -34112,7 +34112,7 @@ async function Iue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = iue(ZM(f, e.duration)), m = 0, h = !1, g = () => KM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = nue($M(f, e.duration)), m = 0, h = !1, g = () => JM() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34123,15 +34123,15 @@ async function Iue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- XN.set(l, y), y.updateStats = () => {
+ QN.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = HN(), h = s ? nN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = WN(), h = s ? iN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = iN(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 = oN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = YM(t);
- $M(d.speed, x), $M(d.activity, C), $M(d.buffer, w);
+ let w = ZM(t);
+ tN(d.speed, x), tN(d.activity, C), tN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Xn(_) : "—"} · ${h.length} 请求`,
@@ -34149,17 +34149,17 @@ async function Iue(e, t, n, r = {}) {
[
"连接速度",
D,
- tN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ rN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- tN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ rN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- tN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ rN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34175,15 +34175,15 @@ async function Iue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = iN(l, e.id, HN(), r ? null : p), a = r ? aN(i) : oue(i, YM(t));
+ let i = oN(l, e.id, WN(), r ? null : p), a = r ? sN(i) : iue(i, ZM(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(), QN && clearInterval(QN), QN = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), eP && clearInterval(eP), eP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && ($N && clearTimeout($N), $N = setTimeout(() => {
- e.hidden = !0, QN &&= (clearInterval(QN), null);
+ e && (tP && clearTimeout(tP), tP = setTimeout(() => {
+ e.hidden = !0, eP &&= (clearInterval(eP), null);
}, 1400));
};
return l.on([
@@ -34194,7 +34194,7 @@ async function Iue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Oue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Eue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34202,13 +34202,13 @@ async function Iue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = CN(l, t, e.height, r.qualities ?? null);
+ let n = TN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = ZM(r, e.duration));
- }).catch(() => {}), wN(l, e, { thumbnail: !r.source }), r.guidePreview || Sue(l, e), TN(l), r.source || EN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = $M(r, e.duration));
+ }).catch(() => {}), EN(l, e, { thumbnail: !r.source }), r.guidePreview || bue(l, e), DN(l), r.source || ON(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34217,16 +34217,16 @@ async function Iue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Lue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function tP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Lue), e.querySelector("#playerStatsBtn")) return;
+var Fue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function rP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Fue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = aue();
+ n.innerHTML = rue();
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 nP(e, t) {
- let n = XN.get(e);
+function iP(e, t) {
+ let n = QN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34238,30 +34238,30 @@ function nP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), ZN &&= (clearInterval(ZN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), $N &&= (clearInterval($N), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(eN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), ZN && clearInterval(ZN), ZN = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(nN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), $N && clearInterval($N), $N = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(eN, t), s = () => document.removeEventListener(eN, t);
+ document.addEventListener(nN, t), s = () => document.removeEventListener(nN, t);
}
- let c = e.el().querySelector("video"), l = c ? yue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, eP()));
+ let c = e.el().querySelector("video"), l = c ? _ue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, nP()));
};
return e.one("dispose", d), d;
}
-function rP(e, t) {
- if (t.kind === "immerse") return Pue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = YN(), c = BM(), l = t.chrome === !1 ? null : e.parentElement;
- l && tP(l, e);
- let u = AN(n, r, i?.index ?? null), d = {
+function aP(e, t) {
+ if (t.kind === "immerse") return Mue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = ZN(), c = HM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && rP(l, e);
+ let u = MN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: wue(u, r),
+ time: Sue(u, r),
autoplay: !1
}
};
@@ -34281,36 +34281,36 @@ function rP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (kN(h), f ? (KM() === f && (qM(null), eP()), FN(f)) : MN(h));
+ m(), !(f && a?.(f)) && (jN(h), f ? (JM() === f && (YM(null), nP()), LN(f)) : PN(h));
};
- return Iue(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)) : (Tue(u, h), n === "follow" ? Eue(r, h) : (h.addEventListener("play", () => {
+ return Pue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (Cue(u, h), n === "follow" ? wue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), PN(r, h, {
+ }, { once: !0 }), IN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = nP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = iP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function iP(e) {
+function oP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function aP(e, t) {
+function sP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function Rue(e, t, n) {
+function Iue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return qN().then((a) => {
+ return YN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34335,30 +34335,30 @@ function Rue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (CN(o, e), wN(o, null, { thumbnail: !1 }), TN(o));
+ r || o.isDisposed() || (TN(o, e), EN(o, null, { thumbnail: !1 }), DN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, FN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, LN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function oP(e, t) {
+function cP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var zue = (e, t) => [
+var Lue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Bue = (e, t) => [
+], Rue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Vue(e, t, n, r, i) {
+async function zue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34368,22 +34368,22 @@ async function Vue(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 Hue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Uue = (e, t) => {
+var Bue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Vue = (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 Wue(e) {
- let t = oP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Hue(e) {
+ let t = cP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: zue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Vue(t, e, n, r, i),
+ queryKey: Lue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => zue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Hue(n)
+ getNextPageParam: Bue(n)
};
}
-function Gue(e) {
+function Uue(e) {
return {
- queryKey: Bue(e.entityKey || "", e.revision || 0),
+ queryKey: Rue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34398,14 +34398,14 @@ function Gue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Uue
+ getNextPageParam: Vue
};
}
-function sP(e) {
+function lP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function cP(e, t, n) {
+function uP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34420,24 +34420,24 @@ function cP(e, t, n) {
return !0;
}) : [...e];
}
-var lP = (e, t) => !!e && !!to(e, t);
-function Kue(e, t) {
- let n = (e) => lP(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) => lP(e, t)) || e[e.length - 1];
+var dP = (e, t) => !!e && !!to(e, t);
+function Wue(e, t) {
+ let n = (e) => dP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => dP(e, t)) || e[e.length - 1];
}
-function que(e, { collapse: t, mix: n, javImage: r }) {
+function Gue(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 = cP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = uP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Kue(e, r);
+ let t = Wue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34450,16 +34450,16 @@ function que(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Jue(e, t, n) {
+function Kue(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 Yue(e, t) {
+function que(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 Xue(e, t) {
+function Jue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34472,10 +34472,10 @@ function Xue(e, t) {
strip: null
}), r;
}
-function uP(e, t) {
- dP((t) => t.id === e, t);
+function fP(e, t) {
+ pP((t) => t.id === e, t);
}
-function dP(e, t) {
+function pP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34505,34 +34505,34 @@ function dP(e, t) {
} : n)
});
}
-var fP = (e) => Math.min(Math.max(e || 0, 0), 100), pP = (e) => Math.round(fP(e) / 20), Zue = (e) => {
- let t = pP(e);
+var mP = (e) => Math.min(Math.max(e || 0, 0), 100), hP = (e) => Math.round(mP(e) / 20), Yue = (e) => {
+ let t = hP(e);
return t ? `${t} 星` : "未评分";
-}, mP = (e, t) => t === pP(e) ? 0 : t * 20, hP = (e) => ["item", e], gP = (e) => [
+}, gP = (e, t) => t === hP(e) ? 0 : t * 20, _P = (e) => ["item", e], vP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Que = (e, t) => [
+], Xue = (e, t) => [
"item-related",
e,
t
-], $ue = (e) => `/api/item?id=${e}`, ede = (e, t) => `/api/related?id=${e}&limit=${t}`, _P = "/api/playlist", vP = "/api/feedback", yP = "/api/item-tag", bP = "/api/watch-later", xP = "/api/quality-goal", SP = "/api/preference", CP = class extends Error {};
-async function wP(e, t) {
- let n = await B($ue(e), t);
- if (n.error) throw new CP(n.error);
+], Zue = (e) => `/api/item?id=${e}`, Que = (e, t) => `/api/related?id=${e}&limit=${t}`, yP = "/api/playlist", bP = "/api/feedback", xP = "/api/item-tag", SP = "/api/watch-later", CP = "/api/quality-goal", wP = "/api/preference", TP = class extends Error {};
+async function EP(e, t) {
+ let n = await B(Zue(e), t);
+ if (n.error) throw new TP(n.error);
return n;
}
-async function TP(e, t, n) {
+async function DP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([wP(r, n), t.mixRelated(r)]);
- return H.setQueryData(hP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([EP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(_P(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return EP(await B(`${_P}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return OP(await B(`${yP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34543,19 +34543,19 @@ async function TP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var EP = (e) => ({
+var OP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), DP = (e) => e.disposal === "vanished";
-function OP(e, t) {
+}), kP = (e) => e.disposal === "vanished";
+function AP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !DP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !kP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function tde(e, t) {
+function $ue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34563,20 +34563,20 @@ function tde(e, t) {
part_label: n
};
}
-function kP(e, t) {
+function jP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function AP(e, t) {
+async function MP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = gP(n);
+ let o = vP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => TP(n, e.helpers, t),
+ queryFn: () => DP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34588,21 +34588,21 @@ async function AP(e, t) {
return;
}
}
- let o = i ? OP(i, e.id) : e.id;
+ let o = i ? AP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(hP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(_P(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: hP(o),
- queryFn: () => wP(o, t),
+ queryKey: _P(o),
+ queryFn: () => EP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof CP) {
+ if (e instanceof TP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34613,7 +34613,7 @@ async function AP(e, t) {
id: Number(s.follow_item_id)
});
}
-function nde(e) {
+function ede(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Un(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34635,35 +34635,35 @@ function nde(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function rde(e, t) {
+function tde(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Un(t.tagLabel(e.k)), i = n.get(r);
(!i || Un(e.k) === r && Un(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var jP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), MP = (e, t) => ({
+var NP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), PP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), NP = (e, t) => jP(e, t.k) ? e : {
+}), FP = (e, t) => NP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, PP = "peach.recentTags";
-function FP() {
+}, IP = "peach.recentTags";
+function LP() {
try {
- let e = JSON.parse(localStorage.getItem(PP) || "[]");
+ let e = JSON.parse(localStorage.getItem(IP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function IP(e) {
+function RP(e) {
try {
- let t = FP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(PP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = LP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(IP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function ide(e, t, n) {
+function nde(e, t, n) {
let r = Un(e), i = new Map(t.map((e) => [Un(e.k), e])), a = t.filter((e) => !r || Un(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Un(e)) || {
k: e,
n: 0
@@ -34674,72 +34674,72 @@ function ide(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var ade = {
+var rde = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, ode = {
+}, ide = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function sde(e) {
+function ade(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: ode[e.kind],
+ title: ide[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var LP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, cde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(LP(e.part_label))}</small>` : "";
-function lde(e, t, n, r) {
+var zP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ode = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(zP(e.part_label))}</small>` : "";
+function sde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var ude = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function dde(e, t) {
+var cde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function lde(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 fde(e) {
+function ude(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 RP(e, t) {
+function BP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var pde = (e, t, n) => [
+var dde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function mde(e) {
+function fde(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 hde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function gde(e, t = Math.random) {
+var pde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function mde(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 _de(e, t) {
- return gde(((await B(`/api/items?${e}`)).items || []).filter((e) => hde(e, t)));
+async function hde(e, t) {
+ return mde(((await B(`/api/items?${e}`)).items || []).filter((e) => pde(e, t)));
}
-var zP = (e) => H.ensureQueryData({
- queryKey: hP(e),
- queryFn: ({ signal: t }) => wP(e, t)
+var VP = (e) => H.ensureQueryData({
+ queryKey: _P(e),
+ queryFn: ({ signal: t }) => EP(e, t)
});
-function vde(e, t) {
+function gde(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function yde(e) {
+function _de(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34748,313 +34748,313 @@ function yde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function bde(e, t, n) {
+function vde(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 xde(e, t) {
+function yde(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 Sde = 15e3, BP = {
+var bde = 15e3, HP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, VP = null, HP = null, UP = BP, WP = /* @__PURE__ */ new Set(), GP = 0, KP = 0, qP = 0, JP = "", YP = [], XP = 0, ZP = !1, QP = !1, $P = null, eF = /* @__PURE__ */ new Set(), tF = "", nF = null, rF = 0, iF = null, aF = !1, oF = null;
-function sF() {
- if (!VP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return VP;
+}, UP = null, WP = null, GP = HP, KP = /* @__PURE__ */ new Set(), qP = 0, JP = 0, YP = 0, XP = "", ZP = [], QP = 0, $P = !1, eF = !1, tF = null, nF = /* @__PURE__ */ new Set(), rF = "", iF = null, aF = 0, oF = null, sF = !1, cF = null;
+function lF() {
+ if (!UP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return UP;
}
-function Cde(e) {
- return WP.add(e), () => {
- WP.delete(e);
+function xde(e) {
+ return KP.add(e), () => {
+ KP.delete(e);
};
}
-function wde() {
- for (let e of [...WP]) e();
+function Sde() {
+ for (let e of [...KP]) e();
}
-function cF() {
- (0, Rt.flushSync)(wde);
+function uF() {
+ (0, Rt.flushSync)(Sde);
}
-function lF() {
- let e = nF ? rN(nF.id) : 0;
- return e ? `${tF} · ${aN(e)}` : tF;
+function dF() {
+ let e = iF ? aN(iF.id) : 0;
+ return e ? `${rF} · ${sN(e)}` : rF;
}
-function uF(e, t = null) {
- clearInterval(rF), rF = 0, e === null ? (UP = {
- ...UP,
+function fF(e, t = null) {
+ clearInterval(aF), aF = 0, e === null ? (GP = {
+ ...GP,
loading: null
- }, cF()) : (tF = e, nF = t, UP = {
- ...UP,
- loading: lF()
- }, cF(), rF = window.setInterval(() => {
- nF = YP[XP] ?? null, UP = {
- ...UP,
- loading: lF()
- }, cF();
+ }, uF()) : (rF = e, iF = t, GP = {
+ ...GP,
+ loading: dF()
+ }, uF(), aF = window.setInterval(() => {
+ iF = ZP[QP] ?? null, GP = {
+ ...GP,
+ loading: dF()
+ }, uF();
}, 500));
}
-function Tde(e) {
+function Cde(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), HP.track.append(t);
- let r = LN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), WP.track.append(t);
+ let r = zN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => BN(r),
+ release: () => HN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return eF.add(a), a;
+ return nF.add(a), a;
}
-function Ede(e, t) {
+function wde(e, t) {
return new Promise((n) => {
- e.release = rP(e.video, {
+ e.release = aP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- UP.open && vF(1);
+ GP.open && bF(1);
}
}), e.gone.then(n);
});
}
-function dF(e) {
- e && !e.disposed && (e.disposed = !0, eF.delete(e), e.leave(), e.release(), e.el.remove(), $P === e && ($P = null));
+function pF(e) {
+ e && !e.disposed && (e.disposed = !0, nF.delete(e), e.leave(), e.release(), e.el.remove(), tF === e && (tF = null));
}
-var fF = [
+var mF = [
"loadeddata",
"canplay",
"error"
];
-function Dde(e) {
+function Tde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), fF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), mF.forEach((e) => t.removeEventListener(e, i)), n());
};
- fF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Sde);
+ mF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, bde);
e.gone.then(i);
});
}
-function pF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = bde(e.videoWidth, e.videoHeight, n);
+function hF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = vde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var mF = () => HP?.track.querySelectorAll("video").forEach(pF);
-function Ode(e) {
- delete e.dataset.fit, e.readyState >= 1 ? pF(e) : e.addEventListener("loadedmetadata", () => pF(e), { once: !0 });
+var gF = () => WP?.track.querySelectorAll("video").forEach(hF);
+function Ede(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? hF(e) : e.addEventListener("loadedmetadata", () => hF(e), { once: !0 });
}
-function kde(e) {
- UP = {
- ...UP,
+function Dde(e) {
+ GP = {
+ ...GP,
wide: e
- }, cF(), mF();
+ }, uF(), gF();
}
-var hF = () => {
- let e = JP;
+var _F = () => {
+ let e = XP;
return H.fetchQuery({
- queryKey: pde(e, KP, qP),
- queryFn: () => _de(e, sF().sourceOffline),
+ queryKey: dde(e, JP, YP),
+ queryFn: () => hde(e, lF().sourceOffline),
staleTime: Infinity
});
};
-function Ade(e, t) {
+function Ode(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && HP && (HP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), iF = {
+ t && WP && (WP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), oF = {
video: e,
duration: n
- }, oF?.dispose(), oF = HP ? gN(HP.bar, t, { inset: 12 }) : null;
+ }, cF?.dispose(), cF = WP ? vN(WP.bar, t, { inset: 12 }) : null;
}
-function gF(e) {
- let t = iF?.duration();
- oF && t && (oF.prime(), oF.show(e, t));
+function vF(e) {
+ let t = oF?.duration();
+ cF && t && (cF.prime(), cF.show(e, t));
}
-async function _F(e = 0) {
- let t = YP[XP];
- if (!t || ZP) return;
- let n = GP;
- sF().route(t.id), ZP = !0, uF(e ? "切换中" : "加载中", t);
+async function yF(e = 0) {
+ let t = ZP[QP];
+ if (!t || $P) return;
+ let n = qP;
+ lF().route(t.id), $P = !0, fF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await zP(t.id).catch((e) => {
- if (!(e instanceof CP)) throw e;
- }), n !== GP) return;
- let i = $P, a = !!(e && i);
- a || dF(i);
- let o = Tde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Ode(o.video), await Ede(o, t), await Dde(o), o.disposed || (kde(xde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await VP(t.id).catch((e) => {
+ if (!(e instanceof TP)) throw e;
+ }), n !== qP) return;
+ let i = tF, a = !!(e && i);
+ a || pF(i);
+ let o = Cde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Ede(o.video), await wde(o, t), await Tde(o), o.disposed || (Dde(yde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), dF(i), o.el.style.transform = ""), o.disposed)) return;
- $P = o, r = null, o.video.play()?.catch(() => {}), UP = {
- ...UP,
+ })), await new Promise((e) => setTimeout(e, 210)), pF(i), o.el.style.transform = ""), o.disposed)) return;
+ tF = o, r = null, o.video.play()?.catch(() => {}), GP = {
+ ...GP,
idle: !1,
shown: {
item: t,
- index: XP,
- length: YP.length
+ index: QP,
+ length: ZP.length
}
- }, Ade(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), uF(null);
+ }, Ode(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), fF(null);
} catch {
- dF(r), n === GP && uF(null);
+ pF(r), n === qP && fF(null);
} finally {
- n === GP && (ZP = !1);
+ n === qP && ($P = !1);
}
}
-async function vF(e) {
- if (ZP || !UP.open) return;
- let t = GP;
- if (XP += e, uF("切换中", YP[XP] ?? null), XP >= YP.length - 3 && !QP) {
- QP = !0;
+async function bF(e) {
+ if ($P || !GP.open) return;
+ let t = qP;
+ if (QP += e, fF("切换中", ZP[QP] ?? null), QP >= ZP.length - 3 && !eF) {
+ eF = !0;
try {
- qP += 1;
- let e = await hF();
- t === GP && (YP = vde(YP, e));
+ YP += 1;
+ let e = await _F();
+ t === qP && (ZP = gde(ZP, e));
} catch {} finally {
- QP = !1;
+ eF = !1;
}
}
- t === GP && (XP >= YP.length && (XP = 0), XP < 0 && (XP = YP.length - 1), await _F(e));
+ t === qP && (QP >= ZP.length && (QP = 0), QP < 0 && (QP = ZP.length - 1), await yF(e));
}
-async function jde(e) {
- let t = ++GP;
- yF(), KP += 1, qP = 0, JP = mde(sF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), UP = {
- ...UP,
+async function kde(e) {
+ let t = ++qP;
+ xF(), JP += 1, YP = 0, XP = fde(lF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), GP = {
+ ...GP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), uF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), fF("加载内容");
try {
- let n = await hF();
+ let n = await _F();
if (e && !n.some((t) => t.id === e)) {
- let t = await zP(e).catch((e) => {
- if (e instanceof CP) return null;
+ let t = await VP(e).catch((e) => {
+ if (e instanceof TP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== GP) return;
- if (YP = n, !YP.length) {
- bF(), sF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== qP) return;
+ if (ZP = n, !ZP.length) {
+ SF(), lF().warn("当前筛选下没有可直接播放的内容");
return;
}
- XP = Math.max(0, YP.findIndex((t) => t.id === e)), await _F();
+ QP = Math.max(0, ZP.findIndex((t) => t.id === e)), await yF();
} catch {
- if (t !== GP) return;
- uF(null), bF();
+ if (t !== qP) return;
+ fF(null), SF();
}
}
-function yF() {
- clearInterval(rF), rF = 0, EF(), wF = null, iF = null, aF = !1, oF?.dispose(), oF = null, [...eF].forEach(dF), ZP = !1;
+function xF() {
+ clearInterval(aF), aF = 0, OF(), EF = null, oF = null, sF = !1, cF?.dispose(), cF = null, [...nF].forEach(pF), $P = !1;
}
-function bF() {
- UP.open && (GP++, yF(), UP = BP, document.body.removeAttribute("data-immerse-open"), cF(), sF().closed());
+function SF() {
+ GP.open && (qP++, xF(), GP = HP, document.body.removeAttribute("data-immerse-open"), uF(), lF().closed());
}
-var xF = 0, SF = null, CF = 0, wF = null, TF = 0;
-function EF() {
- clearTimeout(xF), xF = 0, SF = null;
+var CF = 0, wF = null, TF = 0, EF = null, DF = 0;
+function OF() {
+ clearTimeout(CF), CF = 0, wF = null;
}
-function Mde(e) {
- let t = $P?.video;
+function Ade(e) {
+ let t = tF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- SF && SF.side === n && r - SF.at <= 280 ? (EF(), aP(t, sF().seekSeconds() * n)) : (xF && (clearTimeout(xF), xF = 0, iP(t)), SF = {
+ wF && wF.side === n && r - wF.at <= 280 ? (OF(), sP(t, lF().seekSeconds() * n)) : (CF && (clearTimeout(CF), CF = 0, oP(t)), wF = {
side: n,
at: r
- }, xF = window.setTimeout(() => {
- xF = 0, SF = null, UP.open && iP($P?.video);
+ }, CF = window.setTimeout(() => {
+ CF = 0, wF = null, GP.open && oP(tF?.video);
}, 280));
}
-function Nde() {
- Date.now() < CF || iP($P?.video);
+function jde() {
+ Date.now() < TF || oP(tF?.video);
}
-var DF = (e) => HP?.bar.toggleAttribute("data-scrubbing", e);
-function OF(e) {
- HP && (HP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var kF = (e) => WP?.bar.toggleAttribute("data-scrubbing", e);
+function AF(e) {
+ WP && (WP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function kF(e) {
+function jF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- wF = null;
+ EF = null;
return;
}
- let n = $P?.video;
- wF = {
+ let n = tF?.video;
+ EF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function AF(e) {
- if (!wF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - wF.x, n = e.touches[0].clientY - wF.y;
- if (!wF.axis) {
+function MF(e) {
+ if (!EF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - EF.x, n = e.touches[0].clientY - EF.y;
+ if (!EF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- wF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", wF.axis === "x" && DF(!0);
+ EF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", EF.axis === "x" && kF(!0);
}
- if (wF.axis !== "x") return;
- let r = $P?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), wF.to = Math.min(i, Math.max(0, wF.from + t / window.innerWidth * i)), OF(wF.to / i), gF(wF.to / i));
+ if (EF.axis !== "x") return;
+ let r = tF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), EF.to = Math.min(i, Math.max(0, EF.from + t / window.innerWidth * i)), AF(EF.to / i), vF(EF.to / i));
}
-function jF(e) {
- if (!wF) return;
- let t = wF;
- if (wF = null, CF = Date.now() + 700, DF(!1), oF?.hide(), t.axis === "x") {
- let e = $P?.video;
+function NF(e) {
+ if (!EF) return;
+ let t = EF;
+ if (EF = null, TF = Date.now() + 700, kF(!1), cF?.hide(), t.axis === "x") {
+ let e = tF?.video;
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 ? (EF(), vF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Mde(n.clientX));
+ Math.abs(i) > 60 ? (OF(), bF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Ade(n.clientX));
}
-function MF() {
- wF = null, DF(!1), oF?.hide();
+function PF() {
+ EF = null, kF(!1), cF?.hide();
}
-function NF(e) {
+function FF(e) {
let t = Date.now();
- t - TF < 260 || (TF = t, vF(e.deltaY > 0 ? 1 : -1));
+ t - DF < 260 || (DF = t, bF(e.deltaY > 0 ? 1 : -1));
}
-function PF(e) {
- let t = HP.bar.getBoundingClientRect();
+function IF(e) {
+ let t = WP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Pde(e) {
- iF?.duration() && (aF = !0, DF(!0), e.currentTarget.setPointerCapture(e.pointerId), OF(PF(e)), gF(PF(e)), e.preventDefault());
+function Mde(e) {
+ oF?.duration() && (sF = !0, kF(!0), e.currentTarget.setPointerCapture(e.pointerId), AF(IF(e)), vF(IF(e)), e.preventDefault());
}
-function Fde(e) {
- aF && OF(PF(e)), gF(PF(e));
+function Nde(e) {
+ sF && AF(IF(e)), vF(IF(e));
}
-function Ide(e) {
- if (e.pointerType !== "mouse" && oF?.hide(), !aF) return;
- aF = !1, DF(!1);
- let t = iF?.duration();
- iF && t && (iF.video.currentTime = t * PF(e));
+function Pde(e) {
+ if (e.pointerType !== "mouse" && cF?.hide(), !sF) return;
+ sF = !1, kF(!1);
+ let t = oF?.duration();
+ oF && t && (oF.video.currentTime = t * IF(e));
}
-function Lde() {
- aF = !1, DF(!1), oF?.hide();
+function Fde() {
+ sF = !1, kF(!1), cF?.hide();
}
-function Rde() {
- aF || oF?.hide();
+function Ide() {
+ sF || cF?.hide();
}
-async function FF(e, t) {
- let n = await V(vP, {
+async function LF(e, t) {
+ let n = await V(bP, {
id: e,
kind: t
- }), r = H.getQueryData(hP(e));
- if (!r) return uP(e, {
+ }), r = H.getQueryData(_P(e));
+ if (!r) return fP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35063,7 +35063,7 @@ async function FF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(hP(e), i), uP(e, {
+ return H.setQueryData(_P(e), i), fP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35071,7 +35071,7 @@ async function FF(e, t) {
o_count: i.o_count
}), n;
}
-var zde = [
+var Lde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35088,31 +35088,31 @@ var zde = [
label: "记一次高潮"
}
];
-function IF(e) {
+function RF(e) {
return Ft({
- queryKey: hP(e ?? 0),
- queryFn: ({ signal: t }) => wP(e, t),
+ queryKey: _P(e ?? 0),
+ queryFn: ({ signal: t }) => EP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Bde({ kind: e, glyph: t, label: n, id: r }) {
- let i = IF(r), a = It({
+function Rde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = RF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(hP(t))?.feedback || null;
+ let n = H.getQueryData(_P(t))?.feedback || null;
return {
- result: await FF(t, e),
+ result: await LF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- sF().toast(RP(e, t), { undo: async () => {
- e === "o" ? await FF(r, "o-undo") : (t.feedback && await FF(r, t.feedback), n && await FF(r, n));
+ lF().toast(BP(e, t), { undo: async () => {
+ e === "o" ? await LF(r, "o-undo") : (t.feedback && await LF(r, t.feedback), n && await LF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- vF(1);
+ bF(1);
}, 260);
},
- onError: (e) => sF().failure("更新反馈", e)
+ onError: (e) => lF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35143,11 +35143,11 @@ function Bde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Vde({ shown: e }) {
- let t = e?.item ?? null, n = IF(t?.id ?? null), r = n ? yde(n) : null, i = sF(), a = (e) => {
- e.preventDefault(), n && (bF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function zde({ shown: e }) {
+ let t = e?.item ?? null, n = RF(t?.id ?? null), r = n ? _de(n) : null, i = lF(), a = (e) => {
+ e.preventDefault(), n && (SF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (bF(), i.openItem(t.id));
+ t && (SF(), i.openItem(t.id));
}, s = r ? _o(r.name, r.ref, Za(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35176,18 +35176,18 @@ function Vde({ shown: e }) {
})]
});
}
-var Hde = { __html: Bs("媒体加载中") };
-function Ude({ view: e }) {
+var Bde = { __html: Bs("媒体加载中") };
+function Vde({ 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 HP = {
+ return WP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", kF, { passive: !0 }), e.addEventListener("touchmove", AF, { passive: !1 }), e.addEventListener("touchend", jF, { passive: !1 }), e.addEventListener("touchcancel", MF, { passive: !0 }), e.addEventListener("wheel", NF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", kF), e.removeEventListener("touchmove", AF), e.removeEventListener("touchend", jF), e.removeEventListener("touchcancel", MF), e.removeEventListener("wheel", NF), HP = null;
+ }, e.addEventListener("touchstart", jF, { passive: !0 }), e.addEventListener("touchmove", MF, { passive: !1 }), e.addEventListener("touchend", NF, { passive: !1 }), e.addEventListener("touchcancel", PF, { passive: !0 }), e.addEventListener("wheel", FF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", jF), e.removeEventListener("touchmove", MF), e.removeEventListener("touchend", NF), e.removeEventListener("touchcancel", PF), e.removeEventListener("wheel", FF), WP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35204,10 +35204,10 @@ function Ude({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Nde
+ onClick: jde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: zde.map((e) => /* @__PURE__ */ (0, I.jsx)(Bde, {
+ children: Lde.map((e) => /* @__PURE__ */ (0, I.jsx)(Rde, {
...e,
id: a
}, e.kind))
@@ -35220,7 +35220,7 @@ function Ude({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Hde
+ dangerouslySetInnerHTML: Bde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35228,7 +35228,7 @@ function Ude({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: bF,
+ onClick: SF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35237,42 +35237,42 @@ function Ude({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Pde,
- onPointerMove: Fde,
- onPointerUp: Ide,
- onPointerCancel: Lde,
- onPointerLeave: Rde,
+ onPointerDown: Mde,
+ onPointerMove: Nde,
+ onPointerUp: Pde,
+ onPointerCancel: Fde,
+ onPointerLeave: Ide,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Vde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(zde, { shown: e.shown })
]
});
}
-var Wde = {
- open: jde,
- close: bF,
- isOpen: () => UP.open,
- activeVideo: () => UP.open ? $P?.video ?? null : null
+var Hde = {
+ open: kde,
+ close: SF,
+ isOpen: () => GP.open,
+ activeVideo: () => GP.open ? tF?.video ?? null : null
};
-function Gde(e) {
- if (!UP.open) return;
+function Ude(e) {
+ if (!GP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && vF(1), e.key === "ArrowUp" && vF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && bF(1), e.key === "ArrowUp" && bF(-1));
}
-function Kde(e) {
- let t = !VP;
- return VP = e, t && (document.addEventListener("keydown", Gde), addEventListener("resize", () => {
- UP.open && mF();
+function Wde(e) {
+ let t = !UP;
+ return UP = e, t && (document.addEventListener("keydown", Ude), addEventListener("resize", () => {
+ GP.open && gF();
}), addEventListener("pagehide", () => {
- eF.forEach((e) => BN(e.session));
- })), Wde;
+ nF.forEach((e) => HN(e.session));
+ })), Hde;
}
-function qde() {
- let e = (0, F.useSyncExternalStore)(Cde, () => UP);
- return VP ? /* @__PURE__ */ (0, I.jsx)(Ude, { view: e }) : null;
+function Gde() {
+ let e = (0, F.useSyncExternalStore)(xde, () => GP);
+ return UP ? /* @__PURE__ */ (0, I.jsx)(Vde, { view: e }) : null;
}
// src/manage-header.ts
-var LF = {
+var zF = {
...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35280,47 +35280,47 @@ var LF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Jde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Yde(e) {
- let t = LF[e.path] ? "cleanup" : e.section;
+}, Kde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function qde(e) {
+ let t = zF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Xde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function RF(e) {
+var Jde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function BF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = LF[e.path] ?? "";
+ let n = zF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Yde(e),
+ pressed: qde(e),
crumb: n,
- compact: Jde.has(e.path) || e.section === "configuration",
+ compact: Kde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Xde(e.trash),
+ text: Jde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var zF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var VF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), BF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${zF(e)}"/></svg>`, VF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Zde(e) {
- let t = RF(e);
+})[e]), HF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${VF(e)}"/></svg>`, UF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function Yde(e) {
+ let t = BF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${zF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${BF(r)}<span>${zF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${BF("chevron-right")}</li><li aria-current="true"><span>${zF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? VF : `<span data-lede-text="">${zF(t.lede.text)}</span>${t.lede.total ? Qde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${zF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${VF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${HF(r)}<span>${VF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${HF("chevron-right")}</li><li aria-current="true"><span>${VF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? UF : `<span data-lede-text="">${VF(t.lede.text)}</span>${t.lede.total ? Xde : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${VF(t.title)}</h2>` + i;
}
-var Qde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Xde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function HF({ name: e }) {
+function WF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35329,7 +35329,7 @@ function HF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function $de({ name: e }) {
+function Zde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35337,88 +35337,88 @@ function $de({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var efe = (e, t) => {
+var Qde = (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;
-}, tfe = (e, t) => ({
+}, $de = (e, t) => ({
classGroupId: e,
validator: t
-}), UF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), GF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), WF = "-", GF = [], nfe = "arbitrary..", rfe = (e) => {
- let t = afe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), KF = "-", qF = [], efe = "arbitrary..", tfe = (e) => {
+ let t = rfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return ife(e);
- let n = e.split(WF);
- return KF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return nfe(e);
+ let n = e.split(KF);
+ return JF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? efe(i, t) : t : i || GF;
+ return t ? i ? Qde(i, t) : t : i || qF;
}
- return n[e] || GF;
+ return n[e] || qF;
}
};
-}, KF = (e, t, n) => {
+}, JF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = KF(e, t + 1, i);
+ let n = JF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(WF) : e.slice(t).join(WF), s = a.length;
+ let o = t === 0 ? e.join(KF) : e.slice(t).join(KF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, ife = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, nfe = (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 ? nfe + r : void 0;
-})(), afe = (e) => {
+ return r ? efe + r : void 0;
+})(), rfe = (e) => {
let { theme: t, classGroups: n } = e;
- return ofe(n, t);
-}, ofe = (e, t) => {
- let n = UF();
+ return ife(n, t);
+}, ife = (e, t) => {
+ let n = GF();
for (let r in e) {
let i = e[r];
- qF(i, n, r, t);
+ YF(i, n, r, t);
}
return n;
-}, qF = (e, t, n, r) => {
+}, YF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- sfe(i, t, n, r);
+ afe(i, t, n, r);
}
-}, sfe = (e, t, n, r) => {
- typeof e == "string" ? cfe(e, t, n) : typeof e == "function" ? lfe(e, t, n, r) : ufe(e, t, n, r);
-}, cfe = (e, t, n) => {
- let r = e === "" ? t : JF(t, e);
+}, afe = (e, t, n, r) => {
+ typeof e == "string" ? ofe(e, t, n) : typeof e == "function" ? sfe(e, t, n, r) : cfe(e, t, n, r);
+}, ofe = (e, t, n) => {
+ let r = e === "" ? t : XF(t, e);
r.classGroupId = n;
-}, lfe = (e, t, n, r) => {
- dfe(e) ? qF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(tfe(n, e)));
-}, ufe = (e, t, n, r) => {
+}, sfe = (e, t, n, r) => {
+ lfe(e) ? YF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push($de(n, e)));
+}, cfe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- qF(o, JF(t, a), n, r);
+ YF(o, XF(t, a), n, r);
}
-}, JF = (e, t) => {
- let n = e, r = t.split(WF), i = r.length;
+}, XF = (e, t) => {
+ let n = e, r = t.split(KF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = UF(), n.nextPart.set(t, i)), n = i;
+ i || (i = GF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, dfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ffe = (e) => {
+}, lfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ufe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35436,19 +35436,19 @@ var efe = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, YF = "!", XF = ":", pfe = [], ZF = (e, t, n, r, i) => ({
+}, ZF = "!", QF = ":", dfe = [], $F = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), mfe = (e) => {
+}), ffe = (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 === XF) {
+ if (o === QF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35460,13 +35460,13 @@ var efe = (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(YF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(YF) && (c = s.slice(1), l = !0);
+ s.endsWith(ZF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ZF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return ZF(t, l, c, u);
+ return $F(t, l, c, u);
};
if (t) {
- let e = t + XF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ZF(pfe, !1, t, void 0, !0);
+ let e = t + QF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : $F(dfe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35476,7 +35476,7 @@ var efe = (e, t) => {
});
}
return r;
-}, hfe = (e) => {
+}, pfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35488,18 +35488,18 @@ var efe = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, gfe = (e) => ({
- cache: ffe(e.cacheSize),
- parseClassName: mfe(e),
- sortModifiers: hfe(e),
- postfixLookupClassGroupIds: _fe(e),
- ...rfe(e)
-}), _fe = (e) => {
+}, mfe = (e) => ({
+ cache: ufe(e.cacheSize),
+ parseClassName: ffe(e),
+ sortModifiers: pfe(e),
+ postfixLookupClassGroupIds: hfe(e),
+ ...tfe(e)
+}), hfe = (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;
-}, vfe = /\s+/, yfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(vfe), l = "";
+}, gfe = /\s+/, _fe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(gfe), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35519,7 +35519,7 @@ var efe = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + YF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + ZF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35530,34 +35530,34 @@ var efe = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, bfe = (...e) => {
+}, vfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = QF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = eI(n)) && (i && (i += " "), i += r);
return i;
-}, QF = (e) => {
+}, eI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = QF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = eI(e[r])) && (n && (n += " "), n += t);
return n;
-}, $F = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = gfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, tI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = mfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = yfe(e, n);
+ let a = _fe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(bfe(...e));
-}, xfe = [], eI = (e) => {
- let t = (t) => t[e] || xfe;
+ return a = o, (...e) => a(vfe(...e));
+}, yfe = [], nI = (e) => {
+ let t = (t) => t[e] || yfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, tI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Sfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Cfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wfe = /\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$/, Tfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Efe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rI = (e) => Sfe.test(e), iI = (e) => !!e && !Number.isNaN(Number(e)), aI = (e) => !!e && Number.isInteger(Number(e)), oI = (e) => e.endsWith("%") && iI(e.slice(0, -1)), sI = (e) => Cfe.test(e), cI = () => !0, Ofe = (e) => wfe.test(e) && !Tfe.test(e), lI = () => !1, kfe = (e) => Efe.test(e), Afe = (e) => Dfe.test(e), jfe = (e) => !uI(e) && !hI(e), Mfe = (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)), Nfe = (e) => yI(e, CI, lI), uI = (e) => tI.test(e), dI = (e) => yI(e, wI, Ofe), fI = (e) => yI(e, Vfe, iI), Pfe = (e) => yI(e, EI, cI), Ffe = (e) => yI(e, TI, lI), pI = (e) => yI(e, xI, lI), Ife = (e) => yI(e, SI, Afe), mI = (e) => yI(e, DI, kfe), hI = (e) => nI.test(e), gI = (e) => bI(e, wI), Lfe = (e) => bI(e, TI), _I = (e) => bI(e, xI), Rfe = (e) => bI(e, CI), zfe = (e) => bI(e, SI), vI = (e) => bI(e, DI, !0), Bfe = (e) => bI(e, EI, !0), yI = (e, t, n) => {
- let r = tI.exec(e);
+}, rI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, iI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, xfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Sfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Cfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, wfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, aI = (e) => bfe.test(e), oI = (e) => !!e && !Number.isNaN(Number(e)), sI = (e) => !!e && Number.isInteger(Number(e)), cI = (e) => e.endsWith("%") && oI(e.slice(0, -1)), lI = (e) => xfe.test(e), uI = () => !0, Efe = (e) => Sfe.test(e) && !Cfe.test(e), dI = () => !1, Dfe = (e) => wfe.test(e), Ofe = (e) => Tfe.test(e), kfe = (e) => !fI(e) && !_I(e), Afe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), jfe = (e) => xI(e, TI, dI), fI = (e) => rI.test(e), pI = (e) => xI(e, EI, Efe), mI = (e) => xI(e, zfe, oI), Mfe = (e) => xI(e, OI, uI), Nfe = (e) => xI(e, DI, dI), hI = (e) => xI(e, CI, dI), Pfe = (e) => xI(e, wI, Ofe), gI = (e) => xI(e, kI, Dfe), _I = (e) => iI.test(e), vI = (e) => SI(e, EI), Ffe = (e) => SI(e, DI), yI = (e) => SI(e, CI), Ife = (e) => SI(e, TI), Lfe = (e) => SI(e, wI), bI = (e) => SI(e, kI, !0), Rfe = (e) => SI(e, OI, !0), xI = (e, t, n) => {
+ let r = rI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, bI = (e, t, n = !1) => {
- let r = nI.exec(e);
+}, SI = (e, t, n = !1) => {
+ let r = iI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, xI = (e) => e === "position" || e === "percentage", SI = (e) => e === "image" || e === "url", CI = (e) => e === "length" || e === "size" || e === "bg-size", wI = (e) => e === "length", Vfe = (e) => e === "number", TI = (e) => e === "family-name", EI = (e) => e === "number" || e === "weight", DI = (e) => e === "shadow", OI = () => {
- let e = eI("color"), t = eI("font"), n = eI("text"), r = eI("font-weight"), i = eI("tracking"), a = eI("leading"), o = eI("breakpoint"), s = eI("container"), c = eI("spacing"), l = eI("radius"), u = eI("shadow"), d = eI("inset-shadow"), f = eI("text-shadow"), p = eI("drop-shadow"), m = eI("blur"), h = eI("perspective"), g = eI("aspect"), _ = eI("ease"), v = eI("animate"), y = () => [
+}, CI = (e) => e === "position" || e === "percentage", wI = (e) => e === "image" || e === "url", TI = (e) => e === "length" || e === "size" || e === "bg-size", EI = (e) => e === "length", zfe = (e) => e === "number", DI = (e) => e === "family-name", OI = (e) => e === "number" || e === "weight", kI = (e) => e === "shadow", AI = () => {
+ let e = nI("color"), t = nI("font"), n = nI("text"), r = nI("font-weight"), i = nI("tracking"), a = nI("leading"), o = nI("breakpoint"), s = nI("container"), c = nI("spacing"), l = nI("radius"), u = nI("shadow"), d = nI("inset-shadow"), f = nI("text-shadow"), p = nI("drop-shadow"), m = nI("blur"), h = nI("perspective"), g = nI("aspect"), _ = nI("ease"), v = nI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35582,8 +35582,8 @@ var efe = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- hI,
- uI
+ _I,
+ fI
], S = () => [
"auto",
"hidden",
@@ -35595,43 +35595,43 @@ var efe = (e, t) => {
"contain",
"none"
], w = () => [
- hI,
- uI,
+ _I,
+ fI,
c
], T = () => [
- rI,
+ aI,
"full",
"auto",
...w()
], E = () => [
- aI,
+ sI,
"none",
"subgrid",
- hI,
- uI
+ _I,
+ fI
], D = () => [
"auto",
{ span: [
"full",
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
] },
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
], O = () => [
- aI,
+ sI,
"auto",
- hI,
- uI
+ _I,
+ fI
], k = () => [
"auto",
"min",
"max",
"fr",
- hI,
- uI
+ _I,
+ fI
], A = () => [
"start",
"end",
@@ -35651,7 +35651,7 @@ var efe = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- rI,
+ aI,
"auto",
"full",
"dvw",
@@ -35666,7 +35666,7 @@ var efe = (e, t) => {
...w()
], N = () => [
s,
- rI,
+ aI,
"screen",
"full",
"dvw",
@@ -35677,7 +35677,7 @@ var efe = (e, t) => {
"fit",
...w()
], te = () => [
- rI,
+ aI,
"screen",
"full",
"lh",
@@ -35690,13 +35690,13 @@ var efe = (e, t) => {
...w()
], P = () => [
e,
- hI,
- uI
+ _I,
+ fI
], ne = () => [
...b(),
- _I,
- pI,
- { position: [hI, uI] }
+ yI,
+ hI,
+ { position: [_I, fI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35707,25 +35707,25 @@ var efe = (e, t) => {
"auto",
"cover",
"contain",
- Rfe,
- Nfe,
- { size: [hI, uI] }
+ Ife,
+ jfe,
+ { size: [_I, fI] }
], I = () => [
- oI,
- gI,
- dI
+ cI,
+ vI,
+ pI
], ie = () => [
"",
"none",
"full",
l,
- hI,
- uI
+ _I,
+ fI
], ae = () => [
"",
- iI,
- gI,
- dI
+ oI,
+ vI,
+ pI
], oe = () => [
"solid",
"dashed",
@@ -35749,32 +35749,32 @@ var efe = (e, t) => {
"color",
"luminosity"
], ce = () => [
- iI,
oI,
- _I,
- pI
+ cI,
+ yI,
+ hI
], le = () => [
"",
"none",
m,
- hI,
- uI
+ _I,
+ fI
], ue = () => [
"none",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
], de = () => [
"none",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
], fe = () => [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
], pe = () => [
- rI,
+ aI,
"full",
...w()
];
@@ -35788,17 +35788,17 @@ var efe = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [sI],
- breakpoint: [sI],
- color: [cI],
- container: [sI],
- "drop-shadow": [sI],
+ blur: [lI],
+ breakpoint: [lI],
+ color: [uI],
+ container: [lI],
+ "drop-shadow": [lI],
ease: [
"in",
"out",
"in-out"
],
- font: [jfe],
+ font: [kfe],
"font-weight": [
"thin",
"extralight",
@@ -35810,7 +35810,7 @@ var efe = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [sI],
+ "inset-shadow": [lI],
leading: [
"none",
"tight",
@@ -35827,11 +35827,11 @@ var efe = (e, t) => {
"distant",
"none"
],
- radius: [sI],
- shadow: [sI],
- spacing: ["px", iI],
- text: [sI],
- "text-shadow": [sI],
+ radius: [lI],
+ shadow: [lI],
+ spacing: ["px", oI],
+ text: [lI],
+ "text-shadow": [lI],
tracking: [
"tighter",
"tight",
@@ -35845,9 +35845,9 @@ var efe = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- rI,
- uI,
- hI,
+ aI,
+ fI,
+ _I,
g
] }],
container: ["container"],
@@ -35855,15 +35855,15 @@ var efe = (e, t) => {
"",
"normal",
"size",
- hI,
- uI
+ _I,
+ fI
] }],
- "container-named": [Mfe],
+ "container-named": [Afe],
columns: [{ columns: [
- iI,
+ oI,
"auto",
- uI,
- hI,
+ fI,
+ _I,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35960,13 +35960,13 @@ var efe = (e, t) => {
"collapse"
],
z: [{ z: [
- aI,
+ sI,
"auto",
- hI,
- uI
+ _I,
+ fI
] }],
basis: [{ basis: [
- rI,
+ aI,
"full",
"auto",
s,
@@ -35984,32 +35984,32 @@ var efe = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- iI,
- rI,
+ oI,
+ aI,
"auto",
"initial",
"none",
- uI
+ fI
] }],
grow: [{ grow: [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
shrink: [{ shrink: [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
order: [{ order: [
- aI,
+ sI,
"first",
"last",
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36116,15 +36116,15 @@ var efe = (e, t) => {
"font-size": [{ text: [
"base",
n,
- gI,
- dI
+ vI,
+ pI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Bfe,
- Pfe
+ Rfe,
+ Mfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36136,15 +36136,15 @@ var efe = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- oI,
- uI
+ cI,
+ fI
] }],
"font-family": [{ font: [
- Lfe,
Ffe,
+ Nfe,
t
] }],
- "font-features": [{ "font-features": [uI] }],
+ "font-features": [{ "font-features": [fI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36153,14 +36153,14 @@ var efe = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- hI,
- uI
+ _I,
+ fI
] }],
"line-clamp": [{ "line-clamp": [
- iI,
+ oI,
"none",
- hI,
- fI
+ _I,
+ mI
] }],
leading: [{ leading: [
"none",
@@ -36169,16 +36169,16 @@ var efe = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"text-alignment": [{ text: [
"left",
@@ -36198,18 +36198,18 @@ var efe = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- iI,
+ oI,
"from-font",
"auto",
- hI,
- dI
+ _I,
+ pI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- iI,
+ oI,
"auto",
- hI,
- uI
+ _I,
+ fI
] }],
"text-transform": [
"uppercase",
@@ -36230,9 +36230,9 @@ var efe = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36243,8 +36243,8 @@ var efe = (e, t) => {
"text-bottom",
"sub",
"super",
- hI,
- uI
+ _I,
+ fI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36272,8 +36272,8 @@ var efe = (e, t) => {
] }],
content: [{ content: [
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36308,24 +36308,24 @@ var efe = (e, t) => {
"l",
"tl"
] },
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
],
radial: [
"",
- hI,
- uI
+ _I,
+ fI
],
conic: [
"",
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
]
},
- zfe,
- Ife
+ Lfe,
+ Pfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36392,15 +36392,15 @@ var efe = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"outline-w": [{ outline: [
"",
- iI,
- gI,
- dI
+ oI,
+ vI,
+ pI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36408,35 +36408,35 @@ var efe = (e, t) => {
"inner",
"none",
u,
- vI,
- mI
+ bI,
+ gI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- vI,
- mI
+ bI,
+ gI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [iI, dI] }],
+ "ring-offset-w": [{ "ring-offset": [oI, pI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- vI,
- mI
+ bI,
+ gI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36458,7 +36458,7 @@ var efe = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [iI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [oI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36487,7 +36487,7 @@ var efe = (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": [hI, uI] }],
+ "mask-image-radial": [{ "mask-radial": [_I, fI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36498,7 +36498,7 @@ var efe = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [iI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [oI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36522,111 +36522,111 @@ var efe = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- hI,
- uI
+ _I,
+ fI
] }],
filter: [{ filter: [
"",
"none",
- hI,
- uI
+ _I,
+ fI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
contrast: [{ contrast: [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- vI,
- mI
+ bI,
+ gI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"hue-rotate": [{ "hue-rotate": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
invert: [{ invert: [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
saturate: [{ saturate: [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
sepia: [{ sepia: [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36642,39 +36642,39 @@ var efe = (e, t) => {
"shadow",
"transform",
"none",
- hI,
- uI
+ _I,
+ fI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- iI,
+ oI,
"initial",
- hI,
- uI
+ _I,
+ fI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- hI,
- uI
+ _I,
+ fI
] }],
delay: [{ delay: [
- iI,
- hI,
- uI
+ oI,
+ _I,
+ fI
] }],
animate: [{ animate: [
"none",
v,
- hI,
- uI
+ _I,
+ fI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- hI,
- uI
+ _I,
+ fI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36690,8 +36690,8 @@ var efe = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- hI,
- uI,
+ _I,
+ fI,
"",
"none",
"gpu",
@@ -36705,9 +36705,9 @@ var efe = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- aI,
- hI,
- uI
+ sI,
+ _I,
+ fI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36757,8 +36757,8 @@ var efe = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- hI,
- uI
+ _I,
+ fI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36844,15 +36844,15 @@ var efe = (e, t) => {
"scroll",
"contents",
"transform",
- hI,
- uI
+ _I,
+ fI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- iI,
- gI,
- dI,
- fI
+ oI,
+ vI,
+ pI,
+ mI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37110,16 +37110,16 @@ var efe = (e, t) => {
"selection"
]
};
-}, Hfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (kI(e, "cacheSize", t), kI(e, "prefix", n), kI(e, "experimentalParseClassName", r), AI(e.theme, a.theme), AI(e.classGroups, a.classGroups), AI(e.conflictingClassGroups, a.conflictingClassGroups), AI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), kI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), kI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), jI(e.theme, i.theme), jI(e.classGroups, i.classGroups), jI(e.conflictingClassGroups, i.conflictingClassGroups), jI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), MI(e, i, "postfixLookupClassGroups"), MI(e, i, "orderSensitiveModifiers"), e), kI = (e, t, n) => {
+}, Bfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (jI(e, "cacheSize", t), jI(e, "prefix", n), jI(e, "experimentalParseClassName", r), MI(e.theme, a.theme), MI(e.classGroups, a.classGroups), MI(e.conflictingClassGroups, a.conflictingClassGroups), MI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), jI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), jI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), NI(e.theme, i.theme), NI(e.classGroups, i.classGroups), NI(e.conflictingClassGroups, i.conflictingClassGroups), NI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), PI(e, i, "postfixLookupClassGroups"), PI(e, i, "orderSensitiveModifiers"), e), jI = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, AI = (e, t) => {
- if (t) for (let n in t) kI(e, n, t[n]);
-}, jI = (e, t) => {
- if (t) for (let n in t) MI(e, t, n);
-}, MI = (e, t, n) => {
+}, MI = (e, t) => {
+ if (t) for (let n in t) jI(e, n, t[n]);
+}, NI = (e, t) => {
+ if (t) for (let n in t) PI(e, t, n);
+}, PI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Ufe = (e, ...t) => typeof e == "function" ? $F(OI, e, ...t) : $F(() => Hfe(OI(), e), ...t), Wfe = [
+}, Vfe = (e, ...t) => typeof e == "function" ? tI(AI, e, ...t) : tI(() => Bfe(AI(), e), ...t), Hfe = [
"large-title",
"display-1",
"display-2",
@@ -37133,17 +37133,17 @@ var efe = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Gfe = [
+], Ufe = [
"regular",
"medium",
"semibold",
"bold"
-], q = Ufe({ extend: { classGroups: { "font-size": [{ text: Wfe.flatMap((e) => Gfe.map((t) => `${e}-${t}`)) }] } } });
-function NI(e) {
+], q = Vfe({ extend: { classGroups: { "font-size": [{ text: Hfe.flatMap((e) => Ufe.map((t) => `${e}-${t}`)) }] } } });
+function FI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Kfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
+var Wfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, II = FI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37165,9 +37165,9 @@ var Kfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
gray: "text-text-primary"
}
});
-function FI({ children: e, className: t, ref: n, container: r, ...i }) {
+function LI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Kfe(() => {
+ Wfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37203,7 +37203,7 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", PI.radius[o.variant], PI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", II.radius[o.variant], II.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37220,37 +37220,37 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Rt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var II = null, LI = null, RI = /* @__PURE__ */ new Set();
-function qfe(e) {
- return RI.add(e), () => {
- RI.delete(e);
+var RI = null, zI = null, BI = /* @__PURE__ */ new Set();
+function Gfe(e) {
+ return BI.add(e), () => {
+ BI.delete(e);
};
}
-function Jfe() {
- for (let e of [...RI]) e();
+function Kfe() {
+ for (let e of [...BI]) e();
}
-var Yfe = { render(e) {
- LI = e, (0, Rt.flushSync)(Jfe);
+var qfe = { render(e) {
+ zI = e, (0, Rt.flushSync)(Kfe);
} };
-function Xfe(e) {
- return II = e, LI = null, Yfe;
+function Jfe(e) {
+ return RI = e, zI = null, qfe;
}
-function Zfe() {
- let e = (0, F.useSyncExternalStore)(qfe, () => LI);
- return II && e ? /* @__PURE__ */ (0, I.jsx)(Qfe, {
- host: II,
+function Yfe() {
+ let e = (0, F.useSyncExternalStore)(Gfe, () => zI);
+ return RI && e ? /* @__PURE__ */ (0, I.jsx)(Xfe, {
+ host: RI,
props: e
}) : null;
}
-function Qfe({ host: e, props: t }) {
- let n = RF(t);
+function Xfe({ host: e, props: t }) {
+ let n = BF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)($fe, {
+ /* @__PURE__ */ (0, I.jsx)(Zfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(epe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(Qfe, {
host: e,
label: n.crumb
}) : null,
@@ -37259,13 +37259,13 @@ function Qfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(tpe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)($fe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function $fe({ host: e, pressed: t, menu: n }) {
+function Zfe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37275,7 +37275,7 @@ function $fe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(FI, {
+ children: /* @__PURE__ */ (0, I.jsx)(LI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37289,13 +37289,13 @@ function $fe({ 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)(HF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function epe({ host: e, label: t }) {
+function Qfe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37305,20 +37305,20 @@ function epe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function tpe({ host: e, lede: t }) {
+function $fe({ 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: VF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(npe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: UF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(epe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37328,7 +37328,7 @@ function tpe({ host: e, lede: t }) {
}) : null] })
});
}
-function npe({ text: e }) {
+function epe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Js(t.current, e);
@@ -37338,29 +37338,29 @@ function npe({ text: e }) {
});
}
// src/core/text-lang.ts
-var rpe = /[぀-ヿㇰ-ㇿヲ-゚]/, ipe = /[㐀-鿿豈-﫿]/, ape = /[A-Za-z]/;
-function zI(e) {
+var tpe = /[぀-ヿㇰ-ㇿヲ-゚]/, npe = /[㐀-鿿豈-﫿]/, rpe = /[A-Za-z]/;
+function VI(e) {
let t = String(e ?? "");
- if (rpe.test(t)) return "ja";
- if (!ipe.test(t) && ape.test(t)) return "en";
+ if (tpe.test(t)) return "ja";
+ if (!npe.test(t) && rpe.test(t)) return "en";
}
-var ope = (e) => {
- let t = zI(e);
+var ipe = (e) => {
+ let t = VI(e);
return t ? ` lang="${t}"` : "";
-}, spe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, cpe = (e, t = e?.name) => {
+}, ape = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, ope = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(spe, "") : n;
-}, lpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), upe = (e) => {
+ return e?.is_jav ? n.replace(ape, "") : n;
+}, spe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), cpe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(lpe) || t[0] || "";
+ return t.find(spe) || t[0] || "";
};
-function BI(e, t = e?.name) {
- let n = cpe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function HI(e, t = e?.name) {
+ let n = ope(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 = upe(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 = cpe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37371,23 +37371,23 @@ function BI(e, t = e?.name) {
badges: f
};
}
-var VI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+var UI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = HI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function HI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+function WI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = HI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ope(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ipe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var UI = "/api/tasks", WI = ["tasks"];
-function dpe(e, t) {
+var GI = "/api/tasks", KI = ["tasks"];
+function lpe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37398,7 +37398,7 @@ function dpe(e, t) {
settled: n - r
};
}
-function fpe(e) {
+function upe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37409,11 +37409,11 @@ function fpe(e) {
}
return [...t.values()];
}
-var ppe = (e, t) => B(`${UI}?${new URLSearchParams({
+var dpe = (e, t) => B(`${GI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function mpe(...e) {
+function fpe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37421,26 +37421,26 @@ function mpe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var hpe = 2e3, gpe = 1e4, GI = (e) => e?.running?.length ? hpe : gpe, KI = (e) => B(UI, e), _pe = (e, t, n) => V(`${UI}/${e}/control`, { action: t }, "POST", n);
-async function vpe(e) {
+var ppe = 2e3, mpe = 1e4, qI = (e) => e?.running?.length ? ppe : mpe, JI = (e) => B(GI, e), hpe = (e, t, n) => V(`${GI}/${e}/control`, { action: t }, "POST", n);
+async function gpe(e) {
await H.fetchQuery({
- queryKey: WI,
- queryFn: () => KI(e)
+ queryKey: KI,
+ queryFn: () => JI(e)
});
}
-var ype = {
+var _pe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, bpe = {
+}, vpe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, xpe = (e) => bpe[e] || e, qI = {
+}, ype = (e) => vpe[e] || e, YI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37517,7 +37517,7 @@ var ype = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Spe = [
+}, bpe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37539,14 +37539,14 @@ var ype = {
"paused_count",
"miss",
"incomplete"
-], Cpe = ["face_match_unavailable"], JI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Cpe.some((t) => e.result_summary?.[t] === !0) || Spe.some((t) => Number(e.result_summary?.[t]) > 0);
-function wpe(e) {
+], xpe = ["face_match_unavailable"], XI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || xpe.some((t) => e.result_summary?.[t] === !0) || bpe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Spe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var YI = /* @__PURE__ */ new Set(["library-processing"]);
-function Tpe(e, t = !0) {
- if (!JI(e) && e.status !== "failed" || YI.has(e.task_key) && !t) return null;
+var ZI = /* @__PURE__ */ new Set(["library-processing"]);
+function Cpe(e, t = !0) {
+ if (!XI(e) && e.status !== "failed" || ZI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37564,19 +37564,19 @@ function Tpe(e, t = !0) {
label: n[1]
} : null;
}
-function Epe(e) {
+function wpe(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 Dpe(e) {
+function Tpe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) YI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) ZI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function Ope(e) {
+function Epe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37585,7 +37585,7 @@ function Ope(e) {
}
return t;
}
-function kpe(e, t) {
+function Dpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37607,12 +37607,12 @@ function kpe(e, t) {
}
return n;
}
-var Ape = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !JI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XI = (e) => e.status === "pending" || e.status === "running";
-function jpe(e) {
+var Ope = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !XI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), QI = (e) => e.status === "pending" || e.status === "running";
+function kpe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, $I(e.error) || Rpe(o) || (XI(e) && i > 0 ? `${QI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, tL(e.error) || Ipe(o) || (QI(e) && i > 0 ? `${eL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function ZI(e) {
+function $I(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37621,19 +37621,19 @@ function ZI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function QI(e, t) {
+function eL(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function Mpe(e) {
+function Ape(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function $I(e) {
- let t = Mpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function tL(e) {
+ let t = Ape(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var Npe = {
+var jpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37651,11 +37651,11 @@ var Npe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, eL = {
+}, nL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Ppe = {
+}, Mpe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37666,8 +37666,8 @@ var Npe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Fpe = (e) => Npe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${eL[t.toLowerCase()]} 资料页` : `已保存来自 ${eL[t.toLowerCase()]} 的资料`);
-function tL(e) {
+}, Npe = (e) => jpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${nL[t.toLowerCase()]} 资料页` : `已保存来自 ${nL[t.toLowerCase()]} 的资料`);
+function rL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37677,7 +37677,7 @@ function tL(e) {
minute: "2-digit"
});
}
-var Ipe = /* @__PURE__ */ new Set([
+var Ppe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37686,20 +37686,20 @@ var Ipe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function nL(e) {
- let t = Lpe(e);
+function iL(e) {
+ let t = Fpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Lpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Ipe.has(e) && (e in qI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? $I(String(t)) : e === "outcome" || e === "result" ? Fpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${qI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Ppe[String(t)] || "批量操作"}` : `${qI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Fpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Ppe.has(e) && (e in YI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? tL(String(t)) : e === "outcome" || e === "result" ? Npe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${YI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Mpe[String(t)] || "批量操作"}` : `${YI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Rpe = (e) => nL(e).join(" · ");
+var Ipe = (e) => iL(e).join(" · ");
// src/react/use-entity-names.ts
-function rL() {
+function aL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function iL({ text: e, busy: t, placeholder: n }) {
+function oL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
@@ -37720,7 +37720,7 @@ function iL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var aL = NI({
+var sL = FI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37731,20 +37731,20 @@ var aL = NI({
small: "size-4 shrink-0"
}
});
-function oL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function cL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(aL.base, aL.size[t], n),
+ className: q(sL.base, sL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: aL.icon[t],
+ className: sL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function sL() {
+function lL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37758,7 +37758,7 @@ function sL() {
});
}
// src/react/components/use-stuck.ts
-function cL(e) {
+function uL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37775,7 +37775,7 @@ function cL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function lL(e, t = !0) {
+function dL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37789,17 +37789,17 @@ function lL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var zpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Lpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+function fL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? zpe : t,
+ icon: n && r === "spinner" ? Lpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37809,9 +37809,9 @@ function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Bpe({ title: e, children: t }) {
+function Rpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return cL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return uL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37824,13 +37824,13 @@ function Bpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(lL, {})
]
});
}
-function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = lL(), p = lL(u);
- return cL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function pL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = dL(), p = dL(u);
+ return uL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37855,27 +37855,27 @@ function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(lL, {})
]
});
}
-var Vpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function fL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var zpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function mL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(Vpe, r),
+ className: q(zpe, r),
onClick: n,
children: e
});
}
-var Hpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function pL({ children: e, onPress: t, busy: n = !1 }) {
+var Bpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function hL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Hpe,
+ className: Bpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37885,13 +37885,13 @@ function pL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var mL = (e, t) => [
+var gL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function hL(e, t, n) {
+function _L(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37915,17 +37915,17 @@ function hL(e, t, n) {
h: e.offsetHeight
};
}
-function gL(e, t, n, r, { axis: i = "x" } = {}) {
+function vL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? hL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? _L(u, l, i) : null;
if (!d || !d.w || !d.h) {
Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && mL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && gL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37946,8 +37946,8 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? hL(o, r, i) : null, l = a.current;
- s && l && mL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? _L(o, r, i) : null, l = a.current;
+ s && l && gL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37978,7 +37978,7 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var _L = NI({
+var yL = FI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -38011,52 +38011,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: yL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function vL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function bL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: yL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var yL = Symbol("default");
-function bL({ values: e, children: t }) {
+var xL = Symbol("default");
+function SL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function xL(e) {
+function CL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -38090,11 +38090,11 @@ function xL(e) {
c
]);
}
-function SL(e, t) {
+function wL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || yL;
+ let e = t || xL;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -38103,8 +38103,8 @@ function SL(e, t) {
}
return n;
}
-function CL(e, t, n) {
- let { ref: r, ...i } = SL(n, e.slot) || {}, a = XC((0, F.useMemo)(() => VC(t, r), [t, r])), o = K(i, e);
+function TL(e, t, n) {
+ let { ref: r, ...i } = wL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38122,42 +38122,42 @@ function CL(e, t, n) {
...e.style
}), [o, a];
}
-function wL(e = !0) {
+function EL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return zS(() => {
+ return RS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function TL(e) {
+function DL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Upe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => VC(n, a), [n, a]);
- zS(() => {}, [e, r]);
+function Vpe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => BC(n, a), [n, a]);
+ RS(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var EL = {}, DL = new Proxy({}, { get(e, t) {
+var OL = {}, kL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = EL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Upe.bind(null, t)), EL[t] = n), n;
-} }), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = /*#__PURE__*/ (0, F.createContext)(null), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = {
+ let n = OL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Vpe.bind(null, t)), OL[t] = n), n;
+} }), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = /*#__PURE__*/ (0, F.createContext)(null), ML = /*#__PURE__*/ (0, F.createContext)(null), NL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return ML(e, null, t);
+ return PL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return ML(e, t, n);
+ return PL(e, t, n);
}
};
-function ML(e, t, n) {
- return xS({
+function PL(e, t, n) {
+ return bS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38167,11 +38167,11 @@ function ML(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Wpe(e, t, n));
+ }), r, Hpe(e, t, n));
}
});
}
-function Wpe(e, t, n) {
+function Hpe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38190,24 +38190,24 @@ function Wpe(e, t, n) {
}
return s;
}
-var NL = /*#__PURE__*/ (0, F.createContext)(jL);
-function PL(e) {
+var FL = /*#__PURE__*/ (0, F.createContext)(NL);
+function IL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, FL);
- let { elementType: n = "label", ...r } = e, i = DL[n];
+var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, LL);
+ let { elementType: n = "label", ...r } = e, i = kL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Gpe = /*#__PURE__*/ (0, F.createContext)(null), LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, LL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Koe(e, t);
- i = qpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = kD(e), { hoverProps: l, isHovered: u } = ND({
+}), Upe = /*#__PURE__*/ (0, F.createContext)(null), zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, zL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = qoe(e, t);
+ i = Gpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = OD(e), { hoverProps: l, isHovered: u } = MD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38217,24 +38217,24 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = xL({
+ }, f = CL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = zC(i.id), m = zC(), h = i["aria-labelledby"];
+ }), p = RC(i.id), m = RC(), 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) && AT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && kT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Uw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(DL.button, {
+ let _ = Hw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(kL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38248,61 +38248,61 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Gpe.Provider, { value: { id: m } }, f.children));
-}), Kpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function qpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(Upe.Provider, { value: { id: m } }, f.children));
+}), Wpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Gpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Kpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Wpe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, zL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = DL[`h${r}`];
+var VL = /*#__PURE__*/ (0, F.createContext)({}), HL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, VL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = kL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), VL = /*#__PURE__*/ (0, F.createContext)({}), Jpe = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, VL);
- let { elementType: n = "span", ...r } = e, i = DL[n];
+}), UL = /*#__PURE__*/ (0, F.createContext)({}), Kpe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, UL);
+ let { elementType: n = "span", ...r } = e, i = kL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), Ype = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null);
-function Xpe(e, t) {
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Ype), a = XC((0, F.useMemo)(() => VC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...TL(e),
+}), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null), qL = /*#__PURE__*/ (0, F.createContext)(null), qpe = /*#__PURE__*/ (0, F.createContext)(null), JL = /*#__PURE__*/ (0, F.createContext)(null);
+function Jpe(e, t) {
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(qpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...DL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? hse(o, i, a) : ZT(o, nE(e), a), a];
+ return [i ? gse(o, i, a) : XT(o, tE(e), a), a];
}
-var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, WL);
- let [i, a] = Xpe(e, n);
- return /*#__PURE__*/ F.createElement(KL.Provider, { value: {
+ [e, t] = TL(r, t, KL);
+ let [i, a] = Jpe(e, n);
+ return /*#__PURE__*/ F.createElement(JL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Qpe, {
+ } }, /*#__PURE__*/ F.createElement(Xpe, {
...e,
ref: t
}));
-}), Qpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(KL), { isFocused: p, isFocusVisible: m, focusProps: h } = kD(), g = a || o, { hoverProps: _, isHovered: v } = ND({
+}), Xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(JL), { isFocused: p, isFocusVisible: m, focusProps: h } = OD(), g = a || o, { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: g
- }), y = xL({
+ }), y = CL({
...e,
defaultClassName: u,
values: {
@@ -38317,8 +38317,8 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Uw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Hw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38332,20 +38332,20 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), qL = /*#__PURE__*/ (0, F.createContext)({}), JL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, qL);
+}), YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, YL);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = ND({
+ let { hoverProps: l, isHovered: u } = MD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = kD({ within: !0 }), m = xL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = OD({ within: !0 }), m = CL({
...e,
values: {
isHovered: u,
@@ -38356,7 +38356,7 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38369,18 +38369,18 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), YL = /*#__PURE__*/ (0, F.createContext)({}), $pe = (e) => {
+}), ZL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, eme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, YL);
- let { hoverProps: n, isHovered: r } = ND({
+}, Qpe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, ZL);
+ let { hoverProps: n, isHovered: r } = MD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
...e,
values: {
isHovered: r,
@@ -38391,8 +38391,8 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(DL.input, {
- ...K($pe(e), o, n),
+ return /*#__PURE__*/ F.createElement(kL.input, {
+ ...K(Zpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38401,24 +38401,24 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), tme = 0, nme = 100, rme = 1;
-function ime(e) {
- let { isDisabled: t = !1, minValue: n = tme, maxValue: r = nme, numberFormatter: i, step: a = rme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), $pe = 0, eme = 100, tme = 1;
+function nme(e) {
+ let { isDisabled: t = !1, minValue: n = $pe, maxValue: r = eme, numberFormatter: i, step: a = tme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = aE(e, 0, e + a, a), Math.max(e, a);
+ return e = iE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => aE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => iE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(ZL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(ZL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c($L(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c($L(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = QL(e.value, e.defaultValue, e.onChange), f = QL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = tE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = eR(e.value, e.defaultValue, e.onChange), f = eR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = eE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38441,15 +38441,15 @@ function ime(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = aE(n, r, i, a);
- let o = XL(x.current, e, n);
+ n = iE(n, r, i, a);
+ let o = QL(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = XL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = QL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38470,15 +38470,15 @@ function ime(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return rE(te(e * (r - n) + n), n, r);
+ return nE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, aE(p[e] + i, n, r, a));
+ A(e, iE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, aE(p[e] - i, n, r, a));
+ A(e, iE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38507,31 +38507,31 @@ function ime(e) {
isDisabled: t
};
}
-function XL(e, t, n) {
+function QL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function ZL(e) {
+function $L(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function QL(e, t, n) {
+function eR(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.createContext)(null), eR = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, ame);
- let n = (0, F.useRef)(null), r = bse(e.formatOptions), i = ime({
+var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), ime = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, rme);
+ let n = (0, F.useRef)(null), r = xse(e.formatOptions), i = nme({
...e,
numberFormatter: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = xse({
+ }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Sse({
...e,
label: o
- }, i, n), d = xL({
+ }, i, n), d = CL({
...e,
values: {
orientation: i.orientation,
@@ -38539,32 +38539,32 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Uw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(bL, { values: [
- [$L, i],
- [eR, {
+ }), f = Hw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(SL, { values: [
+ [tR, i],
+ [nR, {
...c,
ref: n
}],
- [ome, u],
- [FL, {
+ [ime, u],
+ [LL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ ] }, /*#__PURE__*/ F.createElement(kL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, eR);
- let n = (0, F.useContext)($L), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ND({
+}), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, nR);
+ let n = (0, F.useContext)(tR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = xL({
+ }), l = CL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38574,7 +38574,7 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(o, s),
...l,
ref: t,
@@ -38582,14 +38582,14 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)($L), { ref: i } = SL(eR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = wL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Sse({
+}), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(tR), { ref: i } = wL(nR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = EL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Cse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = kD(), { hoverProps: v, isHovered: y } = ND(e), b = xL({
+ }, r), { focusProps: g, isFocusVisible: _ } = OD(), { hoverProps: v, isHovered: y } = MD(e), b = CL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38600,8 +38600,8 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Uw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), x = Hw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(kL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38614,330 +38614,330 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(bL, { values: [[FL, {
+ })), /*#__PURE__*/ F.createElement(SL, { values: [[LL, {
...f,
ref: c
}]] }, b.children));
-}), tR = {};
-tR = {
+}), rR = {};
+rR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var nR = {};
-nR = {
+var iR = {};
+iR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var rR = {};
-rR = {
+var aR = {};
+aR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var iR = {};
-iR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var aR = {};
-aR = {
+var sR = {};
+sR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var oR = {};
-oR = {
+var cme = {};
+cme = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var sR = {};
-sR = {
+var lme = {};
+lme = {
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 ume = {};
+ume = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var lR = {};
-lR = {
+var 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 uR = {};
-uR = {
+var lR = {};
+lR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var dR = {};
-dR = {
+var uR = {};
+uR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var fR = {};
-fR = {
+var dR = {};
+dR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var pR = {};
-pR = {
+var fR = {};
+fR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var mR = {};
-mR = {
+var pR = {};
+pR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var hR = {};
-hR = {
+var mR = {};
+mR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var gR = {};
-gR = {
+var hR = {};
+hR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var _R = {};
-_R = {
+var gR = {};
+gR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var vR = {};
-vR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var yR = {};
-yR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var bR = {};
-bR = {
+var yR = {};
+yR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var xR = {};
-xR = {
+var bR = {};
+bR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var SR = {};
-SR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var CR = {};
-CR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var wR = {};
-wR = {
+var CR = {};
+CR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var TR = {};
-TR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var ER = {};
-ER = {
+var TR = {};
+TR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var DR = {};
-DR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var OR = {};
-OR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var kR = {};
-kR = {
+var OR = {};
+OR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var AR = {};
-AR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var jR = {};
-jR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var MR = {};
-MR = {
+var jR = {};
+jR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var NR = {};
-NR = {
+var MR = {};
+MR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var PR = {};
-PR = {
+var NR = {};
+NR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var FR = {};
-FR = {
- "ar-AE": tR,
- "bg-BG": nR,
- "cs-CZ": rR,
- "da-DK": iR,
- "de-DE": aR,
- "el-GR": oR,
- "en-US": sR,
- "es-ES": cR,
- "et-EE": lR,
- "fi-FI": uR,
- "fr-FR": dR,
- "he-IL": fR,
- "hr-HR": pR,
- "hu-HU": mR,
- "it-IT": hR,
- "ja-JP": gR,
- "ko-KR": _R,
- "lt-LT": vR,
- "lv-LV": yR,
- "nb-NO": bR,
- "nl-NL": xR,
- "pl-PL": SR,
- "pt-BR": CR,
- "pt-PT": wR,
- "ro-RO": TR,
- "ru-RU": ER,
- "sk-SK": DR,
- "sl-SI": OR,
- "sr-SP": kR,
- "sv-SE": AR,
- "tr-TR": jR,
- "uk-UA": MR,
- "zh-CN": NR,
- "zh-TW": PR
+var PR = {};
+PR = {
+ "ar-AE": rR,
+ "bg-BG": iR,
+ "cs-CZ": aR,
+ "da-DK": oR,
+ "de-DE": sR,
+ "el-GR": cme,
+ "en-US": lme,
+ "es-ES": ume,
+ "et-EE": cR,
+ "fi-FI": lR,
+ "fr-FR": uR,
+ "he-IL": dR,
+ "hr-HR": fR,
+ "hu-HU": pR,
+ "it-IT": mR,
+ "ja-JP": hR,
+ "ko-KR": gR,
+ "lt-LT": _R,
+ "lv-LV": vR,
+ "nb-NO": yR,
+ "nl-NL": bR,
+ "pl-PL": xR,
+ "pt-BR": SR,
+ "pt-PT": CR,
+ "ro-RO": wR,
+ "ru-RU": TR,
+ "sk-SK": ER,
+ "sl-SI": DR,
+ "sr-SP": OR,
+ "sv-SE": kR,
+ "tr-TR": AR,
+ "uk-UA": jR,
+ "zh-CN": MR,
+ "zh-TW": NR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(LR);
+var FR = /*#__PURE__*/ (0, F.createContext)({}), IR = /*#__PURE__*/ (0, F.createContext)(null), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(IR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function RR(e, t) {
+function LR(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(ume, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(dme, { target: e });
}, [
t?.target,
r,
@@ -38945,7 +38945,7 @@ function RR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function zR(e, t, n) {
+function RR(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38966,13 +38966,13 @@ function zR(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var BR = /*#__PURE__*/ (0, F.createContext)({}), dme = /*#__PURE__*/ (0, F.createContext)(null);
-function VR(e) {
+var zR = /*#__PURE__*/ (0, F.createContext)({}), fme = /*#__PURE__*/ (0, F.createContext)(null);
+function BR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(dme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(fme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE__*/ (0, F.createContext)({}), fme = /*#__PURE__*/ lw(class extends pS {
+var VR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), HR = /*#__PURE__*/ (0, F.createContext)({}), pme = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "separator";
}
@@ -38985,14 +38985,14 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = CL(e, t, UR);
+ [e, t] = TL(e, t, HR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = DL[c], { separatorProps: u } = Mce({
+ let l = kL[c], { separatorProps: u } = Ace({
...s,
elementType: n,
orientation: r
- }), d = Uw(e, { global: !0 });
+ }), d = Hw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -39003,12 +39003,12 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function WR(e) {
+function UR(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var GR = class {
+var WR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39052,19 +39052,19 @@ var GR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, KR = class e extends Set {
+}, GR = 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 pme(e, t) {
+function mme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function qR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = tE((0, F.useMemo)(() => JR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => JR(e.defaultSelectedKeys, new KR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function KR(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = eE((0, F.useMemo)(() => qR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => qR(e.defaultSelectedKeys, new GR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39091,17 +39091,17 @@ function qR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !pme(e, d)) && f(e);
+ (r || !mme(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function JR(e, t) {
- return e ? e === "all" ? "all" : new KR(e) : t;
+function qR(e, t) {
+ return e ? e === "all" ? "all" : new GR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var YR = class e {
+var JR = 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;
}
@@ -39157,7 +39157,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && _D(this.collection, n, e) < 0) && (e = n);
+ (!e || n && gD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39165,7 +39165,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && _D(this.collection, n, e) > 0) && (e = n);
+ (!e || n && gD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39184,10 +39184,10 @@ var YR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new KR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new GR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new KR(e, r, t);
+ n = new GR(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);
}
@@ -39195,7 +39195,7 @@ var YR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? _D(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? gD(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);
@@ -39221,19 +39221,19 @@ var YR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new KR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new GR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new KR([t], t, t) : new KR();
+ let n = this.canSelectItem(t) ? new GR([t], t, t) : new GR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new KR();
+ let t = new GR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39245,7 +39245,7 @@ var YR = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(mD(pD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(pD(fD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39256,7 +39256,7 @@ var YR = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new KR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new GR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39297,9 +39297,9 @@ var YR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, mme = class {
+}, hme = class {
build(e, t) {
- return this.context = t, XR(() => this.iterateCollection(e));
+ return this.context = t, YR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39381,10 +39381,10 @@ var YR = class e {
...a,
key: l,
index: s,
- wrapper: hme(e.wrapper, a.wrapper)
+ wrapper: gme(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${ZR(t.type)}> in <${ZR(r?.type ?? "unknown parent type")}>. Only <${ZR(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${XR(t.type)}> in <${XR(r?.type ?? "unknown parent type")}>. Only <${XR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39406,7 +39406,7 @@ var YR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: XR(function* () {
+ childNodes: YR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39425,7 +39425,7 @@ var YR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function XR(e) {
+function YR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39433,17 +39433,17 @@ function XR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function hme(e, t) {
+function gme(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function ZR(e) {
+function XR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function QR(e, t, n) {
- let r = (0, F.useMemo)(() => new mme(), []), { children: i, items: a, collection: o } = e;
+function ZR(e, t, n) {
+ let r = (0, F.useMemo)(() => new hme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39457,27 +39457,27 @@ function QR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function $R(e) {
- let { filter: t, layoutDelegate: n } = e, r = qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = QR(e, (0, F.useCallback)((e) => t ? new GR(t(e)) : new GR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new YR(a, r, { layoutDelegate: n }), [
+function QR(e) {
+ let { filter: t, layoutDelegate: n } = e, r = KR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = ZR(e, (0, F.useCallback)((e) => t ? new WR(t(e)) : new WR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new JR(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return ez(a, o), {
+ return $R(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function gme(e, t) {
+function _me(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return ez(n, r), {
+ return $R(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function ez(e, t) {
+function $R(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39504,15 +39504,15 @@ function ez(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function tz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Dw((e) => {
+function ez(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ew((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- zS(() => {
+ RS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: NT(t?.current),
+ root: MT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39527,42 +39527,42 @@ function tz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)(null), rz = /*#__PURE__*/ (0, F.createContext)(null), _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, nz);
- let n = (0, F.useContext)(rz);
- return n ? /*#__PURE__*/ F.createElement(iz, {
+var tz = /*#__PURE__*/ (0, F.createContext)(null), nz = /*#__PURE__*/ (0, F.createContext)(null), vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, tz);
+ let n = (0, F.useContext)(nz);
+ return n ? /*#__PURE__*/ F.createElement(rz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(vme, {
+ }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(yme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function vme({ props: e, listBoxRef: t, collection: n }) {
+function yme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(NL), i = $R({
+ let { layoutDelegate: r } = (0, F.useContext)(FL), i = QR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(iz, {
+ return /*#__PURE__*/ F.createElement(rz, {
state: i,
props: e,
listBoxRef: t
});
}
-function iz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = CL(t, n, OL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = gme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Fw(), { disabledBehavior: p, disabledKeys: m } = l, h = SD({
+function rz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = TL(t, n, AL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = _me(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = xD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(NL), b = (0, F.useMemo)(() => t.keyboardDelegate || new wE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(FL), b = (0, F.useMemo)(() => t.keyboardDelegate || new CE({
collection: c,
collator: h,
ref: n,
@@ -39583,7 +39583,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Yse({
+ ]), { listBoxProps: x } = Xse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39615,7 +39615,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = kD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = OD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39623,7 +39623,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = xL({
+ }, ee = CL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39633,8 +39633,8 @@ function iz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Uw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let te = Hw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39645,60 +39645,60 @@ function iz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [nz, t],
- [rz, s],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [tz, t],
+ [nz, s],
+ [FR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [UR, { elementType: "div" }],
- [LR, { render: xme }],
- [AL, {
+ [HR, { elementType: "div" }],
+ [IR, { render: Sme }],
+ [ML, {
name: "ListBoxSection",
- render: yme
+ render: bme
}]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: zR(l, r, C),
- renderDropIndicator: RR(r, C)
+ persistedKeys: RR(l, r, C),
+ renderDropIndicator: LR(r, C)
}))), N, E));
}
-function yme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(rz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(IR), { CollectionBranch: s } = (0, F.useContext)(NL), [c, l] = wL(), { headingProps: u, groupProps: d } = Xse({
+function bme(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(nz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(FR), { CollectionBranch: s } = (0, F.useContext)(FL), [c, l] = EL(), { headingProps: u, groupProps: d } = Zse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = xL({
+ }), f = CL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Uw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), p = Hw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(kL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(zR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: RR(a, o)
+ renderDropIndicator: LR(a, o)
})));
}
-var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
- let r = XC(t), i = (0, F.useContext)(rz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Zse({
+var xme = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ let r = YC(t), i = (0, F.useContext)(nz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(FR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Qse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = ND({
+ }, i, r), { hoverProps: p, isHovered: m } = MD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = YC(e), { focusProps: g } = GC(e), _ = null;
+ }), { keyboardProps: h } = JC(e), { focusProps: g } = WC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39709,7 +39709,7 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = xL({
+ let y = o && o.isDragging(n.key), b = CL({
...e,
id: void 0,
children: e.children,
@@ -39727,7 +39727,7 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? DL.a : DL.div, S = Uw(e, { global: !0 });
+ let x = e.href ? kL.a : kL.div, S = Hw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39741,29 +39741,29 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(bL, { values: [[VL, { slots: {
- [yL]: u,
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[UL, { slots: {
+ [xL]: u,
label: u,
description: d
- } }], [HR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [VR, { isSelected: f.isSelected }]] }, b.children));
});
-function xme(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Cme, {
+function Sme(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(wme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Sme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = xL({
+function Cme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = CL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
...n,
...a,
role: "option",
@@ -39771,10 +39771,10 @@ function Sme(e, t) {
"data-drop-target": r || void 0
}));
}
-var Cme = /*#__PURE__*/ (0, F.forwardRef)(Sme);
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(rz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+var wme = /*#__PURE__*/ (0, F.forwardRef)(Cme);
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(nz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ ez((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39784,7 +39784,7 @@ lw(hS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = CL({
...s,
id: void 0,
children: n.rendered,
@@ -39797,7 +39797,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: UR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39806,18 +39806,18 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var wme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Tme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function az(e) {
- let [t, n] = tE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function iz(e) {
+ let [t, n] = eE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39835,15 +39835,15 @@ function az(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function oz(e, t = !0, n) {
+function az(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return zS(() => {
- if (!t && e.current) return FC(OS(e.current, "opacity", "0"), OS(e.current, "clip", "rect(0 0 0 0)"), OS(e.current, "clip-path", "inset(50%)"), OS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), zS(() => {
+ return RS(() => {
+ if (!t && e.current) return PC(DS(e.current, "opacity", "0"), DS(e.current, "clip", "rect(0 0 0 0)"), DS(e.current, "clip-path", "inset(50%)"), DS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), RS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), 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 oz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39853,13 +39853,13 @@ 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 = Dw(n);
- zS(() => {
+function sz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Ew(n);
+ RS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39884,9 +39884,9 @@ function cz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.createContext)(null), dz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, lz);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = sz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = nw(), { direction: c } = Fw();
+var cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, cz);
+ let n = (0, F.useContext)(Sz), r = iz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = tw(), { direction: c } = Pw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39897,7 +39897,7 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Tme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Eme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39906,13 +39906,13 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(uz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tce({
+function Eme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(lz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = wce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = oz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = xL({
+ }, e), g = i.popoverRef, _ = az(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = CL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39922,10 +39922,10 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- zS(() => {
+ RS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || CC() !== "pointer") && g.current && !NS(g.current) && PC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || SC() !== "pointer") && g.current && !MS(g.current) && NC(g.current);
}, [
x,
g,
@@ -39933,12 +39933,12 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [lz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [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]);
- zS(E, [E]), jO({
+ RS(E, [E]), AO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39948,9 +39948,9 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- zS(() => bk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(i, { global: !0 }), d),
+ RS(() => yk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Hw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39965,17 +39965,17 @@ function Tme({ 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(pk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(wme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Tme.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(DD, {
+ } }, C), /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(ED, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(DD, {
+ }, O) : /*#__PURE__*/ F.createElement(ED, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39990,13 +39990,13 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(uz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(lz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Eme = /*#__PURE__*/ (0, F.createContext)({});
+var Dme = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function fz(e) {
- let t = az(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function dz(e) {
+ let t = iz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -40021,7 +40021,7 @@ function fz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Dme = class {
+var Ome = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -40064,8 +40064,8 @@ var Dme = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function pz(e) {
- let { onExpandedChange: t } = e, [n, r] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = qR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = QR(e, (0, F.useCallback)((e) => new Dme(e, { expandedKeys: n }), [n]), null);
+function fz(e) {
+ let { onExpandedChange: t } = e, [n, r] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = KR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = ZR(e, (0, F.useCallback)((e) => new Ome(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40073,31 +40073,31 @@ function pz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Ome(n, e));
+ r(kme(n, e));
},
setExpandedKeys: r,
- selectionManager: new YR(o, i)
+ selectionManager: new JR(o, i)
};
}
-function Ome(e, t) {
+function kme(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null);
-function kme(e) {
- let t = fz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = cD({
+var pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null);
+function Ame(e) {
+ let t = dz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = sD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return nw() ? null : /*#__PURE__*/ F.createElement(bL, { values: [
- [mz, {
+ return tw() ? null : /*#__PURE__*/ F.createElement(SL, { values: [
+ [pz, {
...i,
ref: a
}],
- [Cz, t],
- [gz, t],
- [lz, {
+ [Sz, t],
+ [hz, t],
+ [cz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40105,14 +40105,14 @@ function kme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Pse, {
+ ] }, /*#__PURE__*/ F.createElement(Fse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Ame = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends pS {
+var jme = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends fS {
static {
this.type = "submenutrigger";
}
@@ -40125,24 +40125,24 @@ var Ame = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, mz), /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(Mme, {
+var Mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = TL(e, t, pz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(Nme, {
props: e,
collection: n,
menuRef: t
}));
});
-function Mme({ props: e, collection: t, menuRef: n }) {
- [e, n] = CL(e, n, OL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = pz({
+function Nme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = TL(e, n, AL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = fz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(gz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(NL), { menuProps: u } = Qse({
+ }), s = (0, F.useContext)(hz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(FL), { menuProps: u } = $se({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = xL({
+ }, o, n), d = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40152,36 +40152,36 @@ function Mme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let p = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [hz, o],
- [UR, { elementType: "div" }],
- [AL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [mz, o],
+ [HR, { elementType: "div" }],
+ [ML, {
name: "MenuSection",
- render: vz
+ render: _z
}],
- [Ame, {
+ [jme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [OL, null],
- [kL, null],
- [_z, o.selectionManager],
- [gz, s ?? fz({})]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(l, {
+ [yz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [AL, null],
+ [jL, null],
+ [gz, o.selectionManager],
+ [hz, s ?? dz({})]
+ ] }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: PL(o.selectionManager.focusedKey),
+ persistedKeys: IL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Nme = class extends YR {
+var Pme = class extends JR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40201,11 +40201,11 @@ var Nme = class extends YR {
return this.parent.childFocusStrategy;
}
};
-function vz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(hz), { CollectionBranch: a } = (0, F.useContext)(NL), [o, s] = wL(), { headingProps: c, groupProps: l } = ece({
+function _z(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(mz), { CollectionBranch: a } = (0, F.useContext)(FL), [o, s] = EL(), { headingProps: c, groupProps: l } = tce({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = xL({
+ }), u = CL({
...e,
id: void 0,
children: void 0,
@@ -40213,31 +40213,31 @@ function vz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(_z), f = qR(e), p = e.selectionMode == null ? d : new Nme(d, f), m = SL(bz)?.shouldCloseOnSelect, h = Uw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), d = (0, F.useContext)(gz), f = KR(e), p = e.selectionMode == null ? d : new Pme(d, f), m = wL(yz)?.shouldCloseOnSelect, h = Hw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(kL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [BR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [zR, {
...c,
ref: o
}],
- [_z, p],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [gz, p],
+ [yz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ lw(gS, function(e, t, n) {
- [e, t] = CL(e, t, bz);
- let r = SL(bz)?.id, i = (0, F.useContext)(hz), a = XC(t), o = (0, F.useContext)(_z), { isVirtualized: s } = (0, F.useContext)(NL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = $se({
+var vz = /*#__PURE__*/ lw(pae, _z), yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ [e, t] = TL(e, t, yz);
+ let r = wL(yz)?.id, i = (0, F.useContext)(mz), a = YC(t), o = (0, F.useContext)(gz), { isVirtualized: s } = (0, F.useContext)(FL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ece({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = ND({ isDisabled: f.isDisabled }), h = xL({
+ }, i, a), { hoverProps: p, isHovered: m } = MD({ isDisabled: f.isDisabled }), h = CL({
...e,
id: void 0,
children: n.rendered,
@@ -40251,7 +40251,7 @@ var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? DL.a : DL.div, _ = Uw(e, { global: !0 });
+ }), g = e.href ? kL.a : kL.div, _ = Hw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40264,19 +40264,19 @@ var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [VL, { slots: {
- [yL]: l,
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [UL, { slots: {
+ [xL]: l,
label: l,
description: u
} }],
- [Eme, d],
- [HR, { isSelected: f.isSelected }]
+ [Dme, d],
+ [VR, { isSelected: f.isSelected }]
] }, h.children));
});
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(hz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(mz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ ez((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40286,7 +40286,7 @@ lw(hS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = CL({
...s,
id: void 0,
children: n.rendered,
@@ -40299,7 +40299,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: UR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40308,89 +40308,89 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = CL(e, t, Sz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Ise({
+ [e, t] = TL(e, t, xz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Lse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Cz);
+ }, t), o = (0, F.useContext)(Sz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = xL({
+ let s = CL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.section, {
+ }), c = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [zL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [VL, { slots: {
+ [xL]: {},
title: {
...i,
level: 2
}
} }],
- [VL, { slots: {
- [yL]: {},
+ [UL, { slots: {
+ [xL]: {},
description: a
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Tz = typeof document < "u" && window.visualViewport;
-function Pme() {
- let e = sC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), wz = typeof document < "u" && window.visualViewport;
+function Fme() {
+ let e = oC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Ez());
+ } : Tz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Tz && Tz.scale > 1 || e(Ez());
+ wz && wz.scale > 1 || e(Tz());
}, i = (n) => {
- Tz && Tz.scale > 1 || ww(G(n)) && (t.current = bk((t) => {
+ wz && wz.scale > 1 || Cw(G(n)) && (t.current = yk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Ez()), YS() && XS() && window.addEventListener("blur", i, !0), Tz ? Tz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Tz ? Tz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Tz()), JS() && YS() && window.addEventListener("blur", i, !0), wz ? wz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), JS() && YS() && window.removeEventListener("blur", i, !0), wz ? wz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Ez() {
+function Tz() {
return {
- width: Tz ? Math.min(Tz.width * Tz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Tz ? Tz.height * Tz.scale : document.documentElement.clientHeight
+ width: wz ? Math.min(wz.width * wz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: wz ? wz.height * wz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Fme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Ime = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Dz)) return /*#__PURE__*/ F.createElement(kz, {
+var Ime = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.createContext)(null), Lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Ez)) return /*#__PURE__*/ F.createElement(Oz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Oz, {
+ return /*#__PURE__*/ F.createElement(Dz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40400,15 +40400,15 @@ var Fme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(kz, {
+ }, /*#__PURE__*/ F.createElement(Oz, {
...f,
modalRef: t
}, s));
});
-function Lme(e, t) {
- [e, t] = CL(e, t, Fme);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = XC(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 = sC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Rme, {
+function Rme(e, t) {
+ [e, t] = TL(e, t, Ime);
+ let n = (0, F.useContext)(Sz), r = iz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(t), o = (0, F.useRef)(null), s = oz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = oz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = oC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(zme, {
...e,
state: i,
isExiting: u,
@@ -40417,12 +40417,12 @@ function Lme(e, t) {
onExitRef: c
});
}
-var Oz = /*#__PURE__*/ (0, F.forwardRef)(Lme);
-function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = oz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = dce({
+var Dz = /*#__PURE__*/ (0, F.forwardRef)(Rme);
+function zme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = az(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = fce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Sz), f = t ? zme(d, { isEntering: c }) : d, p = xL({
+ }, i, r), d = (0, F.useContext)(xz), f = t ? Bme(d, { isEntering: c }) : d, p = CL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40430,9 +40430,9 @@ function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Pme(), h, g;
+ }), m = Fme(), h, g;
if (typeof document < "u") {
- let e = MT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = jT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40442,18 +40442,18 @@ function Rme({ 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 zS(() => bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(DD, {
+ return RS(() => yk(() => o(!0)), []), /*#__PURE__*/ F.createElement(ED, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Hw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Dz, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [Ez, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40461,11 +40461,11 @@ function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Cz, i],
- [Sz, f]
+ [Sz, i],
+ [xz, f]
] }, p.children)));
}
-function zme(e, t) {
+function Bme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40482,8 +40482,8 @@ function zme(e, t) {
...t
};
}
-function kz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Dz), s = (0, F.useContext)(Cz), c = XC((0, F.useMemo)(() => VC(e.modalRef, n), [e.modalRef, n])), l = oz(c, o, e.onEnter), u = xL({
+function Oz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Ez), s = (0, F.useContext)(Sz), c = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = az(c, o, e.onEnter), u = CL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40492,20 +40492,20 @@ function kz(e) {
state: s
}
});
- return zS(() => {
+ return RS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Hw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(pk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(fk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Bme = Math.round(Math.random() * 1e10), Vme = 0;
-function Hme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Bme}-${++Vme}`, [e.name]), [n, r] = tE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = KT({
+var Vme = Math.round(Math.random() * 1e10), Hme = 0;
+function Ume(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Vme}-${++Hme}`, [e.name]), [n, r] = eE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = GT({
...e,
value: n
}), c = (t) => {
@@ -40527,16 +40527,16 @@ function Hme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, Ume);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = Hme({
+var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, Wme);
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = Ume({
...e,
validationBehavior: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Oce({
+ }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Ece({
...e,
label: o,
validationBehavior: r
- }, i), f = xL({
+ }, i), f = CL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40547,8 +40547,8 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), p = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40557,39 +40557,39 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Az, i],
- [FL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [kz, i],
+ [LL, {
...c,
ref: a,
elementType: "span"
}],
- [VL, { slots: {
+ [UL, { slots: {
description: l,
errorMessage: u
} }],
- [HL, d]
- ] }, /*#__PURE__*/ F.createElement(VR, null, f.children)));
-}), Mz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [WL, d]
+ ] }, /*#__PURE__*/ F.createElement(BR, null, f.children)));
+}), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, Wme);
- let i = F.useContext(Az), a = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Dce({
- ...TL(e),
+ [e, t] = TL(r, t, Gme);
+ let i = F.useContext(kz), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Tce({
+ ...DL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Nz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Mz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Gme, {
+ } }, /*#__PURE__*/ F.createElement(Kme, {
...e,
ref: t
}));
-}), Nz = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Nz), l = F.useContext(Az), { isFocused: u, isFocusVisible: d, focusProps: f } = kD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ND({
+}), Mz = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Mz), l = F.useContext(kz), { isFocused: u, isFocusVisible: d, focusProps: f } = OD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MD({
...e,
isDisabled: p
- }), g = xL({
+ }), g = CL({
...e,
defaultClassName: s,
values: {
@@ -40603,8 +40603,8 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Uw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), _ = Hw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40616,18 +40616,18 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__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(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Kme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = az(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function qme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = iz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = tE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = eE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40639,12 +40639,12 @@ function Kme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = $R({
+ }, d = QR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => qme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Jme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40654,7 +40654,7 @@ function Kme(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 = KT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = GT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40681,15 +40681,15 @@ function Kme(e) {
setFocused: g
};
}
-function qme(e) {
+function Jme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Jme(e) {
+function Yme(e) {
return e && e.__esModule ? e.default : e;
}
-var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, Pz);
+var Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), Xme = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, Nz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40704,24 +40704,24 @@ var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(Zme, {
+ return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Qme, {
props: e,
collection: n,
selectRef: t
}));
-}), Xme = [
- FL,
+}), Zme = [
LL,
- VL
+ zL,
+ UL
];
-function Zme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = SL(UL) || {}, i = e.validationBehavior ?? r ?? "native", a = Kme({
+function Qme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = wL(GL) || {}, i = e.validationBehavior ?? r ?? "native", a = qme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = kD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = wL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kce({
- ...TL(e),
+ }), { isFocusVisible: o, focusProps: s } = OD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = EL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Dce({
+ ...DL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40738,48 +40738,48 @@ function Zme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = xL({
+ ]), b = CL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Uw(e, { global: !0 });
+ }), x = Hw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Pz, e],
- [Fz, a],
- [Iz, p],
- [FL, {
+ return /*#__PURE__*/ F.createElement(SL, { values: [
+ [Nz, e],
+ [Pz, a],
+ [Fz, p],
+ [LL, {
...d,
ref: l,
elementType: "span"
}],
- [LL, {
+ [zL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Cz, a],
- [lz, {
+ [Sz, a],
+ [cz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Xme
+ clearContexts: Zme
}],
- [nz, {
+ [tz, {
...m,
ref: S
}],
- [rz, a],
- [VL, { slots: {
+ [nz, a],
+ [UL, { slots: {
description: h,
errorMessage: g
} }],
- [HL, v]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ [WL, v]
+ ] }, /*#__PURE__*/ F.createElement(kL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40789,14 +40789,14 @@ function Zme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(jce, {
+ }, b.children, /*#__PURE__*/ F.createElement(kce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, Iz);
- let n = (0, F.useContext)(Fz), { placeholder: r } = SL(Pz), i = n.selectedItems.map((e) => {
+for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, Fz);
+ let n = (0, F.useContext)(Pz), { placeholder: r } = wL(Nz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40808,7 +40808,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Lse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Rse(), 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
@@ -40823,7 +40823,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
a,
o,
i
- ]), u = Vw(Jme(FR), "react-aria-components"), d = xL({
+ ]), u = Bw(Yme(PR), "react-aria-components"), d = CL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40834,33 +40834,33 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.span, {
+ }), f = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(VL.Provider, { value: void 0 }, d.children));
-}), $me = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(UL.Provider, { value: void 0 }, d.children));
+}), ehe = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, $me);
- let i = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nE(e), o = Nce({
- ...TL(e),
+ [e, t] = TL(r, t, ehe);
+ let i = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tE(e), o = jce({
+ ...DL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(bL, { values: [[Lz, a], [Rz, {
+ return /*#__PURE__*/ F.createElement(SL, { values: [[Iz, a], [Lz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(the, {
+ }]] }, /*#__PURE__*/ F.createElement(nhe, {
...e,
ref: t
}));
-}), Rz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Rz), { isFocused: f, isFocusVisible: p, focusProps: m } = kD(), h = a || o, g = (0, F.useContext)(Lz), { hoverProps: _, isHovered: v } = ND({
+}), Lz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Lz), { isFocused: f, isFocusVisible: p, focusProps: m } = OD(), h = a || o, g = (0, F.useContext)(Iz), { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: h
- }), y = xL({
+ }), y = CL({
...e,
defaultClassName: u,
values: {
@@ -40875,8 +40875,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
isRequired: d || !1,
state: g
}
- }), b = Uw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Hw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40889,11 +40889,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), zz = 10, Bz = 5, Vz = class {
+}), Rz = 10, zz = 5, Bz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40903,7 +40903,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Bz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > zz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > zz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Rz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40982,11 +40982,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Bz && i) {
+ if (Math.abs(r - c.lastSwitchY) > zz && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > zz && a) {
+ if (l > Rz && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -41001,7 +41001,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
boundaryContext: null
};
}
-}, nhe = class {
+}, rhe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41071,8 +41071,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Hz = "row-header-column-" + Math.random().toString(36).slice(2), Uz = "row-header-column-" + Math.random().toString(36).slice(2); Hz === Uz;) Uz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Wz(e, t) {
+}, Vz = "row-header-column-" + Math.random().toString(36).slice(2), Hz = "row-header-column-" + Math.random().toString(36).slice(2); Vz === Hz;) Hz = "row-header-column-" + Math.random().toString(36).slice(2);
+function Uz(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41156,13 +41156,13 @@ function Wz(e, t) {
textValue: ""
}));
}
-var rhe = class extends nhe {
+var ihe = class extends rhe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Hz,
+ key: Vz,
value: null,
textValue: "",
level: 0,
@@ -41177,7 +41177,7 @@ var rhe = class extends nhe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Uz,
+ key: Hz,
value: null,
textValue: "",
level: 0,
@@ -41204,7 +41204,7 @@ var rhe = class extends nhe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Wz(s, a);
+ let l = Uz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41230,10 +41230,10 @@ var rhe = class extends nhe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return mD(this.body.childNodes)?.key ?? null;
+ return pD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return gD(this.body.childNodes)?.key ?? null;
+ return hD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41264,15 +41264,15 @@ var rhe = class extends nhe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function ihe(e) {
+function ahe(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function ahe(e) {
+function ohe(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Gz(e, t) {
+function Wz(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41280,19 +41280,19 @@ function Gz(e, t) {
}
return e;
}
-function Kz(e, t) {
- return e == null ? 2 ** 53 - 1 : Gz(e, t);
+function Gz(e, t) {
+ return e == null ? 2 ** 53 - 1 : Wz(e, t);
}
-function qz(e, t) {
- return e == null ? 0 : Gz(e, t);
+function Kz(e, t) {
+ return e == null ? 0 : Wz(e, t);
}
-function ohe(e, t, n, r, i) {
+function she(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;
- ihe(o) ? (l = Gz(o, e), s = !0) : (u = ahe(o), u <= 0 && (s = !0));
- let f = qz(t.minWidth ?? i?.(a) ?? 0, e), p = Kz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ ahe(o) ? (l = Wz(o, e), s = !0) : (u = ohe(o), u <= 0 && (s = !0));
+ let f = Kz(t.minWidth ?? i?.(a) ?? 0, e), p = Gz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41326,14 +41326,14 @@ function ohe(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = she(l);
+ let u = che(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 she(e) {
+function che(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41341,7 +41341,7 @@ function she(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var che = class {
+var lhe = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41370,18 +41370,18 @@ var che = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), ohe(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), she(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, qz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Kz(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, Kz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Gz(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function lhe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new che({
+function uhe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new lhe({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41432,19 +41432,19 @@ function lhe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function uhe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function dhe(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || KR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = pD(n, t);
- e = r === "last" ? gD(i)?.key ?? null : mD(i)?.key ?? null;
+ let i = fD(n, t);
+ e = r === "last" ? hD(i)?.key ?? null : pD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new YR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new JR(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;
@@ -41464,7 +41464,7 @@ function uhe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...pD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...fD(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);
}
@@ -41482,11 +41482,11 @@ function uhe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var dhe = {
+var fhe = {
ascending: "descending",
descending: "ascending"
};
-function fhe(e) {
+function phe(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41497,11 +41497,11 @@ function fhe(e) {
i,
r,
a
- ]), c = QR(e, (0, F.useCallback)((e) => new rhe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uhe({
+ ]), c = ZR(e, (0, F.useCallback)((e) => new ihe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = dhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41513,7 +41513,7 @@ function fhe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? dhe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? fhe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41526,7 +41526,7 @@ function fhe(e) {
treeColumn: o
};
}
-function phe(e, t) {
+function mhe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41535,10 +41535,10 @@ function phe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function mhe(e) {
+function hhe(e) {
return e && e.__esModule ? e.default : e;
}
-var hhe = class extends _S {
+var ghe = class extends gS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41553,7 +41553,7 @@ var hhe = class extends _S {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new nB(-2);
+ return new tB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41579,7 +41579,7 @@ var hhe = class extends _S {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Wz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = Uz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41660,28 +41660,28 @@ var hhe = class extends _S {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Qz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Zz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Jz = /*#__PURE__*/ (0, F.createContext)(null), ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = XC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- zS(() => {
+}, qz = /*#__PURE__*/ (0, F.createContext)(null), _he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = YC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ RS(() => {
let e = r.current;
- for (; e && e !== n.current && !MT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !jT(e);) e = e.parentElement;
i.current = e;
- }, [n]), jO({
+ }, [n]), AO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), zS(() => {
+ }), RS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: lhe,
+ useTableColumnResizeState: uhe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41692,17 +41692,17 @@ var hhe = class extends _S {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
render: e.render,
- ...Uw(e, { global: !0 }),
+ ...Hw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Jz.Provider, { value: s }, e.children));
-}), _he = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, _he);
- let n = qR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(qz.Provider, { value: s }, e.children));
+}), vhe = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, vhe);
+ let n = KR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41712,26 +41712,26 @@ var hhe = class extends _S {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(xhe.Provider, { value: s }, /*#__PURE__*/ F.createElement(pw, e));
- return /*#__PURE__*/ F.createElement(ow, {
+ ]), c = /*#__PURE__*/ F.createElement(She.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
+ return /*#__PURE__*/ F.createElement(aw, {
content: c,
- createCollection: () => new hhe()
- }, (r) => /*#__PURE__*/ F.createElement(bhe, {
+ createCollection: () => new ghe()
+ }, (r) => /*#__PURE__*/ F.createElement(xhe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.table, {
+ }) : /*#__PURE__*/ F.createElement(kL.table, {
...e,
ref: t
});
-}), Zz = {
+}), Xz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41741,26 +41741,26 @@ var hhe = class extends _S {
rtl: "ArrowRight"
}
};
-function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = CL(e, t, OL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Jz);
- t = XC((0, F.useMemo)(() => VC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function xhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = TL(e, t, AL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(qz);
+ t = YC((0, F.useMemo)(() => BC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = fhe({
+ let d = phe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = phe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(NL), { dragAndDropHooks: _ } = e, { gridProps: v } = Rce({
+ }), f = mhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(FL), { dragAndDropHooks: _ } = e, { gridProps: v } = Ice({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Fw(), [k] = (0, F.useState)(() => new Vz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new Bz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41775,7 +41775,7 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new wE({
+ let e = new CE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41795,12 +41795,12 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Zz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Zz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Xz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Xz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = kD(), ee = xL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = OD(), ee = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41816,19 +41816,19 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Yz, f],
- [Xz, P],
- [IR, {
+ let ne = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(SL, { values: [
+ [Jz, f],
+ [Yz, P],
+ [FR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [LR, { render: jhe }],
- [OL, null],
- [kL, null]
- ] }, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(yhe, {
+ [IR, { render: Mhe }],
+ [AL, null],
+ [jL, null]
+ ] }, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(bhe, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41838,55 +41838,55 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: zR(y, _, C)
+ persistedKeys: RR(y, _, C)
})))), E);
}
-var xhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends pS {
+var She = /*#__PURE__*/ (0, F.createContext)(null), Zz = class extends fS {
static {
this.type = "tableheader";
}
-}, She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.thead, {
+ }) : /*#__PURE__*/ F.createElement(kL.thead, {
...e,
ref: t
});
-}), $z = /*#__PURE__*/ uw(Qz, (e, t) => {
- let n = (0, F.useContext)(Yz).collection, r = xS({
+}), Qz = /*#__PURE__*/ lw(Zz, (e, t) => {
+ let n = (0, F.useContext)(Jz).collection, r = bS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(whe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(The, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = NA(), { hoverProps: a, isHovered: o } = ND({
+ }), { rowGroupProps: i } = FA(), { hoverProps: a, isHovered: o } = MD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = xL({
+ }), s = CL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(She, {
- ...K(Uw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(Che, {
+ ...K(Hw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(pw, {
+}, (e) => /*#__PURE__*/ F.createElement(fw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
+}, e.children)), whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41895,41 +41895,41 @@ var xhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends pS {
ref: t
});
});
-function whe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(Yz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(NL), { rowProps: a } = Wce({
+function The({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(Jz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(FL), { rowProps: a } = Hce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Zce(n);
- return /*#__PURE__*/ F.createElement(Che, {
+ }, n, t), { checkboxProps: o } = Yce(n);
+ return /*#__PURE__*/ F.createElement(whe, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [[WL, { slots: { selection: o } }], [GL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[KL, { slots: { selection: o } }], [qL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var The = class extends pS {
+var Ehe = class extends fS {
static {
this.type = "column";
}
-}, Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.th, {
+ }) : /*#__PURE__*/ F.createElement(kL.th, {
...e,
ref: t
});
-}), eB = /*#__PURE__*/ lw(The, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { isVirtualized: a } = (0, F.useContext)(NL), { columnHeaderProps: o, isPressed: s } = Vce({
+}), $z = /*#__PURE__*/ cw(Ehe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Jz), { isVirtualized: a } = (0, F.useContext)(FL), { columnHeaderProps: o, isPressed: s } = zce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = kD(), d = (0, F.useContext)(Xz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OD(), d = (0, F.useContext)(Yz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = ND({ isDisabled: !e.allowsSorting }), h = xL({
+ let { hoverProps: p, isHovered: m } = MD({ isDisabled: !e.allowsSorting }), h = CL({
...e,
id: void 0,
children: n.rendered,
@@ -41955,8 +41955,8 @@ var The = class extends pS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Uw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Ehe, {
+ let _ = Hw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Dhe, {
...K(_, o, u, p),
...h,
style: g,
@@ -41968,29 +41968,29 @@ var The = class extends pS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[tB, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[eB, {
column: n,
triggerRef: r
- }], [NL, jL]] }, h.children));
-}), tB = /*#__PURE__*/ (0, F.createContext)(null), Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Xz);
+ }], [FL, NL]] }, h.children));
+}), eB = /*#__PURE__*/ (0, F.createContext)(null), Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(Yz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Vw(mhe(FR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Jz), { column: s, triggerRef: c } = (0, F.useContext)(tB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Uce({
+ let r = Bw(hhe(PR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(qz), { column: s, triggerRef: c } = (0, F.useContext)(eB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Vce({
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 } = kD(), { hoverProps: _, isHovered: v } = ND(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Fw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = OD(), { hoverProps: _, isHovered: v } = MD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Pw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = XC(t), [w, T] = (0, F.useState)("");
+ let C = YC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = xL({
+ let E = CL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -42000,8 +42000,8 @@ var The = class extends pS {
isHovered: v,
resizableDirection: S
}
- }), D = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), D = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -42024,24 +42024,24 @@ var The = class extends pS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), nB = class extends mS {
+}), tB = class extends pS {
static {
this.type = "tablebody";
}
-}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(kL.tbody, {
...e,
ref: t
});
-}), rB = /*#__PURE__*/ uw(nB, (e, t, n) => {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(NL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(IR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), nB = /*#__PURE__*/ lw(tB, (e, t, n) => {
+ let r = (0, F.useContext)(Jz), { isVirtualized: i } = (0, F.useContext)(FL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(FL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(FR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = xL({
+ }, p = CL({
...e,
id: void 0,
children: void 0,
@@ -42050,33 +42050,33 @@ var The = class extends pS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(aB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(iB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(oB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = NA(), _ = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Ohe, {
+ let { rowGroupProps: g } = FA(), _ = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(khe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Ihe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Lhe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: RR(s, c)
+ renderDropIndicator: LR(s, c)
}), m);
});
-(class extends mS {
+(class extends pS {
static {
this.type = "tablefooter";
}
});
-var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), khe = class extends pS {
+var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ahe = class extends fS {
static {
this.type = "item";
}
@@ -42088,31 +42088,31 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
}
return null;
}
-}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, iB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(kL.tr, {
...e,
ref: t
});
-}), oB = /*#__PURE__*/ uw(khe, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(NL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = qce({
+}), aB = /*#__PURE__*/ lw(Ahe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Jz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(FR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(FL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = kD(), { isFocusVisible: _, focusProps: v } = kD({ within: !0 }), { hoverProps: y, isHovered: b } = ND({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = OD(), { isFocusVisible: _, focusProps: v } = OD({ within: !0 }), { hoverProps: y, isHovered: b } = MD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Xce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Jce({ 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 } = uE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = lE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42122,7 +42122,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = xL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = CL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42143,11 +42143,11 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
isExpanded: j,
level: n.level + 1
}
- }), ee = Uw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(aB, {
+ }), ee = Hw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(iB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(oB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42156,7 +42156,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(aB, {
+ }))), /*#__PURE__*/ F.createElement(iB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42172,17 +42172,17 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [KL, { slots: {
+ [xL]: {},
selection: x
} }],
- [GL, { slots: {
- [yL]: {},
+ [qL, { slots: {
+ [xL]: {},
selection: x
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42190,8 +42190,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
style: { pointerEvents: "none" }
}
} }],
- [HR, { isSelected: p.isSelected }],
- [iB, { isFocusVisibleWithinRow: _ }]
+ [VR, { isSelected: p.isSelected }],
+ [rB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42199,34 +42199,34 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
}, (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(pw, {
+ return /*#__PURE__*/ F.createElement(fw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Ahe = class extends pS {
+}), jhe = class extends fS {
static {
this.type = "cell";
}
-}, sB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, oB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(kL.td, {
...e,
ref: t
});
-}), cB = /*#__PURE__*/ lw(Ahe, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { dragState: a } = (0, F.useContext)(IR), { isVirtualized: o } = (0, F.useContext)(NL);
+}), sB = /*#__PURE__*/ cw(jhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Jz), { dragState: a } = (0, F.useContext)(FR), { isVirtualized: o } = (0, F.useContext)(FL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = zce({
+ let { gridCellProps: s, isPressed: c } = Lce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = kD(), { hoverProps: f, isHovered: p } = ND({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(iB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = xL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OD(), { hoverProps: f, isHovered: p } = MD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(rB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = CL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42245,8 +42245,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Uw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(sB, {
+ }), S = Hw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(oB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42260,14 +42260,14 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, x.children));
+ }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, x.children));
});
-function jhe(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Mhe(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
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(Fhe, {
+ return /*#__PURE__*/ F.createElement(Ihe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42276,40 +42276,40 @@ function jhe(e, t) {
ref: t
});
}
-var Mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+var Nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(kL.tr, {
...e,
ref: t
});
-}), Nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(kL.td, {
...e,
ref: t
});
});
-function Phe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Yz), { visuallyHiddenProps: c } = uE(), l = xL({
+function Fhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Jz), { visuallyHiddenProps: c } = lE(), l = CL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Mhe, {
- ...Uw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(Nhe, {
+ ...Hw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Nhe, {
+ }, /*#__PURE__*/ F.createElement(Phe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42320,14 +42320,14 @@ function Phe(e, t) {
ref: i
}), l.children));
}
-var Fhe = /*#__PURE__*/ (0, F.forwardRef)(Phe);
-function Ihe() {
- let e = (0, F.useContext)(Yz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(IR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = uE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(aB, {
+var Ihe = /*#__PURE__*/ (0, F.forwardRef)(Fhe);
+function Lhe() {
+ let e = (0, F.useContext)(Jz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(FR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = lE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(iB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(oB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42338,9 +42338,9 @@ function Ihe() {
ref: r
})));
}
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(Jz), { isVirtualized: i } = (0, F.useContext)(FL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ ez((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42350,7 +42350,7 @@ lw(hS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = xL({
+ let d = CL({
...c,
id: void 0,
children: n.rendered,
@@ -42358,10 +42358,10 @@ lw(hS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(aB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(iB, {
style: { height: 0 },
- inert: WR(!0)
- }, /*#__PURE__*/ F.createElement(sB, { style: {
+ inert: UR(!0)
+ }, /*#__PURE__*/ F.createElement(oB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42372,22 +42372,22 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(aB, {
- ...K(Uw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(iB, {
+ ...K(Hw(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(oB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Lhe(e) {
- let [t, n] = tE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = $R({
+function Rhe(e) {
+ let [t, n] = eE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = QR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42409,24 +42409,24 @@ function Lhe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Rhe(e) {
- let t = Lhe({
+function zhe(e) {
+ let t = Rhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? lB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? 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 = lB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = 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 lB(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);
@@ -42435,24 +42435,24 @@ function lB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, uB);
+var lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), Bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, lB);
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(ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(Bhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Vhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Bhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Rhe({
+function Vhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = zhe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = kD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = OD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42460,12 +42460,12 @@ function Bhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = xL({
+ ]), l = CL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), u = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42473,20 +42473,20 @@ function Bhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, e], [dB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[lB, e], [uB, i]] }, l.children));
}
-var fB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(dB) ? /*#__PURE__*/ F.createElement(Vhe, {
+var dB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(uB) ? /*#__PURE__*/ F.createElement(Hhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(pw, e);
+ }) : /*#__PURE__*/ F.createElement(fw, e);
});
-function Vhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(dB), { CollectionRoot: r } = (0, F.useContext)(NL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = SL(uB), o = XC(t), { tabListProps: s } = ele({
+function Hhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(uB), { CollectionRoot: r } = (0, F.useContext)(FL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = wL(lB), o = YC(t), { tabListProps: s } = Qce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = xL({
+ }, n, o), c = CL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42494,30 +42494,30 @@ function Vhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Uw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), l = Hw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(kL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: PL(n.selectionManager.focusedKey)
+ persistedKeys: IL(n.selectionManager.focusedKey)
})));
}
-var Hhe = /*#__PURE__*/ lw(class extends pS {
+var Uhe = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(dB), i = XC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Qce({
+ let r = (0, F.useContext)(uB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Xce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = kD(), { hoverProps: f, isHovered: p } = ND({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = OD(), { hoverProps: f, isHovered: p } = MD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = xL({
+ }), m = CL({
...e,
id: void 0,
children: n.rendered,
@@ -42530,7 +42530,7 @@ var Hhe = /*#__PURE__*/ lw(class extends pS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? DL.a : DL.div, g = Uw(e, { global: !0 });
+ }), h = n.props.href ? kL.a : kL.div, g = Hw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42540,54 +42540,54 @@ var Hhe = /*#__PURE__*/ lw(class extends pS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(HR.Provider, { value: { isSelected: o } }, m.children));
-}), Uhe = /*#__PURE__*/ tw(function(e, t) {
- let n = (0, F.useContext)(dB), r = XC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(VR.Provider, { value: { isSelected: o } }, m.children));
+}), Whe = /*#__PURE__*/ ew(function(e, t) {
+ let n = (0, F.useContext)(uB), r = YC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
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(Whe, {
+ let s = oz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Ghe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Whe(e) {
- let t = (0, F.useContext)(dB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = tle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = kD(), d = t.selectedKey === e.id, f = oz(r) && !i, p = xL({
+function Ghe(e) {
+ let t = (0, F.useContext)(uB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = $ce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OD(), d = t.selectedKey === e.id, f = az(r) && !i, p = CL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: WR(!d),
+ isInert: UR(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Uw(o, { global: !0 });
+ }), m = Hw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: WR(!d || e.inert),
+ inert: UR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, null], [dB, null]] }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[lB, null], [uB, null]] }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
+var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, pB);
- let { hoverProps: n, isHovered: r } = ND(e), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
+}, qhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, fB);
+ let { hoverProps: n, isHovered: r } = MD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
...e,
values: {
isHovered: r,
@@ -42598,8 +42598,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(DL.textarea, {
- ...K(Ghe(e), o, n),
+ return /*#__PURE__*/ F.createElement(kL.textarea, {
+ ...K(Khe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42608,18 +42608,18 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), qhe = /*#__PURE__*/ (0, F.createContext)(null), Jhe = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, qhe);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = CL(e, i, kL);
- let [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = yse({
- ...TL(e),
+}), Jhe = /*#__PURE__*/ (0, F.createContext)(null), Yhe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = TL(e, t, Jhe);
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = TL(e, i, jL);
+ let [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = bse({
+ ...DL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = xL({
+ }, [i]), h = CL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42628,8 +42628,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Uw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), g = Hw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(kL.div, {
...g,
...h,
ref: t,
@@ -42638,31 +42638,31 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [FL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [LL, {
...l,
ref: a
}],
- [YL, {
+ [ZL, {
...u,
ref: m
}],
- [pB, {
+ [fB, {
...u,
ref: m
}],
- [qL, {
+ [YL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [VL, { slots: {
+ [UL, { slots: {
description: d,
errorMessage: f
} }],
- [HL, p]
+ [WL, p]
] }, h.children));
-}), Yhe = class e extends _S {
+}), Xhe = class e extends gS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42734,16 +42734,16 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Xhe = /*#__PURE__*/ (0, F.createContext)(null), mB = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, Xhe), /*#__PURE__*/ F.createElement(ow, {
- content: /*#__PURE__*/ F.createElement(pw, e),
- createCollection: () => new Yhe()
- }, (n) => /*#__PURE__*/ F.createElement(Qhe, {
+}, Zhe = /*#__PURE__*/ (0, F.createContext)(null), pB = /*#__PURE__*/ (0, F.createContext)(null), Qhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = TL(e, t, Zhe), /*#__PURE__*/ F.createElement(aw, {
+ content: /*#__PURE__*/ F.createElement(fw, e),
+ createCollection: () => new Xhe()
+ }, (n) => /*#__PURE__*/ F.createElement($he, {
props: e,
collection: n,
treeRef: t
}));
-}), hB = {
+}), mB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42753,17 +42753,17 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
rtl: "ArrowRight"
}
};
-function Qhe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Fw(), a = SD({
+function $he({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Pw(), a = xD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(NL), [y, b] = tE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- age(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = pz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(FL), [y, b] = eE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ oge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = fz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42771,7 +42771,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = nle({
+ }), { gridProps: O } = ele({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42785,7 +42785,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new Vz());
+ let [te] = (0, F.useState)(() => new Bz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42793,7 +42793,7 @@ function Qhe({ 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 wE({
+ let t = new CE({
collection: D.collection,
collator: a,
ref: n,
@@ -42815,12 +42815,12 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === hB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === hB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === mB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === mB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = kD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = OD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42828,7 +42828,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = xL({
+ }, ae = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42845,8 +42845,8 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let se = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42856,54 +42856,54 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [mB, D],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [pB, D],
+ [FR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [LR, { render: tge }]
- ] }, s && /*#__PURE__*/ F.createElement(ige, null), /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(h, {
+ [IR, { render: nge }]
+ ] }, s && /*#__PURE__*/ F.createElement(age, null), /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: zR(D.selectionManager, r, A),
+ persistedKeys: RR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: RR(r, A)
+ renderDropIndicator: LR(r, A)
}))), oe)), ee);
}
-var $he = /*#__PURE__*/ lw(class extends pS {
+var ege = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(gB), n = xL({
+ let t = (0, F.useContext)(hB), n = CL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, n.children);
-}), gB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ uw(class extends pS {
+ return /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, n.children);
+}), hB = /*#__PURE__*/ (0, F.createContext)(null), tge = /*#__PURE__*/ lw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(mB);
- t = XC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(IR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = _j({
+ let r = (0, F.useContext)(pB);
+ t = YC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(FR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = yj({
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: _ } = ND({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = MD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = kD(), { isFocusVisible: b, focusProps: x } = kD({ within: !0 }), { checkboxProps: S } = Jse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = OD(), { isFocusVisible: b, focusProps: x } = OD({ within: !0 }), { checkboxProps: S } = Yse({ 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 } = uE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = lE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42942,7 +42942,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
A,
M,
j
- ]), N = xL({
+ ]), N = CL({
...e,
id: void 0,
children: n.rendered,
@@ -42959,7 +42959,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = xS({
+ let P = bS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42969,7 +42969,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = zC(), re = Uw(e, { global: !0 });
+ }), ne = RC(), re = Hw(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"],
@@ -42992,7 +42992,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(DL.div, {
+ }))), /*#__PURE__*/ F.createElement(kL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -43012,17 +43012,17 @@ var $he = /*#__PURE__*/ lw(class extends pS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [KL, { slots: {
+ [xL]: {},
selection: S
} }],
- [GL, { slots: {
- [yL]: {},
+ [qL, { slots: {
+ [xL]: {},
selection: S
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
chevron: {
...u,
ref: T
@@ -43033,13 +43033,13 @@ var $he = /*#__PURE__*/ lw(class extends pS {
style: { pointerEvents: "none" }
}
} }],
- [gB, { ...ee }],
- [HR, { isSelected: f.isSelected }]
+ [hB, { ...ee }],
+ [VR, { isSelected: f.isSelected }]
] }, P))));
});
-lw(hS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(NL), i = (0, F.useContext)(mB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(FL), i = (0, F.useContext)(pB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ ez((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43048,11 +43048,11 @@ lw(hS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = XC(t);
- let { rowProps: u, gridCellProps: d } = _j({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = YC(t);
+ let { rowProps: u, gridCellProps: d } = yj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = xL({
+ }, m = CL({
...c,
id: void 0,
children: n.rendered,
@@ -43065,7 +43065,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: UR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43074,9 +43074,9 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(DL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(kL.div, {
ref: t,
- ...K(Uw(e), p),
+ ...K(Hw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43084,12 +43084,12 @@ lw(hS, function(e, t, n) {
style: h
}, m.children)));
});
-function tge(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function nge(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
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(rge, {
+ return /*#__PURE__*/ F.createElement(ige, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43098,8 +43098,8 @@ function tge(e, t) {
level: c
});
}
-function nge(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = uE(), c = xL({
+function rge(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lE(), c = CL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43108,7 +43108,7 @@ function nge(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43121,9 +43121,9 @@ function nge(e, t) {
ref: i
}), c.children));
}
-var rge = /*#__PURE__*/ (0, F.forwardRef)(nge);
-function ige() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(IR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = uE();
+var ige = /*#__PURE__*/ (0, F.forwardRef)(rge);
+function age() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(FR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = lE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43135,13 +43135,13 @@ function ige() {
ref: n
})));
}
-function age(e, t) {
+function oge(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 oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var 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,
@@ -43149,7 +43149,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), 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,
@@ -43157,7 +43157,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), 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,
@@ -43165,7 +43165,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), 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,
@@ -43173,7 +43173,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), 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,
@@ -43181,7 +43181,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), _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,
@@ -43189,7 +43189,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), 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,
@@ -43197,7 +43197,7 @@ var oge = ({ 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" })), uge = ({ 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" })), 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,
@@ -43205,7 +43205,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), 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,
@@ -43213,7 +43213,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), 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,
@@ -43221,7 +43221,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), 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,
@@ -43229,7 +43229,7 @@ var oge = ({ 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" })), dge = ({ 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" })), 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,
@@ -43237,7 +43237,7 @@ var oge = ({ 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" })), fge = ({ 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" })), 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,
@@ -43245,7 +43245,7 @@ var oge = ({ 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" })), pge = ({ 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" })), 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,
@@ -43253,7 +43253,7 @@ var oge = ({ 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" })), mge = ({ 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" })), 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,
@@ -43261,7 +43261,7 @@ var oge = ({ 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" })), hge = ({ 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" })), 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,
@@ -43269,7 +43269,7 @@ var oge = ({ 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" })), gge = ({ 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" })), _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,
@@ -43277,7 +43277,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43285,7 +43285,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43293,7 +43293,7 @@ var oge = ({ 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" })), _ge = ({ 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" })), 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,
@@ -43301,7 +43301,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), 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,
@@ -43309,7 +43309,7 @@ var oge = ({ 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" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43317,7 +43317,7 @@ var oge = ({ 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" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43325,7 +43325,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43333,7 +43333,7 @@ var oge = ({ 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" })), bge = ({ 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" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43341,7 +43341,7 @@ var oge = ({ 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" })), xge = ({ 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" })), 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,
@@ -43349,7 +43349,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), 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,
@@ -43357,7 +43357,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43365,7 +43365,7 @@ var oge = ({ 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" })), Cge = ({ 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" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43373,7 +43373,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43381,7 +43381,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43389,7 +43389,7 @@ var oge = ({ 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" })), wge = ({ 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" })), 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,
@@ -43397,7 +43397,7 @@ var oge = ({ 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" })), Tge = ({ 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" })), 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,
@@ -43405,7 +43405,7 @@ var oge = ({ 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" })), Ege = ({ 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" })), 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,
@@ -43413,7 +43413,7 @@ var oge = ({ 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" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), 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 oge = ({ 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" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43429,7 +43429,7 @@ var oge = ({ 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" })), AB = ({ 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" })), 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,
@@ -43437,7 +43437,7 @@ var oge = ({ 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" })), kge = ({ 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" })), 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,
@@ -43445,7 +43445,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43453,7 +43453,7 @@ var oge = ({ 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" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), 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,
@@ -43461,7 +43461,7 @@ var oge = ({ 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" })), NB = ({ 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" })), 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,
@@ -43469,7 +43469,7 @@ var oge = ({ 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" })), Age = ({ 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" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43477,7 +43477,7 @@ var oge = ({ 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" })), PB = ({ 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" })), 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,
@@ -43485,7 +43485,7 @@ var oge = ({ 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" })), FB = ({ 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" })), 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,
@@ -43493,7 +43493,7 @@ var oge = ({ 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" })), jge = ({ 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" })), 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,
@@ -43501,7 +43501,7 @@ var oge = ({ 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" })), Mge = ({ 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" })), 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,
@@ -43509,7 +43509,7 @@ var oge = ({ 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" })), Nge = ({ 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" })), 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,
@@ -43517,7 +43517,7 @@ var oge = ({ 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" })), IB = ({ 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" })), 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,
@@ -43525,7 +43525,7 @@ var oge = ({ 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" })), Pge = ({ 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" })), 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,
@@ -43533,7 +43533,7 @@ var oge = ({ 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" })), Fge = ({ 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" })), 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,
@@ -43541,7 +43541,7 @@ var oge = ({ 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" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), 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,
@@ -43549,7 +43549,7 @@ var oge = ({ 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" })), LB = ({ 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" })), 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,
@@ -43557,7 +43557,7 @@ var oge = ({ 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" })), Lge = ({ 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" })), 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,
@@ -43565,7 +43565,7 @@ var oge = ({ 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" })), Rge = ({ 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" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43573,7 +43573,7 @@ var oge = ({ 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" })), zge = ({ 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" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43581,7 +43581,7 @@ var oge = ({ 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" })), RB = ({ 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" })), 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,
@@ -43589,7 +43589,7 @@ var oge = ({ 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" })), zB = ({ 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" })), 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,
@@ -43597,7 +43597,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), 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,
@@ -43605,7 +43605,7 @@ var oge = ({ 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" })), VB = ({ 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" })), 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,
@@ -43613,7 +43613,7 @@ var oge = ({ 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" })), HB = ({ 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" })), 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,
@@ -43621,7 +43621,7 @@ var oge = ({ 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" })), Bge = ({ 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" })), 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,
@@ -43629,7 +43629,7 @@ var oge = ({ 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" })), UB = ({ 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" })), 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,
@@ -43637,7 +43637,7 @@ var oge = ({ 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" })), Vge = ({ 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" })), 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,
@@ -43645,7 +43645,7 @@ var oge = ({ 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" })), Hge = ({ 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" })), 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,
@@ -43653,7 +43653,7 @@ var oge = ({ 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" })), WB = ({ 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" })), 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,
@@ -43661,7 +43661,7 @@ var oge = ({ 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" })), GB = ({ 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" })), 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,
@@ -43669,7 +43669,7 @@ var oge = ({ 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" })), KB = ({ 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" })), 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,
@@ -43677,7 +43677,7 @@ var oge = ({ 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" })), Uge = ({ 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" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43685,7 +43685,7 @@ var oge = ({ 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" })), qB = ({ 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" })), 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,
@@ -43693,7 +43693,7 @@ var oge = ({ 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" })), Wge = ({ 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" })), 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,
@@ -43701,7 +43701,7 @@ var oge = ({ 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" })), JB = ({ 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" })), 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,
@@ -43709,7 +43709,7 @@ var oge = ({ 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" })), Gge = ({ 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" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43717,7 +43717,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43725,7 +43725,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43733,7 +43733,7 @@ var oge = ({ 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" })), Jge = ({ 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" })), Yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43741,7 +43741,7 @@ var oge = ({ 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" })), Yge = ({ 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" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43749,7 +43749,7 @@ var oge = ({ 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" })), YB = ({ 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" })), 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,
@@ -43757,7 +43757,7 @@ var oge = ({ 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" })), Xge = ({ 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" })), Zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43765,7 +43765,7 @@ var oge = ({ 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" })), XB = ({ 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" })), 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,
@@ -43773,7 +43773,7 @@ var oge = ({ 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" })), ZB = ({ 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" })), 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,
@@ -43781,7 +43781,7 @@ var oge = ({ 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" })), QB = ({ 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" })), 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,
@@ -43789,7 +43789,7 @@ var oge = ({ 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" })), Zge = ({ 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" })), Qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43797,7 +43797,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), Qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), $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,
@@ -43805,7 +43805,7 @@ var oge = ({ 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" })), $B = ({ 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" })), 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,
@@ -43813,7 +43813,7 @@ var oge = ({ 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" })), e_e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43823,8 +43823,8 @@ var oge = ({ 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 eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(IL, {
+function $B({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(RL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43835,7 +43835,7 @@ function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Pge, {
+ n && /* @__PURE__ */ (0, I.jsx)(Fge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43843,23 +43843,23 @@ function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function tV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Jpe, {
+function eV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Kpe, {
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 nV = (0, F.createContext)({});
-function rV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(nV.Provider, {
+var tV = (0, F.createContext)({});
+function nV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(tV.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Jhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Yhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43867,8 +43867,8 @@ function rV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-rV.displayName = "TextField";
-var iV = NI({
+nV.displayName = "TextField";
+var rV = FI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43883,44 +43883,44 @@ var iV = NI({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function aV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(nV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(JL, {
+function iV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(tV), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(XL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(iV.field, d ? iV.fieldWithAddonSize[u] : iV.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(rV.field, d ? rV.fieldWithAddonSize[u] : rV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: iV.content,
+ className: rV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: iV.leftSection,
+ className: rV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: iV.icon,
+ className: rV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(eme, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Qpe, {
ref: o,
...c,
- className: q(iV.input, l.inputClassName, a)
+ className: q(rV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: iV.icon,
+ className: rV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-aV.displayName = "InputBase";
-function oV({ 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)(rV, {
+iV.displayName = "InputBase";
+function aV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(nV, {
...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)(eV, {
+ e && /* @__PURE__ */ (0, I.jsx)($B, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43929,25 +43929,25 @@ function oV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(tV, {
+ t && /* @__PURE__ */ (0, I.jsx)(eV, {
isInvalid: d,
children: t
})
] })
});
}
-oV.displayName = "Input";
+aV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var e_e = {
+var t_e = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl",
tutorial: "max-w-2xl"
};
-function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = EC();
- return /* @__PURE__ */ (0, I.jsx)(Oz, {
+function oV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = TC();
+ return /* @__PURE__ */ (0, I.jsx)(Dz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43955,11 +43955,11 @@ function sV({ 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)(Ime, {
+ children: /* @__PURE__ */ (0, I.jsx)(Lme, {
"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", e_e[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", t_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Cz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43967,7 +43967,7 @@ function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function cV({ children: e }) {
+function sV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -43975,7 +43975,7 @@ function cV({ children: e }) {
});
}
// src/react/components/note.tsx
-function lV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function cV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44023,11 +44023,11 @@ function lV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var t_e = {
+var n_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function n_e({ target: e, children: t }) {
+function r_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -44035,11 +44035,11 @@ function n_e({ target: e, children: t }) {
children: t
});
}
-function uV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function lV({ 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 ${t_e[i]}`,
+ className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${n_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44065,9 +44065,9 @@ function uV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var dV = /* @__PURE__ */ new Map();
-function fV(e) {
- let t = dV.get(e);
+var uV = /* @__PURE__ */ new Map();
+function dV(e) {
+ let t = uV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Cn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -44083,10 +44083,10 @@ function fV(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})`, dV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, uV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function pV({ label: e, id: t, onPress: n }) {
+function fV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44101,60 +44101,60 @@ function pV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function mV(e) {
+function pV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var hV = ["library-shortcuts"], gV = "/api/library-shortcuts";
-function _V(e = !0) {
+var mV = ["library-shortcuts"], hV = "/api/library-shortcuts";
+function gV(e = !0) {
return Ft({
- queryKey: hV,
- queryFn: ({ signal: e }) => B(gV, e),
+ queryKey: mV,
+ queryFn: ({ signal: e }) => B(hV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function vV() {
+function _V() {
return It({
- mutationKey: hV,
- mutationFn: (e) => V(gV, e),
+ mutationKey: mV,
+ mutationFn: (e) => V(hV, e),
onSuccess: (e, t) => {
- H.setQueryData(hV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(mV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function yV(e, t) {
+function vV(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 r_e(e) {
+function i_e(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Pn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var bV = fV("star"), i_e = fV("bookmark-plus"), xV = fV("chevron-right"), SV = {
+var yV = dV("star"), a_e = dV("bookmark-plus"), bV = dV("chevron-right"), xV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, CV = {
- all: fV("star"),
- performer: fV("user-round"),
- creator: fV("user-round"),
- studio: fV("clapperboard"),
- series: fV("film"),
- agency: fV("briefcase"),
- tag: fV("tags"),
- filters: fV("list-filter")
-}, wV = [
+}, SV = {
+ all: dV("star"),
+ performer: dV("user-round"),
+ creator: dV("user-round"),
+ studio: dV("clapperboard"),
+ series: dV("film"),
+ agency: dV("briefcase"),
+ tag: dV("tags"),
+ filters: dV("list-filter")
+}, CV = [
["all", "全部"],
- ...Object.entries(SV),
+ ...Object.entries(xV),
["filters", "保存的筛选"]
];
-function TV({ label: e, children: t, ...n }) {
+function wV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44164,20 +44164,20 @@ function TV({ label: e, children: t, ...n }) {
children: t
});
}
-function EV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(a_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function TV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(o_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function a_e({ item: e }) {
- rL();
- let t = _V(!1), n = (0, F.useRef)(t.data), r = vV(), i = t.data && t.data !== n.current ? yV(t.data.favorites || [], e) : e.favorite ?? (t.data ? yV(t.data.favorites || [], e) : !1);
+function o_e({ item: e }) {
+ aL();
+ let t = gV(!1), n = (0, F.useRef)(t.data), r = _V(), i = t.data && t.data !== n.current ? vV(t.data.favorites || [], e) : e.favorite ?? (t.data ? vV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(TV, {
+ /* @__PURE__ */ (0, I.jsx)(wV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...mV(r.isPending),
+ ...pV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44188,9 +44188,9 @@ function a_e({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(bV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(yV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44204,38 +44204,38 @@ function a_e({ item: e }) {
]
});
}
-function DV({ currentHref: e, kind: t }) {
+function EV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(uL, {
+ children: /* @__PURE__ */ (0, I.jsx)(fL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: bV,
+ icon: yV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(oV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(o_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(s_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function o_e({ currentHref: e, kind: t, close: n }) {
- rL();
- let r = _V(), i = vV(), [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 s_e({ currentHref: e, kind: t, close: n }) {
+ aL();
+ let r = gV(), i = _V(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = gL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = vL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44248,7 +44248,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = wV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = CV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -44271,7 +44271,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44301,8 +44301,8 @@ function o_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- wV.map(([e, t]) => {
- let n = CV[e] || bV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ CV.map(([e, t]) => {
+ let n = SV[e] || yV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44334,17 +44334,17 @@ function o_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(i_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(a_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 })
]
})]
})]
@@ -44363,7 +44363,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44372,16 +44372,16 @@ function o_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: fV("list-filter"),
+ icon: dV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
onClick: n,
@@ -44400,7 +44400,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...mV(i.isPending),
+ ...pV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44415,7 +44415,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44424,7 +44424,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...mV(i.isPending),
+ ...pV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44435,16 +44435,16 @@ function o_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: fV("search"),
+ leadingIcon: dV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: bV,
+ icon: yV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44454,7 +44454,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
onClick: n,
@@ -44468,25 +44468,25 @@ function o_e({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: r_e(e),
+ href: i_e(e),
"aria-label": nn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(s_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(c_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: nn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : SV[e.kind]
+ children: e.scope === "online" ? "在线标签" : xV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...mV(i.isPending),
+ ...pV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44504,8 +44504,8 @@ function o_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function s_e({ item: e }) {
- let t = CV[e.kind] || bV;
+function c_e({ item: e }) {
+ let t = SV[e.kind] || yV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44523,11 +44523,11 @@ function s_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function c_e(e) {
+function l_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function l_e(e) {
+function u_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44541,7 +44541,7 @@ function l_e(e) {
})
});
}
-function u_e(e) {
+function d_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44555,7 +44555,7 @@ function u_e(e) {
})
});
}
-function OV(e) {
+function DV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44568,7 +44568,7 @@ function OV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function d_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function f_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
@@ -44576,14 +44576,14 @@ function d_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(u_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(d_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function OV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
@@ -44596,7 +44596,7 @@ function kV({ 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)(c_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(l_e, {
href: n,
className: s,
children: o
@@ -44609,14 +44609,14 @@ function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function AV() {
- return Fw().direction;
+function kV() {
+ return Pw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var jV = "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", f_e = "w-[266px]", p_e = "flex w-full flex-col gap-1 outline-none", MV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", NV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var AV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", p_e = "w-[266px]", m_e = "flex w-full flex-col gap-1 outline-none", jV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", MV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function m_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = AV(), l = (0, F.useContext)(NL), u = l === jL && !s.dragAndDropHooks ? FV : l;
+function h_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = kV(), l = (0, F.useContext)(FL), u = l === NL && !s.dragAndDropHooks ? PV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44633,23 +44633,23 @@ function m_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(NL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(FL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Qhe, {
...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 === FV ? "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 === PV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = AV();
- return /* @__PURE__ */ (0, I.jsxs)(ege, {
+function NV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = kV();
+ return /* @__PURE__ */ (0, I.jsxs)(tge, {
...u,
ref: l,
textValue: t,
@@ -44658,10 +44658,10 @@ function PV({ 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)($he, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? NB : jB : Tge);
+ children: [/* @__PURE__ */ (0, I.jsx)(ege, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? MB : AB : Ege);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(g_e, {
+ /* @__PURE__ */ (0, I.jsx)(__e, {
state: l,
id: u,
level: c,
@@ -44671,11 +44671,11 @@ function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(BL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: /* @__PURE__ */ (0, I.jsx)(vB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44699,24 +44699,24 @@ function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var FV = {
- ...jL,
- CollectionRoot: h_e
+var PV = {
+ ...NL,
+ CollectionRoot: g_e
};
-function h_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(mB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {
+function g_e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(pB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(kx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(__e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(v_e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(jL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(NL.CollectionRoot, {
collection: e,
...t
});
}
-function g_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function __e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -44775,9 +44775,9 @@ function g_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function __e({ state: e, children: t }) {
- let n = Dx(), r = eS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(fS.div, {
+function v_e({ state: e, children: t }) {
+ let n = Ex(), r = $x(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(dS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44816,14 +44816,14 @@ function __e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(mB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(pB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var IV = {
+var FV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44837,8 +44837,8 @@ var IV = {
gap: "gap-1.5"
}
};
-function LV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = IV[t], c = n || r, l = o && !a;
+function IV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = FV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -44864,13 +44864,13 @@ function LV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function RV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = IV[n];
- return /* @__PURE__ */ (0, I.jsx)(Zpe, {
+function LV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = FV[n];
+ return /* @__PURE__ */ (0, I.jsx)(Ype, {
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)(LV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(IV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44880,7 +44880,7 @@ function RV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function zV() {
+function RV() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44892,43 +44892,43 @@ function zV() {
}, []), e;
}
// src/react/providers.tsx
-var BV = null;
-function v_e() {
- return BV?.isConnected || (BV = document.createElement("div"), BV.className = "peach-react", BV.dataset.reactOverlays = "", document.body.append(BV)), BV;
+var zV = null;
+function y_e() {
+ return zV?.isConnected || (zV = document.createElement("div"), zV.className = "peach-react", zV.dataset.reactOverlays = "", document.body.append(zV)), zV;
}
-function VV({ children: e }) {
+function BV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(iie, {
+ children: /* @__PURE__ */ (0, I.jsx)(aie, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(wD, {
- getContainer: v_e,
+ children: /* @__PURE__ */ (0, I.jsx)(CD, {
+ getContainer: y_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function y_e(e) {
+function b_e(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var b_e = (e) => {
+var x_e = (e) => {
switch (e) {
- case "success": return C_e;
- case "info": return T_e;
- case "warning": return w_e;
- case "error": return E_e;
+ case "success": return w_e;
+ case "info": return E_e;
+ case "warning": return T_e;
+ case "error": return D_e;
default: return null;
}
-}, x_e = Array(12).fill(0), S_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, S_e = Array(12).fill(0), C_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, x_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, S_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), C_e = /*#__PURE__*/ F.createElement("svg", {
+})))), w_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44939,7 +44939,7 @@ var b_e = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), w_e = /*#__PURE__*/ F.createElement("svg", {
+})), T_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44950,7 +44950,7 @@ var b_e = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), T_e = /*#__PURE__*/ F.createElement("svg", {
+})), E_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44961,7 +44961,7 @@ var b_e = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), E_e = /*#__PURE__*/ F.createElement("svg", {
+})), D_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44972,7 +44972,7 @@ var b_e = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), D_e = /*#__PURE__*/ F.createElement("svg", {
+})), O_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44993,7 +44993,7 @@ var b_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), O_e = () => {
+})), k_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -45001,7 +45001,7 @@ var b_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, k_e = 1, A_e = 100, HV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : k_e++, UV = new class {
+}, A_e = 1, j_e = 100, VV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : A_e++, HV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -45011,10 +45011,10 @@ var b_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - A_e;
+ let e = this.toasts.length - j_e;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = HV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = VV(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -45089,7 +45089,7 @@ var b_e = (e) => {
type: "default",
message: e
});
- else if (M_e(e) && !e.ok) {
+ else if (N_e(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -45133,7 +45133,7 @@ var b_e = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = HV(t);
+ let n = VV(t);
return this.create({
...t,
jsx: e(n),
@@ -45142,34 +45142,34 @@ var b_e = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), j_e = (e, t) => UV.message(e, t), M_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", WV = Object.assign(j_e, {
- success: UV.success,
- info: UV.info,
- warning: UV.warning,
- error: UV.error,
- custom: UV.custom,
- message: UV.message,
- promise: UV.promise,
- dismiss: UV.dismiss,
- loading: UV.loading
+}(), M_e = (e, t) => HV.message(e, t), N_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", UV = Object.assign(M_e, {
+ success: HV.success,
+ info: HV.info,
+ warning: HV.warning,
+ error: HV.error,
+ custom: HV.custom,
+ message: HV.message,
+ promise: HV.promise,
+ dismiss: HV.dismiss,
+ loading: HV.loading
}, {
- getHistory: () => UV.toasts,
- getToasts: () => UV.getActiveToasts()
+ getHistory: () => HV.toasts,
+ getToasts: () => HV.getActiveToasts()
});
-y_e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function GV(e) {
+b_e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function WV(e) {
return e.label !== void 0;
}
-var N_e = 3, P_e = "24px", F_e = "16px", KV = 4e3, I_e = 356, L_e = 14, R_e = 45, z_e = 200;
-function qV(...e) {
+var P_e = 3, F_e = "24px", I_e = "16px", GV = 4e3, L_e = 356, R_e = 14, z_e = 45, B_e = 200;
+function KV(...e) {
return e.filter(Boolean).join(" ");
}
-function B_e(e) {
+function V_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var V_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 || KV), 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 || KV, [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 = O_e(), ke = F.useMemo(() => e.swipeDirections ?? B_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var H_e = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || GV), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || GV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = k_e(), ke = F.useMemo(() => e.swipeDirections ?? V_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {
ce.current = be;
}, [be]), F.useEffect(() => {
@@ -45210,7 +45210,7 @@ var V_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, z_e);
+ }, B_e);
}, [
n,
d,
@@ -45241,18 +45241,18 @@ var V_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: qV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: KV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(S_e, {
- className: qV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(C_e, {
+ className: KV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || b_e(pe);
+ let Pe = n.icon || w?.[pe] || x_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: qV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: KV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -45295,7 +45295,7 @@ var V_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) >= 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);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= z_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -45334,46 +45334,46 @@ var V_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: qV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? D_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: KV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? O_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: qV(C?.icon, n?.classNames?.icon)
+ className: KV(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: qV(C?.content, n?.classNames?.content)
+ className: KV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: qV(C?.title, n?.classNames?.title)
+ className: KV(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: qV(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 && GV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: KV(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && WV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- GV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ WV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: qV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && GV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: KV(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && WV(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- GV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ WV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: qV(C?.actionButton, n?.classNames?.actionButton)
+ className: KV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function JV() {
+function qV() {
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 H_e(e, t) {
+function U_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? F_e : P_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? I_e : F_e;
function o(e) {
[
"top",
@@ -45394,11 +45394,11 @@ function H_e(e, t) {
}) : o(a);
}), n;
}
-var YV = /*#__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 = N_e, toastOptions: g, dir: _ = JV(), gap: v = L_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 || UV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var JV = /*#__PURE__*/ F.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = P_e, toastOptions: g, dir: _ = qV(), gap: v = R_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || HV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => UV.subscribe((e) => {
+ return F.useEffect(() => HV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45467,7 +45467,7 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? JV() : _,
+ dir: _ === "auto" ? qV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45477,10 +45477,10 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${I_e}px`,
+ "--width": `${L_e}px`,
"--gap": `${v}px`,
...m,
- ...H_e(l, u)
+ ...U_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45498,7 +45498,7 @@ var YV = /*#__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(V_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(H_e, {
key: n.id,
icons: y,
index: i,
@@ -45528,35 +45528,35 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), XV = "/api/library-processing", ZV = ["library-processing"], U_e = (e, t, n) => {
+}), YV = "/api/library-processing", XV = ["library-processing"], W_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(`${XV}?${r}`, t);
-}, W_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(`${YV}?${r}`, t);
+}, G_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function QV(e) {
+function ZV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = W_e[e.current_action || ""];
+ let t = G_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function $V({ what: e, source: t }) {
+function QV({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var eH = (e) => !!e && [
+var $V = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), tH = (e) => e?.status === "failed" && e.outcome === "partial", nH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", rH = "/?loc=&thumb=0";
-function iH(e) {
- if (!eH(e)) return "";
+].includes(e.status), eH = (e) => e?.status === "failed" && e.outcome === "partial", tH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", nH = "/?loc=&thumb=0";
+function rH(e) {
+ if (!$V(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45567,30 +45567,30 @@ function iH(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 aH = (e) => B(XV, e);
-async function oH(e) {
+var iH = (e) => B(YV, e);
+async function aH(e) {
await H.fetchQuery({
- queryKey: ZV,
- queryFn: () => aH(e)
+ queryKey: XV,
+ queryFn: () => iH(e)
});
}
-var G_e = 2e3, K_e = 1e4, sH = "连接中断,正在重新读取处理进度", q_e = {
+var K_e = 2e3, q_e = 1e4, oH = "连接中断,正在重新读取处理进度", J_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function J_e(e, t) {
+function Y_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function Y_e(e) {
- let t = q_e[e.trigger || ""];
+function X_e(e) {
+ let t = J_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function cH(e, t) {
- return eH(e) ? G_e : t ? K_e : !1;
+function sH(e, t) {
+ return $V(e) ? K_e : t ? q_e : !1;
}
-var X_e = {
+var Z_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45599,25 +45599,25 @@ var X_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, lH = {
+}, cH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Z_e(e) {
- let t = Object.entries(e).filter(([e, t]) => lH[e] && t > 0).map(([e, t]) => `${lH[e]} ${t.toLocaleString()} 部`);
+function Q_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => cH[e] && t > 0).map(([e, t]) => `${cH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Q_e(e) {
+function $_e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = X_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${ZI(e.waited_seconds)}` : "";
+ let t = Z_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${$I(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function $_e(e) {
- let t = e.total ? `${QI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Q_e(e) + (t ? ` · ${t}` : "");
-}
function eve(e) {
+ let t = e.total ? `${eL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return $_e(e) + (t ? ` · ${t}` : "");
+}
+function tve(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45631,22 +45631,22 @@ function eve(e) {
log: e.issues_log || ""
} : null;
}
-var uH = "peach.library-processing.announced", tve = 120;
-function dH(e) {
+var lH = "peach.library-processing.announced", nve = 120;
+function uH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < tve;
+ return !!e.job_id && t >= 0 && t < nve;
}
-function nve(e, t, n) {
- if (e.status === "complete" && (n || dH(e))) {
+function rve(e, t, n) {
+ if (e.status === "complete" && (n || uH(e))) {
try {
- if (e.job_id && localStorage.getItem(uH) === e.job_id) return;
- e.job_id && localStorage.setItem(uH, e.job_id);
+ if (e.job_id && localStorage.getItem(lH) === e.job_id) return;
+ e.job_id && localStorage.setItem(lH, 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 fH = NI({
+var dH = FI({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45663,15 +45663,15 @@ var fH = NI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function pH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(fH.base, fH.size[t], fH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function fH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(dH.base, dH.size[t], dH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: fH.icon[t],
+ className: dH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: fH.icon[t],
+ className: dH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45697,7 +45697,7 @@ function pH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function mH(e = "") {
+function pH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45722,10 +45722,10 @@ function mH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function hH({ state: e }) {
- let t = mH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(XV, e, "POST", t), (e) => {
- H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+function mH({ state: e }) {
+ let t = pH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(YV, e, "POST", t), (e) => {
+ H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45737,7 +45737,7 @@ function hH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...mV(t.busy === "skip_current"),
+ ...pV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45761,37 +45761,37 @@ function hH({ state: e }) {
]
});
}
-function rve({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(lV, {
+function ive({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(hH, { state: e }),
- children: $V(t)
+ action: /* @__PURE__ */ (0, I.jsx)(mH, { state: e }),
+ children: QV(t)
});
}
-function ive({ state: e, slow: t }) {
+function ave({ 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: $V(t)
- }), /* @__PURE__ */ (0, I.jsx)(hH, { state: e })]
+ children: QV(t)
+ }), /* @__PURE__ */ (0, I.jsx)(mH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var ave = {
+var ove = {
selection: {
- type: Lg,
+ type: Fg,
duration: .16,
bounce: 0
},
hover: {
- type: Lg,
+ type: Fg,
duration: .08,
bounce: 0
}
};
-function gH(e) {
+function hH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45812,7 +45812,7 @@ function gH(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 = dae(n, { transform: [r, E] }, ave[e]);
+ l = fae(n, { transform: [r, E] }, ove[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45848,24 +45848,24 @@ function gH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function _H(e) {
- let t = gH("hover");
- return /* @__PURE__ */ (0, I.jsx)(wz, {
+function gH(e) {
+ let t = hH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Cz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var vH = [
+var _H = [
"low",
"standard",
"high"
-], yH = [
+], vH = [
"低占用",
"标准",
"全速"
-], bH = fV("snail"), xH = fV("zap");
-function SH({ className: e }) {
+], yH = dV("snail"), bH = dV("zap");
+function xH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45896,12 +45896,12 @@ function SH({ className: e }) {
]
});
}
-var ove = [
+var sve = [
+ yH,
bH,
- xH,
- SH
+ xH
];
-function sve({ animate: e }) {
+function cve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45933,8 +45933,8 @@ function sve({ animate: e }) {
} }, t))]
});
}
-function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, vH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, _H.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45945,7 +45945,7 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), yH[a]]
+ }), vH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45953,19 +45953,19 @@ function CH({ 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)(bH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(SH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(sme, {
+ /* @__PURE__ */ (0, I.jsxs)(ame, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45974,10 +45974,10 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(vH[e]);
+ e !== i && n(_H[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45997,11 +45997,11 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(sve, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(cme, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(cve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(ome, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(lme, {
- "aria-label": yH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(sme, {
+ "aria-label": vH[a],
className: "processing-effort-thumb"
})
})
@@ -46015,8 +46015,8 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function cve({ 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, vH.indexOf(e));
+function lve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, _H.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46024,28 +46024,28 @@ function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${yH[s]}`,
+ "aria-label": `处理速度:${vH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: ove[s],
- trailingIcon: _B,
+ leadingIcon: sve[s],
+ trailingIcon: gB,
onClick: () => {
t || o(!a);
},
- children: yH[s]
+ children: vH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(uz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsx)(_H, {
+ className: AV,
+ children: /* @__PURE__ */ (0, I.jsx)(gH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(CH, {
+ children: /* @__PURE__ */ (0, I.jsx)(SH, {
value: e,
busy: t,
onChange: n,
@@ -46055,10 +46055,10 @@ function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function wH({ state: e, disabled: t = !1 }) {
- let n = mH(), r = (0, F.useRef)(!1), i = eH(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(XV, e, "POST", t), (e) => {
- H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+function CH({ state: e, disabled: t = !1 }) {
+ let n = pH(), r = (0, F.useRef)(!1), i = $V(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(YV, e, "POST", t), (e) => {
+ H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
});
}, l = () => {
let i = e.job_id;
@@ -46082,7 +46082,7 @@ function wH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(cve, {
+ /* @__PURE__ */ (0, I.jsx)(lve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46096,11 +46096,11 @@ function wH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? VB : zB,
+ leadingIcon: e.status === "paused" ? BB : RB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...mV(n.busy === "pause" || n.busy === "resume"),
+ ...pV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46112,11 +46112,11 @@ function wH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: JB,
+ leadingIcon: qB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...mV(n.busy === "cancel"),
+ ...pV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46128,11 +46128,11 @@ function wH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function TH({ toast: e, mode: t, monitor: n }) {
+function wH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: ZV,
- queryFn: ({ signal: e }) => aH(e),
- refetchInterval: (e) => cH(e.state.data, r)
+ queryKey: XV,
+ queryFn: ({ signal: e }) => iH(e),
+ refetchInterval: (e) => sH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -46143,8 +46143,8 @@ function TH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !eH(c);
- r && o(c), (r || t === "notice") && nve(c, e, r);
+ ].includes(n) && !$V(c);
+ r && o(c), (r || t === "notice") && rve(c, e, r);
}, [
c,
t,
@@ -46156,7 +46156,7 @@ function TH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function EH({ label: e }) {
+function TH({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -46175,21 +46175,21 @@ function EH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var DH = 100, lve = .4;
-function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
- let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * DH;
+var EH = 100, uve = .4;
+function DH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
+ let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * EH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: a ? "meter" : "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": o,
"aria-valuenow": s(t),
- viewBox: `0 0 ${DH} 1`,
+ viewBox: `0 0 ${EH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: DH,
+ width: EH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46200,7 +46200,7 @@ function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: c(e),
- width: lve,
+ width: uve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46208,11 +46208,11 @@ function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function kH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function OH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DH, {
label: e,
value: t,
max: n,
@@ -46220,11 +46220,11 @@ function kH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(EH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(TH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function AH(e) {
+function kH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46240,17 +46240,17 @@ function AH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return $_e(a ? {
+ return eve(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function uve({ state: e }) {
- return AH(e);
-}
function dve({ state: e }) {
- let t = AH(e);
- return /* @__PURE__ */ (0, I.jsx)(kH, {
+ return kH(e);
+}
+function fve({ state: e }) {
+ let t = kH(e);
+ return /* @__PURE__ */ (0, I.jsx)(OH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46258,7 +46258,7 @@ function dve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function jH({ open: e, children: t, ...n }) {
+function AH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46269,7 +46269,7 @@ function jH({ open: e, children: t, ...n }) {
children: t
});
}
-function MH(e) {
+function jH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46284,19 +46284,19 @@ function MH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function NH({ className: e, children: t }) {
+function MH({ 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 PH({ className: e, children: t }) {
+function NH({ 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 fve({ label: e, description: t, children: n }) {
+function pve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46312,7 +46312,7 @@ function fve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function mve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [n, e]
@@ -46320,12 +46320,12 @@ function pve({ 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)(PH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(NH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(PH, { children: s }), /* @__PURE__ */ (0, I.jsx)(NH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(NH, { children: s }), /* @__PURE__ */ (0, I.jsx)(MH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46342,13 +46342,13 @@ function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function mve({ children: e }) {
+function hve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function hve({ divided: e = !1, children: t }) {
+function gve({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden [&>.ui-settings-facts]:-mr-3",
children: t
@@ -46357,7 +46357,7 @@ function hve({ divided: e = !1, children: t }) {
children: t
});
}
-function gve({ label: e, html: t }) {
+function _ve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46367,7 +46367,7 @@ function gve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function _ve({ status: e, children: t }) {
+function vve({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -46376,34 +46376,44 @@ function _ve({ status: e, children: t }) {
}) : null, t]
});
}
-function FH({ role: e, children: t }) {
+function PH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function IH({ children: e }) {
+function FH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function LH({ children: e }) {
+function yve({ label: e, steps: t }) {
+ return /* @__PURE__ */ (0, I.jsx)("ol", {
+ className: "flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary",
+ "aria-label": e,
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", { children: [e.text, /* @__PURE__ */ (0, I.jsx)("code", {
+ className: "mt-1 block rounded-md bg-background-tertiary-default px-2 py-1 text-caption-1-regular break-all text-text-primary",
+ children: e.command
+ })] }, e.command))
+ });
+}
+function IH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function vve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(pH, {
+function bve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(fH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: OB,
+ trailingIcon: DB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46411,22 +46421,22 @@ function vve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function yve() {
- return /* @__PURE__ */ (0, I.jsx)(pH, {
+function xve() {
+ return /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/tasks",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function bve({ children: e }) {
+function Sve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function xve({ term: e, children: t }) {
+function Cve({ 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", {
@@ -46438,7 +46448,7 @@ function xve({ term: e, children: t }) {
})]
});
}
-function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function LH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
@@ -46454,12 +46464,12 @@ function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(vB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(vB, {
"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
@@ -46475,7 +46485,7 @@ function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function Sve({ name: e }) {
+function wve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46485,34 +46495,34 @@ function Sve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function zH({ mark: e }) {
+function RH({ 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)(Sve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(wve, { name: e });
}
// src/react/components/source-label.tsx
-var BH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Cve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var zH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Tve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(RH, { mark: t })
});
}]));
-function wve({ className: e }) {
+function Eve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(RH, { mark: "database" })
});
}
-var VH = (e) => Cve[BH(e)] ?? wve;
-function Tve({ site: e, label: t }) {
+var BH = (e) => Tve[zH(e)] ?? Eve;
+function Dve({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" || e === "dmm" ? `/site-mark?source=${e}` : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(zH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(RH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46523,24 +46533,24 @@ function Tve({ site: e, label: t }) {
})]
});
}
-function HH({ source: e, label: t }) {
- let n = BH(e);
+function VH({ source: e, label: t }) {
+ let n = zH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(RH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var UH = (e) => Xn(e).replace(/\s/g, ""), WH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : UH(e), Eve = (e, t) => {
- if (e === t) return UH(t);
+var HH = (e) => Xn(e).replace(/\s/g, ""), UH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : HH(e), Ove = (e, t) => {
+ if (e === t) return HH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${UH(e)}-${UH(t)}`;
-}, GH = (e, t, n) => e === void 0 ? Eve(t, n) : `${e > 0 ? "约 " : ""}${UH(e)}`;
-function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = zV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${HH(e)}-${HH(t)}`;
+}, WH = (e, t, n) => e === void 0 ? Ove(t, n) : `${e > 0 ? "约 " : ""}${HH(e)}`;
+function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = RV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
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", {
@@ -46577,7 +46587,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(jH, {
+ }), /* @__PURE__ */ (0, I.jsx)(AH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46591,25 +46601,25 @@ function KH({ 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)(PB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NB, {
"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: GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: WH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- GH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ WH(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 ? "约 " : "", UH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", HH(e.used_bytes)] }),
" · 代理 ",
- UH(e.metered_used_bytes)
+ HH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46618,25 +46628,25 @@ function KH({ 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)($B, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QB, {
"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: ["约 ", UH(e.disk.estimated_bytes)]
+ children: ["约 ", HH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", WH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", UH(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 ? "未取得" : UH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : HH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", UH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", HH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46652,7 +46662,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? bB : _B,
+ trailingIcon: l ? yB : gB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46671,12 +46681,12 @@ function KH({ 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)(HH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(VH, {
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)(zH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(RH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46698,7 +46708,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- WH(e.workload.metadata_average_bytes || 0),
+ UH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46708,8 +46718,8 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- UH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ HH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", WH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46722,15 +46732,15 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var qH = "peach.library-processing.collapsed";
-function JH(e) {
+var KH = "peach.library-processing.collapsed";
+function qH(e) {
try {
- return !e || sessionStorage.getItem(qH) !== e;
+ return !e || sessionStorage.getItem(KH) !== e;
} catch {
return !0;
}
}
-function Dve({ value: e, max: t }) {
+function kve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46760,17 +46770,17 @@ function Dve({ value: e, max: t }) {
})]
});
}
-function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => JH(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 JH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => qH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && tH(e), _ = e?.status === "failed" && !g, v = eH(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && eH(e), _ = e?.status === "failed" && !g, v = $V(e);
(0, F.useEffect)(() => {
- a(JH(e?.job_id)), m(!1);
+ a(qH(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(qH, e.job_id) : sessionStorage.removeItem(qH);
+ i && e?.job_id ? sessionStorage.setItem(KH, e.job_id) : sessionStorage.removeItem(KH);
} catch {}
i && m(!1), a(!i);
}
@@ -46800,7 +46810,7 @@ function YH({ 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 : QV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : ZV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46814,13 +46824,13 @@ function YH({ 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)(Dve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(kve, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Cge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(wge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Fge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Ige, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46832,14 +46842,14 @@ function YH({ 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: iH(e)
+ children: rH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: MH,
+ leadingIcon: jH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46851,24 +46861,24 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: CB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(GH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(ive, {
+ b ? /* @__PURE__ */ (0, I.jsx)(ave, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(jH, {
+ }), /* @__PURE__ */ (0, I.jsx)(AH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46885,14 +46895,14 @@ function YH({ 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)(hge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(gge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(gge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(_ge, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(dE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(uE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46905,11 +46915,11 @@ function YH({ 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)(uve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(dve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: nH
+ children: tH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46923,20 +46933,20 @@ function YH({ 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)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(pH, {
- href: rH,
+ g ? /* @__PURE__ */ (0, I.jsx)(fH, {
+ href: nH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(wH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(CH, {
state: e,
disabled: !!t
}) : null
@@ -46946,67 +46956,67 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Ove(e) {
- let { job: t } = TH(e);
- return /* @__PURE__ */ (0, I.jsx)(YH, {
+function Ave(e) {
+ let { job: t } = wH(e);
+ return /* @__PURE__ */ (0, I.jsx)(JH, {
state: t.data,
- problem: t.isError ? t.data ? sH : lr(t.error) : ""
+ problem: t.isError ? t.data ? oH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var XH = "peach.library-processing.visibility", ZH = /* @__PURE__ */ new Set(), QH = "";
-function kve() {
+var YH = "peach.library-processing.visibility", XH = /* @__PURE__ */ new Set(), ZH = "";
+function jve() {
try {
- return sessionStorage.getItem(XH) || "";
+ return sessionStorage.getItem(YH) || "";
} catch {
- return QH;
+ return ZH;
}
}
-function Ave(e) {
- return ZH.add(e), () => {
- ZH.delete(e);
+function Mve(e) {
+ return XH.add(e), () => {
+ XH.delete(e);
};
}
-function $H(e, t) {
- QH = `${t ? "shown" : "hidden"}:${e}`;
+function QH(e, t) {
+ ZH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(XH, QH);
+ sessionStorage.setItem(YH, ZH);
} catch {}
- ZH.forEach((e) => e());
+ XH.forEach((e) => e());
}
-function eU(e) {
- let t = (0, F.useSyncExternalStore)(Ave, kve, () => "");
+function $H(e) {
+ let t = (0, F.useSyncExternalStore)(Mve, jve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var tU = "peach-library-processing";
-function jve({ toast: e }) {
- let { job: t, settled: n } = TH({
+var eU = "peach-library-processing";
+function Nve({ toast: e }) {
+ let { job: t, settled: n } = wH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = eU(a), c = t.isError ? i ? sH : lr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = $H(a), c = t.isError ? i ? oH : lr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = eH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || dH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && WV.dismiss(tU), r.current = !1) : (WV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = $V(i), t = i?.status === "failed" && (n?.job_id === i.job_id || uH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && UV.dismiss(eU), r.current = !1) : (UV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(YH, {
+ children: /* @__PURE__ */ (0, I.jsx)(JH, {
state: i,
problem: c,
measure: !0,
- onHide: () => $H(a, !1)
+ onHide: () => QH(a, !1)
})
}), {
- id: tU,
+ id: eU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- $H(a, !1), r.current = !1;
+ QH(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47017,19 +47027,19 @@ function jve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && WV.dismiss(tU), r.current = !1;
+ r.current && UV.dismiss(eU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var Mve = ["network-status"], Nve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function Pve(e) {
+var Pve = ["network-status"], Fve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Ive(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Fve() {
+function Lve() {
let e = Ft({
- queryKey: Mve,
+ queryKey: Pve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => Pve(e.state.data),
+ refetchInterval: (e) => Ive(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -47040,56 +47050,56 @@ function Fve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Nve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: Fve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Ive(e) {
- let t = lL(gH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(fB, {
+function Rve(e) {
+ let t = dL(hH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(dB, {
...e,
ref: t
});
}
-function nU(e) {
- let t = lL(gH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+function tU(e) {
+ let t = dL(hH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
...e,
ref: t
});
}
-var rU = "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", iU = "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", aU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", oU = "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 nU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", rU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", zve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", iU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", aU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", oU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], cU = (e) => sU.some(([t]) => t === e) ? e : "library", lU = (e) => cU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Rve(e) {
+], sU = (e) => oU.some(([t]) => t === e) ? e : "library", cU = (e) => sU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Bve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var uU = (e, t, n, r, i, a) => ({
+var lU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), dU = (e, t, n, r, i) => uU(e, t, n, r, i), fU = [
+}), uU = (e, t, n, r, i) => lU(e, t, n, r, i), dU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- dU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- dU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- dU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- dU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ uU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ uU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ uU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ uU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -47098,23 +47108,23 @@ var uU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- dU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- dU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- dU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ uU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ uU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ uU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...uU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...lU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...uU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...lU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...uU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...lU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...uU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...lU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47126,15 +47136,15 @@ var uU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...dU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...uU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...dU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...uU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- dU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- dU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ uU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ uU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47143,10 +47153,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- dU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- dU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- dU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- dU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ uU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ uU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ uU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ uU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47155,10 +47165,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- dU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", lU("library"), "[data-catalog-frame]"),
- dU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", lU("discover"), "[data-jav-filter] [data-catalog-views]"),
- dU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", lU("discover"), "[aria-label=\"JAV 分区\"]"),
- dU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ uU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", cU("library"), "[data-catalog-frame]"),
+ uU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", cU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ uU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", cU("discover"), "[aria-label=\"JAV 分区\"]"),
+ uU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47167,9 +47177,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- dU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- dU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- dU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ uU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ uU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ uU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47178,9 +47188,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- dU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- dU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- dU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ uU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ uU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ uU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47189,11 +47199,11 @@ var uU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- dU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- dU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- dU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- dU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- dU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ uU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ uU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ uU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ uU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ uU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47202,10 +47212,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- dU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- dU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- dU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- dU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ uU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ uU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ uU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ uU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47214,9 +47224,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- dU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- dU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- dU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ uU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ uU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ uU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47225,18 +47235,18 @@ var uU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- dU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- dU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- dU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ uU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ uU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ uU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], zve = "当前浏览器 · 修改后自动保存", pU = "跟随馆藏 · 修改后自动保存", mU = "运行 Peach 的电脑 · 确认后保存配置", hU = (e, t, n = zve) => t.map(([t, r, i, a, o]) => uU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), gU = [
+], Vve = "当前浏览器 · 修改后自动保存", fU = "跟随馆藏 · 修改后自动保存", pU = "运行 Peach 的电脑 · 确认后保存配置", mU = (e, t, n = Vve) => t.map(([t, r, i, a, o]) => lU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), hU = [
{
id: "appearance",
kind: "settings",
title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: hU("appearance", [
+ steps: mU("appearance", [
[
"theme",
"主题",
@@ -47266,7 +47276,7 @@ var uU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- pU
+ fU
]
])
},
@@ -47275,7 +47285,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: hU("playback", [
+ steps: mU("playback", [
[
"batch",
"每批作品",
@@ -47331,13 +47341,13 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.jav,
summary: "封面与新作筛选。",
- steps: hU("jav", [
+ steps: mU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- pU
+ fU
],
[
"image",
@@ -47362,21 +47372,21 @@ var uU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- pU
+ fU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- pU
+ fU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- pU
+ fU
]
])
},
@@ -47385,12 +47395,12 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...hU("search", [[
+ steps: [...mU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], pU), ...hU("search", [[
+ ]], fU), ...mU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47402,7 +47412,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: hU("content", [[
+ steps: mU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47414,7 +47424,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: hU("library", [
+ steps: mU("library", [
[
"media",
"媒体库名称与外观",
@@ -47465,14 +47475,14 @@ var uU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], mU)
+ ], pU)
},
{
id: "subscriptions",
kind: "settings",
title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: hU("subscriptions", [
+ steps: mU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47499,14 +47509,14 @@ var uU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], mU)
+ ], pU)
},
{
id: "downloads",
kind: "settings",
title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: hU("downloads", [
+ steps: mU("downloads", [
[
"download",
"云下载",
@@ -47522,14 +47532,14 @@ var uU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], mU)
+ ], pU)
},
{
id: "network",
kind: "settings",
title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: hU("network", [
+ steps: mU("network", [
[
"port",
"访问地址与端口",
@@ -47550,14 +47560,14 @@ var uU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], mU)
+ ], pU)
},
{
id: "app-maintenance",
kind: "settings",
title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: hU("maintenance", [
+ steps: mU("maintenance", [
[
"updates",
"检查更新",
@@ -47603,14 +47613,14 @@ var uU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], mU)
+ ], pU)
},
{
id: "diagnostics",
kind: "settings",
title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: hU("diagnostics", [
+ steps: mU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47635,7 +47645,7 @@ var uU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Bve = {
+], Hve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47742,8 +47752,8 @@ var uU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of gU) for (let t of e.steps) t.details = Bve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
-var _U = [...fU, ...gU], Vve = [
+for (let e of hU) for (let t of e.steps) t.details = Hve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
+var gU = [...dU, ...hU], Uve = [
{
id: "browse",
kind: "interface",
@@ -47821,35 +47831,35 @@ var _U = [...fU, ...gU], Vve = [
]
}
];
-function Hve(e) {
- return e === "/" ? fU[0] : gU.find((t) => t.steps[0]?.route === e) || fU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || fU[0];
+function Wve(e) {
+ return e === "/" ? dU[0] : hU.find((t) => t.steps[0]?.route === e) || dU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || dU[0];
}
// src/onboarding/guide-state.ts
-var Uve = () => ({
+var Gve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function vU(e, t) {
+function _U(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Wve(e, t) {
+function Kve(e, t) {
let n = e.chapters[t.id];
- return !n || vU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || _U(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Gve() {
+function qve() {
return B("/api/tutorial-progress");
}
-function Kve(e, t) {
+function Jve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function qve(e, t, n, r, i) {
+function Yve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47867,99 +47877,99 @@ function qve(e, t, n, r, i) {
}
};
}
-var yU = null, bU = /* @__PURE__ */ new Set();
-function xU(e = {}) {
- bU.size || (yU = e);
- for (let t of bU) t(e);
-}
-function Jve(e) {
- if (bU.add(e), yU) {
- let t = yU;
- yU = null, queueMicrotask(() => {
- bU.has(e) && e(t);
+var vU = null, yU = /* @__PURE__ */ new Set();
+function bU(e = {}) {
+ yU.size || (vU = e);
+ for (let t of yU) t(e);
+}
+function Xve(e) {
+ if (yU.add(e), vU) {
+ let t = vU;
+ vU = null, queueMicrotask(() => {
+ yU.has(e) && e(t);
});
}
return () => {
- bU.delete(e);
+ yU.delete(e);
};
}
// src/react/components/card.tsx
-var Yve = "min-w-0", Xve = {
+var Zve = "min-w-0", Qve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Zve = {
+}, $ve = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Qve = {
+}, eye = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, $ve = {
+}, tye = {
none: "",
default: "p-5"
-}, eye = "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", tye = "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 SU(e = {}) {
+}, nye = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", rye = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function xU(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Yve,
- Xve[t],
- Zve[s],
- $ve[n],
- a ? Qve[a] : "",
- r ? eye : "",
- i ? tye : "",
+ Zve,
+ Qve[t],
+ $ve[s],
+ tye[n],
+ a ? eye[a] : "",
+ r ? nye : "",
+ i ? rye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var nye = {
- browse: GB,
- collect: SB,
- watch: BB,
- manage: MB,
- experience: RB,
- discovery: WB,
- storage: EB,
- system: KB
-}, rye = {
- basics: TB,
- "find-play": GB,
- entities: XB,
- jav: AB,
- save: SB,
- follow: WB,
- insights: xB,
- viewing: BB,
- devices: qB,
- external: DB,
- maintenance: YB,
- appearance: RB,
- playback: BB,
- content: kB,
- "search-settings": GB,
- "jav-settings": AB,
- subscriptions: WB,
- library: EB,
- downloads: DB,
- network: qB,
- "app-maintenance": YB,
- diagnostics: Bge
+var iye = {
+ browse: WB,
+ collect: xB,
+ watch: zB,
+ manage: jB,
+ experience: LB,
+ discovery: UB,
+ storage: TB,
+ system: GB
+}, aye = {
+ basics: wB,
+ "find-play": WB,
+ entities: YB,
+ jav: kB,
+ save: xB,
+ follow: UB,
+ insights: bB,
+ viewing: zB,
+ devices: KB,
+ external: EB,
+ maintenance: JB,
+ appearance: LB,
+ playback: zB,
+ content: OB,
+ "search-settings": WB,
+ "jav-settings": kB,
+ subscriptions: UB,
+ library: TB,
+ downloads: EB,
+ network: KB,
+ "app-maintenance": JB,
+ diagnostics: Vge
};
-function iye({ chapter: e, className: t = "size-5" }) {
- let n = rye[e] || TB;
+function oye({ chapter: e, className: t = "size-5" }) {
+ let n = aye[e] || wB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function CU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function SU({ 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: SU({
+ className: xU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47988,8 +47998,8 @@ function CU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function wU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = vU(t, e), a = !i && !!t.chapters[e.id];
+function CU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = _U(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47999,7 +48009,7 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(iye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(oye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -48011,7 +48021,7 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(wU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48019,17 +48029,17 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(yB, {
+ /* @__PURE__ */ (0, I.jsx)(vB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function TU() {
+function wU() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, I.jsx)(CB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(SB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48038,17 +48048,17 @@ function TU() {
})]
});
}
-function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = _U.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = vU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = _U.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 sye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = gU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = _U(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = gU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(CU, {
+ /* @__PURE__ */ (0, I.jsxs)(SU, {
completed: u,
- icon: e === "interface" ? TB : KB,
+ icon: e === "interface" ? wB : GB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(wU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48061,26 +48071,26 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(nV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: GB
+ leadingIcon: WB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(wU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(CU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: GB,
+ }) : /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: WB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48098,12 +48108,12 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Vve.filter((t) => t.kind === e).map((e) => {
- let t = nye[e.id];
+ children: Uve.filter((t) => t.kind === e).map((e) => {
+ let t = iye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(LH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48128,8 +48138,8 @@ function aye({ 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)(wU, {
- chapter: _U.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(CU, {
+ chapter: gU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48143,14 +48153,14 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var EU = "侧栏收起时,先点左上角的导航按钮。", DU = (...e) => ({
+var TU = "侧栏收起时,先点左上角的导航按钮。", EU = (...e) => ({
path: ["侧栏", ...e],
- hint: EU
-}), OU = (e) => ({
+ hint: TU
+}), DU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: EU
+ hint: TU
});
-function oye(e) {
+function cye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48168,7 +48178,7 @@ function oye(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Of[r];
- if (e) return OU(e);
+ if (e) return DU(e);
let t = kf[r];
if (t) return {
path: [
@@ -48176,11 +48186,11 @@ function oye(e) {
"Peach 配置",
t
],
- hint: EU
+ hint: TU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return DU("JAV", sU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || sU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return EU("JAV", oU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || oU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48190,9 +48200,9 @@ function oye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: EU
+ hint: TU
};
- case "preferences": return OU(Of.appearance);
+ case "preferences": return DU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48214,22 +48224,22 @@ function oye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return DU("首页");
+ return EU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return DU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ ].includes(t)) return EU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
let a = $f[t];
if (a?.nav && a.title) {
- let e = DU(a.title);
+ let e = EU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return DU("管理", a.title);
+ if (a?.section && a.title) return EU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function sye({ details: e }) {
+function lye({ 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", {
@@ -48245,8 +48255,8 @@ function sye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = zV(), l = oye(e);
+function uye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = RV(), l = cye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48257,7 +48267,7 @@ function cye({ 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)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48274,7 +48284,7 @@ function cye({ 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)(Hge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Uge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48283,7 +48293,7 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(vB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48304,15 +48314,15 @@ function cye({ 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)(RH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(LH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(sye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(lye, { 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)(lV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48366,14 +48376,14 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function kU(e, t, n) {
+function OU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, zt.createRoot)(r);
- return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(cye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(uye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function lye({ go: e }) {
+function dye({ 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();
@@ -48387,8 +48397,8 @@ function lye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(CU, {
- icon: Vge,
+ /* @__PURE__ */ (0, I.jsxs)(SU, {
+ icon: Hge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48399,7 +48409,7 @@ function lye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48415,7 +48425,7 @@ function lye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(MB, {
+ children: /* @__PURE__ */ (0, I.jsx)(jB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48434,7 +48444,7 @@ function lye({ 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)(e_e, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48453,7 +48463,7 @@ function lye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(BB, {
+ children: /* @__PURE__ */ (0, I.jsx)(zB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48471,7 +48481,7 @@ function lye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(RH, {
+ /* @__PURE__ */ (0, I.jsx)(LH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48480,31 +48490,31 @@ function lye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: WB
+ icon: UB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: xB
+ icon: bB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: DB
+ icon: EB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: qB
+ icon: KB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: CB
+ icon: SB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48531,16 +48541,16 @@ function lye({ go: e }) {
]
});
}
-var AU = "tutorial-sync";
-function uye({ 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)(Uve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = zV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var kU = "tutorial-sync";
+function fye({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Gve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = RV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
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 Gve();
+ let n = await qve();
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;
@@ -48550,7 +48560,7 @@ function uye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Kve(e.campaign, t);
+ let r = await Jve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48560,8 +48570,8 @@ function uye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? WV.dismiss(AU) : WV.error(p, {
- id: AU,
+ !p || t ? UV.dismiss(kU) : UV.error(p, {
+ id: kU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48572,7 +48582,7 @@ function uye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- WV.dismiss(AU);
+ UV.dismiss(kU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48593,7 +48603,7 @@ function uye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: kU,
+ mountPopover: OU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48632,12 +48642,12 @@ function uye({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = Jve((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 = _U.find((t) => t.id === e.chapter);
+ let r = gU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48666,11 +48676,11 @@ function uye({ actions: e }) {
g("请先关闭当前详情或对话框,再开始导览。");
return;
}
- if (t.steps.some((e) => e.surface) && u8()?.miniplayerActive()) {
+ if (t.steps.some((e) => e.surface) && l8()?.miniplayerActive()) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Wve(C.current, t) : 0;
+ let i = r ? Kve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48704,7 +48714,7 @@ function uye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: kU,
+ mountPopover: OU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48715,18 +48725,18 @@ function uye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(qve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(Yve(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" && vU(C.current, t) && te({
+ if (t.id === "basics" && _U(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(vU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(_U(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48739,8 +48749,8 @@ function uye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = Hve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(sV, {
+ let ce = Wve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(oV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48755,18 +48765,18 @@ function uye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
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)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)(tU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: rU,
+ className: nU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48775,9 +48785,9 @@ function uye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Mz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(jz, {
value: e,
- className: iU,
+ className: rU,
children: t
}, e))
})
@@ -48788,7 +48798,7 @@ function uye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48800,12 +48810,12 @@ function uye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(lye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(aye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(dye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(sye, {
kind: a,
query: s,
setQuery: c,
@@ -48823,15 +48833,15 @@ function uye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var dye = 12e4, fye = 15e3, jU = () => document.visibilityState !== "hidden", MU = /* @__PURE__ */ new Set([
+var pye = 12e4, mye = 15e3, AU = () => document.visibilityState !== "hidden", jU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), NU = "/settings/maintenance#releaseUpdates";
-function pye() {
+]), MU = "/settings/maintenance#releaseUpdates";
+function hye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48842,23 +48852,23 @@ function pye() {
return null;
}
}
-function PU() {
- let e = (0, F.useRef)(pye()), [t, n] = (0, F.useState)(null);
+function NU() {
+ let e = (0, F.useRef)(hye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !jU()) return;
+ if (t || !AU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), fye);
+ let s = setTimeout(() => o.abort(), mye);
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 && jU() && (r = setTimeout(a, dye)));
+ clearTimeout(s), i === o && (i = void 0, !t && AU() && (r = setTimeout(a, pye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, jU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, AU() && 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);
@@ -48868,12 +48878,12 @@ function PU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function mye({ navigate: e }) {
- let { snapshot: t, refresh: n } = PU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function gye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = NU(), [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" : MU.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" : jU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || MU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || jU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48896,22 +48906,22 @@ function mye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(fH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(pH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(fH, {
variant: "secondary",
size: "small",
- href: NU,
+ href: MU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(NU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(MU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(pH, {
+ }), /* @__PURE__ */ (0, I.jsx)(fH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48922,8 +48932,8 @@ function mye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function hye() {
- let e = (0, F.useContext)(YW), { pathname: t } = ef();
+function _ye() {
+ let e = (0, F.useContext)(JW), { pathname: t } = ef();
return (0, F.useEffect)(() => {
e?.openSettings?.(Nf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -48933,7 +48943,7 @@ function hye() {
}, [e]), null;
}
// src/junk-queue.ts
-var FU = [
+var PU = [
[
"",
"全部",
@@ -48969,40 +48979,40 @@ var FU = [
"其它",
"hard-drive"
]
-], gye = (e) => FU.find(([t]) => t === e)?.[0] ?? "";
-function IU(e) {
+], vye = (e) => PU.find(([t]) => t === e)?.[0] ?? "";
+function FU(e) {
let t = new URLSearchParams(e);
return {
- kind: gye(t.get("type")),
+ kind: vye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function LU(e = "", t = "pending") {
+function IU(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 RU(e) {
+function LU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: LU("", "pending")
+ href: IU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: LU("", "dismissed")
+ href: IU("", "dismissed")
};
}
-var zU = (e) => e === "dismissed" ? "已排除" : "待判断", BU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function _ye({ kind: e, view: t }) {
- let n = FU.map(([n, r, i]) => `<a href="${LU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${BU(i)}${z(r)}</a>`).join(""), r = RU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(zU(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\"" : ""}>${BU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var RU = (e) => e === "dismissed" ? "已排除" : "待判断", zU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function yye({ kind: e, view: t }) {
+ let n = PU.map(([n, r, i]) => `<a href="${IU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${zU(i)}${z(r)}</a>`).join(""), r = LU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(RU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${zU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function vye(e, t, n) {
+function bye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49016,7 +49026,7 @@ function vye(e, t, n) {
n
]);
}
-function yye(e, t) {
+function xye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49029,33 +49039,33 @@ function yye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var VU = (0, F.createContext)("md");
-function HU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var BU = (0, F.createContext)("md");
+function VU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- vye(d, () => f(!1), [l, u]);
- let p = yye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Yme, {
+ bye(d, () => f(!1), [l, u]);
+ let p = xye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Xme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(RL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(BL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Qme, {
+ children: [/* @__PURE__ */ (0, I.jsx)($me, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(l_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(u_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(uz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(f_e, jV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(_me, {
+ className: q(p_e, AV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(vme, {
items: a,
- className: q(p_e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(VU.Provider, {
+ className: q(m_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(BU.Provider, {
value: r,
children: i
})
@@ -49063,16 +49073,16 @@ function HU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function UU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(VU);
- return /* @__PURE__ */ (0, I.jsx)(bme, {
+function HU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(BU);
+ return /* @__PURE__ */ (0, I.jsx)(xme, {
...n,
- className: (t) => q(MV, 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(jV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var WU = NI({
+var UU = FI({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -49091,15 +49101,15 @@ var WU = NI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function GU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function WU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(WU.base, WU.variant[e], WU.color[t], n),
+ className: q(UU.base, UU.variant[e], UU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function KU({ artwork: e, identity: t = e.html, relayout: n }) {
+function GU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49118,7 +49128,7 @@ function KU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var qU = "/api/downloads", JU = ["downloads"], bye = "/api/downloads/cancel", xye = "/api/downloads/postprocess", YU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Sye = {
+var KU = "/api/downloads", qU = ["downloads"], Sye = "/api/downloads/cancel", Cye = "/api/downloads/postprocess", JU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, wye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49128,21 +49138,21 @@ var qU = "/api/downloads", JU = ["downloads"], bye = "/api/downloads/cancel", xy
landed: "lime",
submitted: "neutral",
submit_pending: "yellow"
-}, XU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = BI({
+}, YU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = HI({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, ZU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Cye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function wye() {
+}, XU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Tye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Eye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...JU, "pages"],
+ queryKey: [...qU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${qU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${KU}?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) => YU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => JU(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",
@@ -49154,14 +49164,14 @@ function wye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Tye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Dye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49169,9 +49179,9 @@ function wye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: _B,
+ leadingIcon: gB,
className: "self-start",
- ...mV(t.isFetchingNextPage),
+ ...pV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49180,16 +49190,16 @@ function wye() {
]
});
}
-function Tye({ task: e, writable: t }) {
- rL();
- let n = ae(), r = mH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = ZU(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 Dye({ task: e, writable: t }) {
+ aL();
+ let n = ae(), r = pH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = XU(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- tL(e.submitted_at)
+ rL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: JU });
+ n.invalidateQueries({ queryKey: qU });
}, g = () => {
- r.run("cancel", (t) => V(bye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Sye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49199,16 +49209,16 @@ function Tye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(qU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(KU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(xye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Cye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: SU({
+ className: xU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49219,14 +49229,14 @@ function Tye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(uM) },
+ style: { "--card-ratio": String(fM) },
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)(KU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(GU, {
artwork: {
kind: "cover",
html: So(u, "big")
@@ -49236,7 +49246,7 @@ function Tye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${XU(e)}`,
+ "aria-label": `打开作品详情:${YU(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
]
@@ -49247,19 +49257,19 @@ function Tye({ 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: XU(e),
+ title: YU(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: XU(e)
- }) : XU(e)
+ children: YU(e)
+ }) : YU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(GU, {
- color: Sye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(WU, {
+ color: wye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(WU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49269,7 +49279,7 @@ function Tye({ 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)(HH, {
+ children: /* @__PURE__ */ (0, I.jsx)(VH, {
source: e.provider,
label: e.provider_label
})
@@ -49296,7 +49306,7 @@ function Tye({ task: e, writable: t }) {
children: [d.map((e) => nn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(OH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(DH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49306,7 +49316,7 @@ function Tye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(FH, { 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",
@@ -49331,21 +49341,21 @@ function Tye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "cancel"),
+ ...pV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "resubmit"),
+ ...pV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "postprocess"),
+ ...pV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49360,37 +49370,37 @@ function Tye({ 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: XU(e)
+ children: YU(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 || Cye(e)
+ children: l || Tye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var QU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), $U = (e, t) => !!QU(e) && QU(e) === QU(t);
+var ZU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), QU = (e, t) => !!ZU(e) && ZU(e) === ZU(t);
// src/react/components/ime.ts
-function eW(e) {
+function $U(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function Eye({ className: e }) {
+function Oye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function Dye(e) {
+function kye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Dye(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 = mH(), b = (0, F.useRef)(null);
+function Aye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => kye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = pH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49406,7 +49416,7 @@ function Oye({ 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) => $U(e.code, t));
+ let r = (n.items || []).find((e) => QU(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49427,28 +49437,28 @@ function Oye({ 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)(FH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(PH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Eye : GB,
+ leadingIcon: y.busy ? Oye : WB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !eW(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !$U(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(VU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49456,15 +49466,15 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(HU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(HU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(HU, {
id: "uncensored",
children: "无码"
})
@@ -49473,32 +49483,32 @@ function Oye({ 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)(oV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(aV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(PH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(FH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(PH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(PH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(FH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(PH, { 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", {
@@ -49508,7 +49518,7 @@ function Oye({ 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)(FH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(PH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49532,20 +49542,20 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var kye = {
+var jye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度",
deferred: "网盘暂时没有响应,Peach 会自动重新提交,进度在任务中心"
};
-function tW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(sV, {
+function eW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(oV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Aye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Mye, {
prefill: e,
close: t,
receipt: n,
@@ -49553,26 +49563,26 @@ function tW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Mye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: JU,
- queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e),
- refetchInterval: (e) => YU(e.state.data)
+ queryKey: qU,
+ queryFn: ({ signal: e }) => B(`${KU}?limit=50`, e),
+ refetchInterval: (e) => JU(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: CB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(jye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Nye, {
header: o,
snapshot: a,
prefill: e,
@@ -49585,7 +49595,7 @@ function Aye({ 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)(lV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49601,8 +49611,8 @@ function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function jye({ 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 = mH(), C = (0, F.useRef)(null), w = (e) => {
+function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = pH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49618,14 +49628,14 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(qU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: JU });
- let t = kye[e.outcome];
+ b(""), S.run("submit", (e) => V(KU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: qU });
+ let t = jye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = ZU(e.task);
+ let n = XU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49649,7 +49659,7 @@ function jye({ 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)(FH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(PH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49657,22 +49667,22 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Oye, {
+ /* @__PURE__ */ (0, I.jsx)(Aye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- $U(e, _?.code) || (v($U(e, n.code) ? n : null), f("")), m(e);
+ QU(e, _?.code) || (v(QU(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? $U(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? QU(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : $U(t?.code, n.code) ? t : null),
+ } : e : QU(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49684,38 +49694,38 @@ function jye({ 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)(LH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(HU, {
+ /* @__PURE__ */ (0, I.jsx)(IH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(VU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(HH, {
+ children: /* @__PURE__ */ (0, I.jsx)(VH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(FH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(PH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(lV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(cV, {
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)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49723,17 +49733,17 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), $U(e, _?.code) || v(null);
+ m(e), QU(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(FH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49745,7 +49755,7 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...mV(S.busy === "submit"),
+ ...pV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49753,18 +49763,18 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var nW = "/api/wants", rW = ["wants"], Mye = (e) => [
+var tW = "/api/wants", nW = ["wants"], Pye = (e) => [
"wants",
"follow",
e
-], Nye = [
+], Fye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], iW = (e) => B(nW, e);
-function Pye(e, t) {
- H.setQueryData(rW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], rW = (e) => B(tW, e);
+function Iye(e, t) {
+ H.setQueryData(nW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49772,21 +49782,21 @@ function Pye(e, t) {
} : n)
} : n);
}
-var Fye = (e, t) => B(`${nW}?follow=${encodeURIComponent(e)}`, t), aW = (e, t) => V(nW, {
+var Lye = (e, t) => B(`${tW}?follow=${encodeURIComponent(e)}`, t), iW = (e, t) => V(tW, {
action: "add",
...e
-}, "POST", t), oW = (e, t) => V(nW, {
+}, "POST", t), aW = (e, t) => V(tW, {
action: "remove",
ids: e
-}, "POST", t), Iye = (e, t) => V(nW, {
+}, "POST", t), Rye = (e, t) => V(tW, {
action: "reset",
ids: e
-}, "POST", t), sW = () => H.invalidateQueries({ queryKey: rW }), Lye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Rye(e) {
+}, "POST", t), oW = () => H.invalidateQueries({ queryKey: nW }), zye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Bye(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
-var cW = [
+var sW = [
[
"taste",
"口味",
@@ -49794,7 +49804,7 @@ var cW = [
],
[
"release_date",
- Oj[1],
+ Aj[1],
"按发行日期排序"
],
[
@@ -49812,10 +49822,10 @@ var cW = [
"番号",
"按番号排序"
]
-], lW = [
+], cW = [
[
"release_date",
- Oj[1],
+ Aj[1],
"按发行日期排序"
],
[
@@ -49839,10 +49849,10 @@ var cW = [
"按口味匹配排序"
]
];
-function zye(e) {
+function Vye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Bye(e) {
+function Hye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49867,7 +49877,7 @@ function Bye(e) {
};
}
// src/react/jav/jav.ts
-function Vye(e) {
+function Uye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Pp(location.pathname + (t.size ? `?${t}` : ""), {
@@ -49875,13 +49885,13 @@ function Vye(e) {
state: Np.navigation.location.state
});
}
-var uW = (e, t = "taste", n = "desc") => [
+var lW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function dW(e, t, n = {}) {
+function uW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49890,7 +49900,7 @@ function dW(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
-function fW(e) {
+function dW(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),
@@ -49898,12 +49908,12 @@ function fW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : lW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : cW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var pW = (e) => [
+var fW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49914,7 +49924,7 @@ var pW = (e) => [
e.dir,
e.seed
];
-function mW(e, t, n = "") {
+function pW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49930,7 +49940,7 @@ function mW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function Hye(e, t, n) {
+function Wye(e, t, n) {
let r = wo({
...e,
is_jav: !0
@@ -49939,40 +49949,40 @@ function Hye(e, t, n) {
let i = z(fo(e));
return So(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function Uye(e, t) {
+async function Gye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: rW,
- queryFn: () => iW(t),
+ queryKey: nW,
+ queryFn: () => rW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: uW("external"),
- queryFn: () => dW("external", t),
+ queryKey: lW("external"),
+ queryFn: () => uW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = fW(location.search);
+ let e = dW(location.search);
await H.ensureQueryData({
- queryKey: pW(e),
- queryFn: () => mW(e, t),
+ queryKey: fW(e),
+ queryFn: () => pW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function hW({ value: e }) {
+function mW({ value: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var Wye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = lL(a);
+var Kye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function hW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = dL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49981,7 +49991,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(FI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(LI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49996,7 +50006,7 @@ function gW({ 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 ? fV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? dV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -50005,7 +50015,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: Wye,
+ className: Kye,
onClick: () => {
i || r(e.value);
},
@@ -50015,7 +50025,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function _W({ tab: e, navigate: t, find: n, search: r }) {
+function gW({ tab: e, navigate: t, find: n, search: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -50034,32 +50044,32 @@ function _W({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: sU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(hW, {
+ tabs: oU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(lU(e))
+ onChange: (e) => t(cU(e))
})]
});
}
-function Gye({ navigate: e, receipt: t }) {
+function qye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_W, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(tW, {
+ }), /* @__PURE__ */ (0, I.jsx)(eW, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Kye = [
+var Jye = [
[
[
{
@@ -53620,7 +53630,7 @@ var Kye = [
}
]
]
-], vW = [
+], _W = [
[
{
x: 0,
@@ -53917,89 +53927,89 @@ var Kye = [
rows: 2
}
]
-], yW = (e) => e.map((e) => ({
+], vW = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), bW = (e) => e.map((e) => ({
+})), yW = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), xW = [
+})), bW = [
(e) => e,
+ vW,
yW,
- bW,
- (e) => yW(bW(e))
-], SW = vW.flatMap((e) => xW.map((t) => t(e))), qye = Kye.flatMap((e) => xW.map((t) => e.map(t)));
-SW.length;
-var Jye = (e, t) => {
+ (e) => vW(yW(e))
+], xW = _W.flatMap((e) => bW.map((t) => t(e))), Yye = Jye.flatMap((e) => bW.map((t) => e.map(t)));
+xW.length;
+var Xye = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, CW = (e, t) => {
- let n = vW.length;
- return ((e + t * 2) % n + n) % n * xW.length + Jye(e, t) % xW.length;
-}, Yye = (e, t) => SW[CW(e, t)], Xye = (e, t, n) => n < 0 || n >= 12 ? null : qye[CW(e, t)][n], wW = 103.36, TW = 6.08, EW = 12 * wW, DW = 8 * wW, OW = 12, kW = (e, t) => (e % t + t) % t, Zye = (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 AW(e, t) {
- let n = Math.max(1, Math.ceil(e / OW)), r = t ? 3 : Math.min(3, n);
+}, SW = (e, t) => {
+ let n = _W.length;
+ return ((e + t * 2) % n + n) % n * bW.length + Xye(e, t) % bW.length;
+}, Zye = (e, t) => xW[SW(e, t)], Qye = (e, t, n) => n < 0 || n >= 12 ? null : Yye[SW(e, t)][n], CW = 103.36, wW = 6.08, TW = 12 * CW, EW = 8 * CW, DW = 12, OW = (e, t) => (e % t + t) % t, $ye = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function kW(e, t) {
+ let n = Math.max(1, Math.ceil(e / DW)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * EW,
- height: Math.ceil(n / r) * DW
+ width: r * TW,
+ height: Math.ceil(n / r) * EW
};
}
-function jW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Yye(e, t)[n];
+function AW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = Zye(e, t)[n];
return {
- x: e * EW + r * wW,
- y: t * DW + i * wW,
- width: a * wW - TW,
- height: o * wW - TW
+ x: e * TW + r * CW,
+ y: t * EW + i * CW,
+ width: a * CW - wW,
+ height: o * CW - wW
};
}
-function Qye(e) {
+function ebe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function MW(e, t, n) {
+function jW(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= OW) return null;
- let o = AW(e, t), s = o.height / DW;
+ ].every(Number.isInteger) || a < 0 || a >= DW) return null;
+ let o = kW(e, t), s = o.height / EW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : kW(r, o.columns), l = ((t ? i : kW(i, s)) * o.columns + c) * OW + a;
+ let c = t ? r : OW(r, o.columns), l = ((t ? i : OW(i, s)) * o.columns + c) * DW + a;
return t && l >= e ? null : {
- ...jW(r, i, a),
+ ...AW(r, i, a),
index: l % e,
key: n
};
}
-function $ye(e, t) {
+function tbe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / OW);
- return MW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % OW}`);
+ let n = Math.floor(t / DW);
+ return jW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % DW}`);
}
-function NW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = Xye(r, i, a);
+function MW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = Qye(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * EW + e.x * wW,
- y: i * DW + e.y * wW,
- width: e.cols * wW - TW,
- height: e.rows * wW - TW
+ x: r * TW + e.x * CW,
+ y: i * EW + e.y * CW,
+ width: e.cols * CW - wW,
+ height: e.rows * CW - wW
}]));
}
-function ebe(e) {
+function nbe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / OW), i = jW(e % 3, Math.floor(e / 3), r % OW);
+ let e = Math.floor(r / DW), i = AW(e % 3, Math.floor(e / 3), r % DW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * EW - TW : t,
+ width: e >= 36 ? 3 * TW - wW : t,
height: n
};
}
-function tbe(e, t, n, r) {
+function rbe(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 {
@@ -54008,22 +54018,22 @@ function tbe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function PW(e, t, n, r) {
+function NW(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = AW(e, t), s = o.height / DW, c = [];
- for (let n = Math.floor(a.y / DW); n <= Math.floor((a.y + a.height) / DW); n += 1) for (let r = Math.floor(a.x / EW); r <= Math.floor((a.x + a.width) / EW); r += 1) {
+ }, o = kW(e, t), s = o.height / EW, c = [];
+ for (let n = Math.floor(a.y / EW); n <= Math.floor((a.y + a.height) / EW); n += 1) for (let r = Math.floor(a.x / TW); r <= Math.floor((a.x + a.width) / TW); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : kW(r, o.columns), l = t ? n : kW(n, s);
- for (let s = 0; s < OW; s += 1) {
- let u = (l * o.columns + i) * OW + s;
+ let i = t ? r : OW(r, o.columns), l = t ? n : OW(n, s);
+ for (let s = 0; s < DW; s += 1) {
+ let u = (l * o.columns + i) * DW + s;
if (t && u >= e) continue;
- let d = jW(r, n, s);
- Zye(d, a) && c.push({
+ let d = AW(r, n, s);
+ $ye(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54032,7 +54042,7 @@ function PW(e, t, n, r) {
}
return c;
}
-var nbe = class {
+var ibe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54044,7 +54054,7 @@ var nbe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : MW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : jW(t, !1, e);
return r ? {
...r,
index: n
@@ -54074,7 +54084,7 @@ var nbe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * EW,
+ x: (e + 2) * TW,
y: 0
};
}
@@ -54087,10 +54097,10 @@ var nbe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / EW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / TW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, FW = [
+}, PW = [
"q",
"performer",
"series",
@@ -54105,39 +54115,39 @@ var nbe = class {
"dur_max",
"region"
];
-function rbe(e = {}) {
- return FW.some((t) => !!e[t]);
+function abe(e = {}) {
+ return PW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function ibe() {
+function obe() {
if (document.querySelector("[data-wall-boot]")) return;
let e = innerWidth < 640 ? .68 : 1, t = document.createElement("div");
t.className = "peach-react", t.dataset.wallBoot = "", t.innerHTML = `<div data-video-wall="" data-fullscreen=""><div data-wall-viewport="" data-skeleton="wall" role="status" aria-busy="true" aria-label="正在读取播放墙"><div data-wall-world="" style="transform:translate3d(0px, 0px, 0) scale(${e})"></div></div></div>`, document.body.append(t);
let n = t.querySelector("[data-wall-viewport]").getBoundingClientRect();
- t.querySelector("[data-wall-world]").innerHTML = PW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = NW(12, !1, {
x: 0,
y: 0,
scale: e
}, n).map((e) => `<span data-wall-skeleton="" aria-hidden="true" style="--wall-left:${e.x}px;--wall-top:${e.y}px;--wall-width:${e.width}px;--wall-height:${e.height}px"></span>`).join("");
}
-function IW() {
+function FW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var abe = () => pu, LW = Np.navigation.seq, RW = Np.navigation.openEpoch, zW = Np.navigation.location.pathname, BW = {
- seq: LW,
+var sbe = () => pu, IW = Np.navigation.seq, LW = Np.navigation.openEpoch, RW = Np.navigation.location.pathname, zW = {
+ seq: IW,
claimed: !0,
- from: zW
+ from: RW
};
Np.listen((e) => {
- BW = {
+ zW = {
seq: e.seq,
- claimed: e.openEpoch === RW,
- from: zW
- }, RW = e.openEpoch, zW = e.location.pathname;
+ claimed: e.openEpoch === LW,
+ from: RW
+ }, LW = e.openEpoch, RW = e.location.pathname;
});
-var VW = !1;
-function HW(e) {
+var BW = !1;
+function VW(e) {
let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
return {
seq: t,
@@ -54149,7 +54159,7 @@ function HW(e) {
opened: e
};
}
-function obe(e, t, n, r) {
+function cbe(e, t, n, r) {
let i = { ...U }, a = hm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -54161,7 +54171,7 @@ function obe(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = tM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = rM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54175,7 +54185,7 @@ function obe(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Ij(o.get("sort"), o.get("dir"), s, c),
+ ...Rj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? ir() : i.seed || ir()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -54186,14 +54196,14 @@ function obe(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function UW(e) {
+function HW(e) {
let t = Np.navigation.seq;
mm("catalog", { ...U });
let n = e(), r = () => Np.navigation.seq === t, i = () => document.querySelector("#grid");
vm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => vm(r, i()));
}
-function sbe(e, t) {
- let n = { ...e }, r = HW(n.opened);
+function lbe(e, t) {
+ let n = { ...e }, r = VW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -54205,39 +54215,39 @@ function sbe(e, t) {
if (r.opens === n.opens) {
if (r.epoch === n.epoch && n.opened) {
if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;
- UW(() => i.load());
+ HW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && BW.from !== "/");
+ r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && zW.from !== "/");
}
let { pathname: o, search: s } = Np.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = IU(s);
- VW = !0, Pp(LU(e, t), { replace: !0 });
+ let { kind: e, view: t } = FU(s);
+ BW = !0, Pp(IU(e, t), { replace: !0 });
return;
}
- let c = VW;
- VW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: obe(o, s, a, i) }), UW(() => i.open(o, {
+ let c = BW;
+ BW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: cbe(o, s, a, i) }), HW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function cbe() {
- let e = (0, F.useContext)(YW), t = JW(), n = (0, F.useSyncExternalStore)(Cu, abe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function ube() {
+ let e = (0, F.useContext)(JW), t = qW(), n = (0, F.useSyncExternalStore)(Cu, sbe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = HW(!Bf(Np.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (VW || BW.seq === LW ? t.opens = -1 : BW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = VW(!Bf(Np.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (BW || zW.seq === IW ? t.opens = -1 : zW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && sbe(i.current, e);
+ t.queued = !1, t.mounted && i.current && lbe(i.current, e);
}));
}, [
t,
@@ -54246,7 +54256,7 @@ function cbe() {
e
]), null;
}
-function WW() {
+function UW() {
let { pathname: e } = ef();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -54255,23 +54265,23 @@ function WW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), IW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), FW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(eG, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ube, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)($W, {}) : null] });
}
-function lbe() {
- let e = (0, F.useContext)(YW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gye, {
+function dbe() {
+ let e = (0, F.useContext)(JW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var GW = () => pu, ube = () => mu;
-function dbe() {
- let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, ube), n = (0, F.useSyncExternalStore)(Cu, GW);
+var WW = () => pu, fbe = () => mu;
+function pbe() {
+ let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Cu, fbe), n = (0, F.useSyncExternalStore)(Cu, WW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54286,8 +54296,8 @@ function dbe() {
e
]), null;
}
-function KW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Cu, GW), r = (0, F.useRef)(void 0);
+function GW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Cu, WW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
let { claimed: e } = Np.navigation;
r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
@@ -54306,11 +54316,11 @@ function KW(e, t = !1) {
}));
}, [n]);
}
-function fbe() {
- let e = (0, F.useContext)(YW), t = (0, F.useRef)(e);
+function mbe() {
+ let e = (0, F.useContext)(JW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), KW((t) => {
+ }, [e]), GW((t) => {
let n = Np.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
e && a && (Gf(), t || Kf(Np.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
@@ -54319,8 +54329,8 @@ function fbe() {
});
}, []), null;
}
-function pbe({ path: e }) {
- JW();
+function hbe({ path: e }) {
+ qW();
let { location: t, seq: n, action: r } = Np.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
@@ -54332,24 +54342,24 @@ function pbe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(fbe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(mbe, {}, `${e} ${o.current.seq}`);
}
-function mbe() {
- let e = (0, F.useContext)(YW);
- return KW(() => {
+function gbe() {
+ let e = (0, F.useContext)(JW);
+ return GW(() => {
e?.follow?.ground();
}), null;
}
-function hbe() {
- return /* @__PURE__ */ (0, I.jsx)(mbe, {}, JW());
+function _be() {
+ return /* @__PURE__ */ (0, I.jsx)(gbe, {}, qW());
}
// src/react/router/router.tsx
-var qW = (0, F.createContext)(0), JW = () => (0, F.useContext)(qW), YW = (0, F.createContext)(null);
-function gbe({ children: e }) {
+var KW = (0, F.createContext)(0), qW = () => (0, F.useContext)(KW), JW = (0, F.createContext)(null);
+function vbe({ children: e }) {
let [t, n] = (0, F.useState)(() => Np.navigation);
return (0, F.useLayoutEffect)(() => (n(Np.navigation), Np.listen((e) => {
(0, Rt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(KW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Tf, {
location: t.location,
@@ -54359,34 +54369,34 @@ function gbe({ children: e }) {
})
});
}
-function _be({ target: e }) {
+function ybe({ target: e }) {
let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function vbe(e, t, n) {
+function bbe(e, t, n) {
let r = new URL(e, window.location.href);
- B6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ z6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function ybe() {
- let e = (0, F.useContext)(YW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
+function xbe() {
+ let e = (0, F.useContext)(JW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(gp()), _p((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && vbe(t, e, r.current);
+ e && r.current && bbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_be, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(bbe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ybe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Sbe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(xbe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Cbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var bbe = class extends F.Component {
+var Sbe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -54397,48 +54407,48 @@ var bbe = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, xbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return e8(e.path) ? (0, Rt.createPortal)(oLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Cbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return $6(e.path) ? (0, Rt.createPortal)(cLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function Sbe({ children: e }) {
+function wbe({ children: e }) {
let t = ef();
- JW();
+ qW();
let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Ef, {
location: n ?? t,
children: [
- Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(nLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(iLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(V6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(W6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(U6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(K6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- $6.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Q6.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: q6["/"].element
+ element: K6["/"].element
}, e)),
- Object.entries(rLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(aLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(hbe, {}) : q6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(_be, {}) : K6["/"].element
}, e)),
jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
@@ -54454,7 +54464,7 @@ function Sbe({ children: e }) {
location: r ?? t,
children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(pbe, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(hbe, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
@@ -54462,38 +54472,38 @@ function Sbe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(hye, {})
+ element: /* @__PURE__ */ (0, I.jsx)(_ye, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function Cbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(VV, { children: [n, /* @__PURE__ */ (0, I.jsx)(YW.Provider, {
+function Tbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(BV, { children: [n, /* @__PURE__ */ (0, I.jsx)(JW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(gbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(ybe, {}),
- /* @__PURE__ */ (0, I.jsx)(lbe, {}),
+ children: /* @__PURE__ */ (0, I.jsxs)(vbe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(xbe, {}),
/* @__PURE__ */ (0, I.jsx)(dbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(mye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(uye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(Sbe, { children: e })
+ /* @__PURE__ */ (0, I.jsx)(pbe, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Nve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Lve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(gye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(fye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(wbe, { children: e })
] })
})] });
}
-var wbe = { onCaughtError: (e) => {
+var Ebe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, XW = {
+} }, YW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function ZW(e, t = "", n = "") {
+function XW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54505,14 +54515,14 @@ function ZW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function QW(e, t) {
+function ZW(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function Tbe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(YW), a = mH(), [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 Dbe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(JW), a = pH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -54541,7 +54551,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54555,7 +54565,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54563,7 +54573,7 @@ function Tbe({ 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)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54575,20 +54585,20 @@ function Tbe({ 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)(eV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)($B, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(VU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(XW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: Object.entries(YW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(HU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54599,7 +54609,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(LV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54607,7 +54617,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(LV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54644,9 +54654,9 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(RH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(LH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54664,7 +54674,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: a.error
}) : null
@@ -54679,7 +54689,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...mV(a.busy === "remove"),
+ ...pV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -54691,13 +54701,13 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...mV(a.busy === "save"),
+ ...pV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...mV(a.busy === "preview"),
+ ...pV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54710,7 +54720,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function Ebe(e, t) {
+function Obe(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 = () => {
@@ -54733,34 +54743,34 @@ function Ebe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function $W() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(Dbe, {}) : null;
+function QW() {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(kbe, {}) : null;
}
-function Dbe() {
- let e = ef(), t = (0, F.useContext)(YW);
+function kbe() {
+ let e = ef(), t = (0, F.useContext)(JW);
if (!jn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: jB,
- onClick: () => t?.navigate(QW(e, r ? {
+ icon: AB,
+ onClick: () => t?.navigate(ZW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Obe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(kbe, {
+function Abe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(jbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function kbe({ children: e, enabled: t }) {
+function jbe({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -54780,7 +54790,7 @@ function kbe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(eG, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)($W, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54788,14 +54798,14 @@ function kbe({ children: e, enabled: t }) {
]
});
}
-function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = ef(), i = (0, F.useContext)(YW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = ef(), i = (0, F.useContext)(JW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Ebe(o, e);
+ Obe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...ZW(s, c),
+ ...XW(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -54809,11 +54819,11 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(QW(r, {
+ d(!1), i.navigate(ZW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(jbe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Nbe, {
scope: s,
selected: c,
current: _,
@@ -54830,21 +54840,21 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(cL, {
"aria-label": "打开文件夹目录",
- icon: Uge,
+ icon: Wge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(d_e, {
+ /* @__PURE__ */ (0, I.jsxs)(f_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(kV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(OV, {
current: !c,
onClick: () => g(""),
- icon: jB,
+ icon: AB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(kV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(OV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54854,15 +54864,15 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(oL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(cL, {
"aria-label": "设置目录用途",
- icon: Age,
+ icon: jge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54874,7 +54884,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(cV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54886,14 +54896,14 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(RV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(QW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(ZW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${XW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${YW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54903,13 +54913,13 @@ function eG({ 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)(Abe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Mbe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(sV, {
+ /* @__PURE__ */ (0, I.jsxs)(oV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54919,7 +54929,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54928,7 +54938,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Tbe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Dbe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54936,7 +54946,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Abe({ nodes: e, go: t }) {
+function Mbe({ 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",
@@ -54947,7 +54957,7 @@ function Abe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jB,
+ leadingIcon: AB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54964,28 +54974,28 @@ function Abe({ nodes: e, go: t }) {
}) : null]
});
}
-function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(ZW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...ZW(e, "", u),
+function Nbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Ft(XW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
+ ...XW(e, "", u),
enabled: !!u.trim()
- }), f = zV();
+ }), f = RV();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = Nt({ queries: p.map((t) => ZW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => XW(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(PV, {
+ return /* @__PURE__ */ (0, I.jsx)(NV, {
id: e.id,
label: e.name,
- icon: jB,
- expandedIcon: NB,
+ icon: AB,
+ expandedIcon: MB,
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)(PV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(NV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -55001,15 +55011,15 @@ function jbe({ 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)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: GB,
+ leadingIcon: WB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -55044,20 +55054,20 @@ function jbe({ 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)(lV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jB,
+ leadingIcon: AB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: GB,
+ icon: WB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -55066,7 +55076,7 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(m_e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(h_e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55074,11 +55084,11 @@ function jbe({ 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)(uV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: jB,
+ icon: AB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55091,63 +55101,63 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var tG = "peach.catalog-view.v1", nG = /* @__PURE__ */ new Set(), rG = "cards";
-function iG() {
+var eG = "peach.catalog-view.v1", tG = /* @__PURE__ */ new Set(), nG = "cards";
+function rG() {
try {
- return localStorage.getItem(tG) === "list" ? "list" : "cards";
+ return localStorage.getItem(eG) === "list" ? "list" : "cards";
} catch {
- return rG;
+ return nG;
}
}
-function Mbe(e) {
- rG = e === "list" ? "list" : "cards";
+function Pbe(e) {
+ nG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(tG, rG);
+ localStorage.setItem(eG, nG);
} catch {}
- nG.forEach((e) => e());
+ tG.forEach((e) => e());
}
-function Nbe(e) {
- nG.add(e);
+function Fbe(e) {
+ tG.add(e);
let t = (t) => {
- (t.key === tG || t.key === null) && e();
+ (t.key === eG || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- nG.delete(e), removeEventListener("storage", t);
+ tG.delete(e), removeEventListener("storage", t);
};
}
-var aG = () => (0, F.useSyncExternalStore)(Nbe, iG, () => "cards");
+var iG = () => (0, F.useSyncExternalStore)(Fbe, rG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function oG() {
- let e = aG();
- return /* @__PURE__ */ (0, I.jsxs)(jz, {
+function aG() {
+ let e = iG();
+ return /* @__PURE__ */ (0, I.jsxs)(Az, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Mbe,
+ onChange: Pbe,
"data-entity-layout": "",
- className: aU,
- children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: iU,
+ children: [/* @__PURE__ */ (0, I.jsx)(jz, {
value: "cards",
"aria-label": "卡片",
- className: oU,
+ className: aU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(LB, {
+ children: /* @__PURE__ */ (0, I.jsx)(IB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Mz, {
+ }), /* @__PURE__ */ (0, I.jsx)(jz, {
value: "list",
"aria-label": "列表",
- className: oU,
+ className: aU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(zge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Bge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55156,8 +55166,8 @@ function oG() {
});
}
// src/react/components/icon-swap.tsx
-function sG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = EC();
+function oG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = TC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55173,114 +55183,114 @@ function sG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function cG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(sG, {
- a: uge,
- b: lge,
+function sG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(oG, {
+ a: dge,
+ b: uge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var lG = (e) => typeof e == "string" ? e : "", uG = (e) => e.aliases;
-function dG(e, t = "") {
+var cG = (e) => typeof e == "string" ? e : "", lG = (e) => e.aliases;
+function uG(e, t = "") {
let n = Ji(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function fG(e, t = "") {
+function dG(e, t = "") {
let n = z(si(t || e)), r = Ji(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var pG = (e) => lG(e.title).trim() || "未命名内容", mG = (e, t) => oi(e, uG(t));
-function hG(e) {
+var fG = (e) => cG(e.title).trim() || "未命名内容", pG = (e, t) => oi(e, lG(t));
+function mG(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = lG(n.entity_name);
+ let n = t[0], r = cG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function gG(e, t) {
+function hG(e, t) {
let { src: n, fallback: r } = ci(e), i = si(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function _G(e, t, n) {
- let r = uG(n), i = e.credit, a = i?.poster;
+function gG(e, t, n) {
+ let r = lG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = oi(t, r);
return {
- author: n || lG(e.author) || lG(e.source_label) || "创作者未取得",
- avatar: gG(t, n),
+ author: n || cG(e.author) || cG(e.source_label) || "创作者未取得",
+ avatar: hG(t, n),
credited: "",
- entityName: hG(t)
+ entityName: mG(t)
};
}
let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && oi(c, r) || a;
return {
author: l,
- avatar: gG(c, l),
+ avatar: hG(c, l),
credited: i.credited || "",
- entityName: hG(c)
+ entityName: mG(c)
};
}
-function vG(e, t = e.primary) {
+function _G(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = lG(e.primary.version);
+ let i = cG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = lG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = cG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function yG(e, t = e.primary) {
+function vG(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => dG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => uG(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function bG(e, t) {
- let n = lG(e.media_error);
+function yG(e, t) {
+ let n = cG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Pbe = 864e5, Fbe = (e, t) => {
+var Ibe = 864e5, Lbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Pbe;
+ return Number.isFinite(n) && n - t > Ibe;
};
-function xG(e, t) {
- let n = lG(e.published_at);
+function bG(e, t) {
+ let n = cG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Cr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Fbe(n, t) ? " · 晚于现在" : ""
+ suffix: Lbe(n, t) ? " · 晚于现在" : ""
};
}
-function SG(e, t = Date.now()) {
- let n = xG(e, t);
+function xG(e, t = Date.now()) {
+ let n = bG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function CG(e, t = Date.now()) {
- let n = xG(e, t);
+function SG(e, t = Date.now()) {
+ let n = bG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var wG = /* @__PURE__ */ new Set(), TG = [], EG = null;
-function DG() {
- if (EG = null, !TG.length) return;
- let e = TG.splice(0, 200);
+var CG = /* @__PURE__ */ new Set(), wG = [], TG = null;
+function EG() {
+ if (TG = null, !wG.length) return;
+ let e = wG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), TG.length && (EG = setTimeout(DG, 800));
+ }).catch(() => {}), wG.length && (TG = setTimeout(EG, 800));
}
-function Ibe(e, t, n, r) {
+function Rbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- wG.has(i) || (wG.add(i), TG.push(t === null ? {
+ CG.has(i) || (CG.add(i), wG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55289,25 +55299,25 @@ function Ibe(e, t, n, r) {
width: n,
height: r,
media: t
- }), EG ||= setTimeout(DG, 800));
+ }), TG ||= setTimeout(EG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Lbe = (e) => e === "videos", OG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var zbe = (e) => e === "videos", DG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Rbe = fV("shuffle"), zbe = fV("arrow-up"), Bbe = fV("arrow-down");
-function Vbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Lbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Bbe = dV("shuffle"), Vbe = dV("arrow-up"), Hbe = dV("arrow-down");
+function Ube(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = zbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = gL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = gL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = gL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = vL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = vL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = vL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }), /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55336,19 +55346,19 @@ function Vbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Gbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ube, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(DG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Gbe, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(OG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(DG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55369,11 +55379,11 @@ function Vbe(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(DG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55382,17 +55392,17 @@ function Vbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Wbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Kbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Kbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Jbe, { ...e })
})] });
}
-var Hbe = [[
+var Wbe = [[
"videos",
"视频",
"play",
@@ -55403,7 +55413,7 @@ var Hbe = [[
"pics",
"image"
]];
-function Ube({ head: e, row: t, glide: n, onMedia: r }) {
+function Gbe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55411,7 +55421,7 @@ function Ube({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Hbe.map(([t, i, a, o]) => {
+ children: Wbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55429,7 +55439,7 @@ function Ube({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Wbe({ head: e, actions: t }) {
+function Kbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55439,10 +55449,10 @@ function Wbe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: dG(n) }
+ dangerouslySetInnerHTML: { __html: uG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(DG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55455,7 +55465,7 @@ function Wbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function Gbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function qbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55503,7 +55513,7 @@ function Gbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function kG({ items: e, hidden: t, actions: n }) {
+function OG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55523,7 +55533,7 @@ function kG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Kbe(e) {
+function Jbe(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", {
@@ -55535,30 +55545,30 @@ function Kbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(qbe, {
+ /* @__PURE__ */ (0, I.jsx)(Ybe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Jbe, {
+ /* @__PURE__ */ (0, I.jsx)(EV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Ybe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Zbe, {
head: e.online,
actions: o
}) : null
] });
}
-function qbe({ text: e, busy: t }) {
+function Ybe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55569,22 +55579,22 @@ function qbe({ text: e, busy: t }) {
})
});
}
-function AG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+function kG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: aU,
+ className: iU,
children: r.map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ let r = dV(n);
+ return /* @__PURE__ */ (0, I.jsx)(jz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: oU,
+ className: aU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55594,38 +55604,38 @@ function AG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function jG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(uL, {
+function AG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(fL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Rbe,
+ icon: Bbe,
onPress: e
});
}
-function Jbe({ head: e, actions: t }) {
- let n = aG();
+function Xbe({ head: e, actions: t }) {
+ let n = iG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(kG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)($W, {}),
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(aG, {}),
+ /* @__PURE__ */ (0, I.jsx)(QW, {}),
+ /* @__PURE__ */ (0, I.jsx)(jG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function MG({ sorts: e, onSort: t }) {
+function jG({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -55633,20 +55643,20 @@ function MG({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(sG, {
- a: zbe,
- b: Bbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(oG, {
+ a: Vbe,
+ b: Hbe,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Ybe({ head: e, actions: t }) {
+function Zbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55666,27 +55676,27 @@ function Ybe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(jG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function Xbe({ head: e, actions: t, helpers: n }) {
+function Qbe({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(jG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(AG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55701,8 +55711,8 @@ function Xbe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var Zbe = "peach.catalog.tiers.v1";
-function NG() {
+var $be = "peach.catalog.tiers.v1";
+function MG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55716,40 +55726,40 @@ function NG() {
};
}
}
-function Qbe(e) {
+function exe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Zbe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem($be, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function $be(e) {
- let t = !e.tiers, n = oxe(e.comboHost);
+function txe(e) {
+ let t = !e.tiers, n = cxe(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(OG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(nxe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(exe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(ixe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(nxe, { ...e })
]
});
}
-function exe(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = gL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function nxe(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = vL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = FG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = PG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55773,7 +55783,7 @@ function exe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
ec(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55817,23 +55827,23 @@ function exe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(txe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(rxe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(oxe, { ...e })
});
}
-function txe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(fL, {
+function rxe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55842,15 +55852,15 @@ function txe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function nxe(e) {
- rL();
+function ixe(e) {
+ aL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = FG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = FG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? NG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = PG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = PG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? MG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || Qbe({
+ i || exe({
performers: f,
studios: p
});
@@ -55871,7 +55881,7 @@ function nxe(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55882,7 +55892,7 @@ function nxe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55891,13 +55901,13 @@ function nxe(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(rxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(axe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(oL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55905,7 +55915,7 @@ function nxe(e) {
}) : null]
});
}
-function rxe({ studio: e }) {
+function axe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55923,7 +55933,7 @@ function rxe({ studio: e }) {
}) : e.fallback
});
}
-function PG({ kind: e }) {
+function NG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55939,43 +55949,43 @@ function PG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function ixe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = aG(), [o, s] = (0, F.useState)(!1);
+function oxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = iG(), [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)(axe, { count: e }), /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(sxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(EV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(kG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)($W, {}),
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(aG, {}),
+ /* @__PURE__ */ (0, I.jsx)(QW, {}),
+ /* @__PURE__ */ (0, I.jsx)(jG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function axe({ count: e }) {
+function sxe({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55986,7 +55996,7 @@ function axe({ count: e }) {
})
});
}
-function oxe(e) {
+function cxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -55996,7 +56006,7 @@ function oxe(e) {
};
}, [e]), t;
}
-function FG(e, t, n, r, i) {
+function PG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56039,8 +56049,8 @@ function FG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var IG = "100% 0px";
-function sxe(e, t) {
+var FG = "100% 0px";
+function lxe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && pc(a.current);
@@ -56066,7 +56076,7 @@ function sxe(e, t) {
fading: n === "fade"
};
}
-function LG({ message: e, onRetry: t }) {
+function IG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -56079,7 +56089,7 @@ function LG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function RG({ pending: e, skeletonHtml: t, children: n }) {
+function LG({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
@@ -56103,25 +56113,25 @@ function RG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function zG({ name: e }) {
+function RG({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function BG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
+function zG({ name: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
}
-function VG({ value: e, label: t, title: n }) {
+function BG({ value: e, label: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("time", {
"data-media-release": "",
dateTime: e,
title: n || t,
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "calendar" }), t]
});
}
-function HG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function VG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56139,12 +56149,12 @@ function HG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var cxe = 3;
-function lxe(e, t, n = cxe) {
+var uxe = 3;
+function dxe(e, t, n = uxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function UG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = lxe(e, t);
+function HG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = dxe(e, t);
if (!a) return null;
let o = [e.join(" · "), t.length ? `共同标签:${t.join("、")}` : ""].filter(Boolean).join("\n");
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
@@ -56159,15 +56169,15 @@ function UG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(uz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: AV,
+ children: /* @__PURE__ */ (0, I.jsx)(Cz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-pre-line break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -56176,63 +56186,63 @@ function UG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var WG = "peach.library-colors.v1", GG = null, KG = /* @__PURE__ */ new Set();
-function uxe() {
+var UG = "peach.library-colors.v1", WG = null, GG = /* @__PURE__ */ new Set();
+function fxe() {
try {
- let e = JSON.parse(localStorage.getItem(WG) || "{}");
+ let e = JSON.parse(localStorage.getItem(UG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function qG(e) {
- GG = e;
+function KG(e) {
+ WG = e;
try {
- localStorage.setItem(WG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(UG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- KG.forEach((t) => t(e));
+ GG.forEach((t) => t(e));
}
-function JG() {
- return GG;
+function qG() {
+ return WG;
}
-function dxe(e) {
- return KG.add(e), () => {
- KG.delete(e);
+function pxe(e) {
+ return GG.add(e), () => {
+ GG.delete(e);
};
}
// src/react/components/library-tint.ts
-var YG = /* @__PURE__ */ new Map(), XG = !1, ZG = /* @__PURE__ */ new Set();
-function fxe(e) {
+var JG = /* @__PURE__ */ new Map(), YG = !1, XG = /* @__PURE__ */ new Set();
+function mxe(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function QG(e) {
- YG = e;
+function ZG(e) {
+ JG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...YG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${fxe(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...JG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${mxe(e.color)}}`).join("\n");
}
-function $G(e) {
- QG(e), ZG.forEach((e) => e());
+function QG(e) {
+ ZG(e), XG.forEach((e) => e());
}
-var eK = (e) => new Map(e.map((e) => [e.id, {
+var $G = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: _s[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), tK = !1;
-function pxe() {
- if (tK) return;
- tK = !0, dxe((e) => $G(eK(e)));
- let e = JG();
+}])), eK = !1;
+function hxe() {
+ if (eK) return;
+ eK = !0, pxe((e) => QG($G(e)));
+ let e = qG();
if (e) {
- QG(eK(e));
+ ZG($G(e));
return;
}
- let t = Object.entries(uxe()).filter(([, e]) => e);
- t.length && QG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(fxe()).filter(([, e]) => e);
+ t.length && ZG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56240,56 +56250,56 @@ function pxe() {
color: t
}])));
}
-function mxe() {
- XG || JG() || (XG = !0, B("/api/libraries").then((e) => qG(e.libraries || [])).catch(() => {
- XG = !1;
+function gxe() {
+ YG || qG() || (YG = !0, B("/api/libraries").then((e) => KG(e.libraries || [])).catch(() => {
+ YG = !1;
}));
}
-function hxe(e, t) {
- let n = YG.get(e) ?? {
+function _xe(e, t) {
+ let n = JG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- $G(new Map([...YG, [e, {
+ QG(new Map([...JG, [e, {
...n,
color: t
}]]));
}
-function gxe(e) {
- return ZG.add(e), () => {
- ZG.delete(e);
+function vxe(e) {
+ return XG.add(e), () => {
+ XG.delete(e);
};
}
-function nK({ names: e = !1 } = {}) {
- return pxe(), e && mxe(), (0, F.useSyncExternalStore)(gxe, () => YG, () => YG);
+function tK({ names: e = !1 } = {}) {
+ return hxe(), e && gxe(), (0, F.useSyncExternalStore)(vxe, () => JG, () => JG);
}
// src/react/components/row-click.ts
-var _xe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function rK(e, t) {
+var yxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function nK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(_xe);
+ let r = n.closest(yxe);
return !r || !t.contains(r) || r === t;
}
-function iK(e) {
+function rK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var aK = 9 / 16, oK = "未命名视频", vxe = {
+var iK = 9 / 16, aK = "未命名视频", bxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, yxe = {
+}, xxe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function bxe(e) {
+function Sxe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56317,16 +56327,16 @@ function bxe(e) {
label: "尚未探查"
};
}
-function sK({ item: e }) {
+function oK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && yxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && xxe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function cK({ item: e, actions: t }) {
+function sK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56345,10 +56355,10 @@ function cK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function lK(e, t, n) {
- return t === "short" ? aK : bM(n);
+function cK(e, t, n) {
+ return t === "short" ? iK : SM(n);
}
-function uK(e) {
+function lK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -56380,7 +56390,7 @@ function uK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56390,16 +56400,16 @@ function uK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: n })
})
};
}
-function xxe() {
+function Cxe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56418,7 +56428,7 @@ function xxe() {
})]
});
}
-function Sxe({ item: e, actions: t, on: n, onChange: r }) {
+function wxe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56433,22 +56443,22 @@ function Sxe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function dK(e, t) {
+function uK(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 Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- rL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = nK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+function Txe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ aL();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = tK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = lK(e, t, n), w = S ? n.size : "small", T = C === aK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || oK, A = o.titleHtml(e, O).trim() || z(oK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : bxe(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 } = uK(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 = cK(e, t, n), w = S ? n.size : "small", T = C === iK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || aK, A = o.titleHtml(e, O).trim() || z(aK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Sxe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = lK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56475,10 +56485,10 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === aK ? "" : void 0,
+ "data-pic-portrait": C === iK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(GU, {
artwork: E,
identity: D,
relayout: (e) => El(e, w)
@@ -56492,11 +56502,11 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56512,7 +56522,7 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-copy-key": ee ? `media.duration.${ee.key}` : void 0,
children: ee ? ee.label : Jn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(cK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(sK, {
item: e,
actions: s
}) : null,
@@ -56528,22 +56538,22 @@ function Cxe({ 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)(xxe, {}),
+ /* @__PURE__ */ (0, I.jsx)(Cxe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(Sxe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(wxe, {
item: e,
actions: s,
on: p,
@@ -56558,27 +56568,27 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), dK(u.current, -a);
+ e.stopPropagation(), uK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), dK(u.current, a);
+ e.stopPropagation(), uK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "expand" })
})
]
})
@@ -56598,7 +56608,7 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: iK,
+ onMouseDown: rK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56636,33 +56646,33 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-facts": "",
- children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(BG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(UG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(HG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(HG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(VG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(oK, { item: e })
]
})]
})
]
});
}
-function wxe({ 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") ? "网址快捷方式" : vxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Exe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : bxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56674,14 +56684,14 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: iK,
+ onMouseDown: rK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56693,13 +56703,13 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(cK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(sK, {
item: e,
actions: i
})
@@ -56710,7 +56720,7 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56738,29 +56748,29 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(oK, { item: e })
]
})]
})]
});
}
-function Txe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(wxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Cxe, { ...e });
+function Dxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Exe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Txe, { ...e });
}
-var fK = (0, F.memo)(Txe), Exe = 1100, Dxe = 340, Oxe = 5e3;
-function kxe(e, t, n) {
+var dK = (0, F.memo)(Dxe), Oxe = 1100, kxe = 340, Axe = 5e3;
+function jxe(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, Oxe);
+ }, s = () => o(!1), c = setTimeout(s, Axe);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function pK({ load: e, canFlip: t, referrerPolicy: n }) {
+function fK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -56802,11 +56812,11 @@ function pK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => kxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => jxe(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, Exe);
+ p(), e.cycle = setInterval(p, Oxe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56815,7 +56825,7 @@ function pK({ 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(Dxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(kxe, () => {
e.armed = null, m();
});
},
@@ -56825,8 +56835,8 @@ function pK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var mK = fV("play");
-function Axe({ src: e }) {
+var pK = dV("play");
+function Mxe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56839,8 +56849,8 @@ function Axe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var hK = "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 jxe({ faces: e, fallback: t, onOpenEntity: n }) {
+var mK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Nxe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -56848,18 +56858,18 @@ function jxe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${hK} cursor-pointer outline-none`,
+ className: `${mK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: _o(e.name, e, Za(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${hK} mt-0.5`,
+ className: `${mK} mt-0.5`,
children: t
});
}
-function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = pK({
+function hK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = fK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56886,11 +56896,11 @@ function gK({ 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)(KU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(GU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Axe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Mxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56920,7 +56930,7 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(mK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(pK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56933,8 +56943,8 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(mK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(jxe, {
+ children: /* @__PURE__ */ (0, I.jsx)(pK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Nxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56957,20 +56967,20 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var _K = {
+var gK = {
x: 16,
y: 16,
scale: 1
-}, Mxe = .65, Nxe = 1.6, vK = (e) => Math.min(Nxe, Math.max(Mxe, e)), yK = (e, t, n, r) => ({
+}, Pxe = .65, Fxe = 1.6, _K = (e) => Math.min(Fxe, Math.max(Pxe, e)), vK = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function Pxe(e, t, n) {
+function Ixe(e, t, n) {
let r = 120 / t.scale, i = -e.x / e.scale, a = -e.y / e.scale, o = -t.x / t.scale - r, s = -t.y / t.scale - r;
return i >= o && a >= s && i + n.width / e.scale <= o + n.width / t.scale + r * 2 && a + n.height / e.scale <= s + n.height / t.scale + r * 2;
}
-function Fxe(e, t, n = _K, r = !1) {
+function Lxe(e, t, n = gK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -57002,12 +57012,12 @@ function Fxe(e, t, n = _K, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = tbe(e, o.current, ebe(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = rbe(e, o.current, nbe(r), c && !f && !n), h = s.current;
s.current = p;
let g = window.devicePixelRatio || 1, _ = a.current;
_ && (_.style.transform = `translate3d(${Math.round(p.x * g) / g}px, ${Math.round(p.y * g) / g}px, 0) scale(${p.scale})`, (p.x !== h.x || p.y !== h.y || p.scale !== h.scale) && (_.style.willChange = "transform", m.current !== null && clearTimeout(m.current), m.current = setTimeout(() => {
m.current = null, _.style.willChange = "";
- }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !Pxe(p, u.current, o.current)) && (u.current = p, l({
+ }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !Ixe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57037,7 +57047,7 @@ function Fxe(e, t, n = _K, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = yK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = vK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
}
let a = Math.hypot(t.x, t.y) < .5, o = a ? t.x : t.x * n, c = a ? t.y : t.y * n;
y({
@@ -57050,13 +57060,13 @@ function Fxe(e, t, n = _K, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = yK(n, vK(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = vK(n, _K(n.scale * t.factor), t.x, t.y)), e && (n = {
...n,
x: n.x + e.x,
y: n.y + e.y
}), y(n);
} else t && Object.assign(n, {
- scale: vK((n.scale || s.current.scale) * t.factor),
+ scale: _K((n.scale || s.current.scale) * t.factor),
anchorX: t.x,
anchorY: t.y
}), e && (n.x += e.x, n.y += e.y), f.current === null && (n.scale || n.x || n.y) && (n.previous = 0, f.current = requestAnimationFrame(x));
@@ -57098,7 +57108,7 @@ function Fxe(e, t, n = _K, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || b() ? y(a, !0, n) : p.current = dS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = uS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57123,7 +57133,7 @@ function Fxe(e, t, n = _K, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ..._K }, !0);
+ v(), y({ ...gK }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57184,16 +57194,16 @@ function Fxe(e, t, n = _K, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Ixe = {
+var Rxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Lxe = {
+}, zxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Rxe(e, t, n) {
+function Bxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57234,15 +57244,15 @@ function Rxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = eS(), x = Rxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = $x(), x = Bxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(xn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(fS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(dS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57252,7 +57262,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Lxe,
+ transition: b ? { duration: 0 } : zxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57260,7 +57270,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...mV(C),
+ ...pV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57310,7 +57320,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...mV(d),
+ ...pV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57356,7 +57366,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function bK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function yK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -57392,7 +57402,7 @@ function bK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function xK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function bK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -57415,7 +57425,7 @@ function xK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Bxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Hxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57424,28 +57434,28 @@ var Bxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Vxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Uxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(bK, {
+ children: /* @__PURE__ */ (0, I.jsx)(yK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(xK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(bK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? LP(e.part_label) : "",
+ e.part_label ? zP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(KU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(GU, { artwork: To(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? LP(e.part_label) : "",
+ e.part_label ? zP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57453,7 +57463,7 @@ function Vxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function Hxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Wxe(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",
@@ -57468,17 +57478,17 @@ function Hxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function SK(e = `${location.pathname}${location.search}`) {
+function xK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of FW) t.delete(e);
+ for (let e of PW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function CK() {
+function SK() {
let e = new URLSearchParams(Np.navigation.location.search).get("returnTo") || "/";
Np.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var CK = /* @__PURE__ */ new Map(), wK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = To(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -57491,7 +57501,7 @@ var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(KU, {
+ children: /* @__PURE__ */ (0, I.jsx)(GU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && fl(e, r);
@@ -57499,31 +57509,31 @@ var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Uxe({ 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 Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
- let e = wK.get(f);
+ let e = CK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new nbe()), 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 ibe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Ft({
- queryKey: gP(M || {
+ queryKey: vP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => TP(M, {
+ queryFn: ({ signal: e }) => DP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === OP(N, O || w?.id || null)) || w, P = Fxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === AP(N, O || w?.id || null)) || w, P = Lxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = eS(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = $x(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57538,7 +57548,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return e.className = "peach-react", e;
});
(0, F.useLayoutEffect)(() => {
- document.body.append(Ce), IW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), FW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
let [we, Te] = (0, F.useState)(() => Bf(Np.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
Ae.current = !!e.length;
@@ -57557,20 +57567,20 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (wK.delete(f), wK.set(f, {
+ Ae.current && (CK.delete(f), CK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), wK.size > 8 && wK.delete(wK.keys().next().value));
+ }), CK.size > 8 && CK.delete(CK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = PW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
+ let Ne = NW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
...e,
index: -1
})) : t ? Ne : h.assign(Ne, e.length, n).map((t) => t.index < e.length || w && t.key === E ? t : {
...t,
index: -1
- }), Fe = w && (t ? MW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? NW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? jW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? MW(e.length, t, Fe) : /* @__PURE__ */ new Map();
Fe && !Pe.some((e) => e.key === Fe.key) && Pe.push(Fe);
let Le = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -57611,7 +57621,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Le(!1), Oe.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(NW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(MW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Ve = () => {
te && y.current && (Me(), Le(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, He = async (e = te) => {
@@ -57633,7 +57643,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = kP(N || null, oe || 0);
+ let e = jP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57655,7 +57665,7 @@ function Uxe({ 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 ? $ye(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? tbe(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57747,7 +57757,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(TK, {
+ children: /* @__PURE__ */ (0, I.jsx)(wK, {
item: w,
image: Ee,
big: !0
@@ -57755,7 +57765,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(TK, {
+ children: /* @__PURE__ */ (0, I.jsx)(wK, {
item: w,
image: Ee,
big: !0
@@ -57784,7 +57794,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Qe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ze(Qe).startsWith(Qe.code) ? Ze(Qe).slice(Qe.code.length).trim() : Ze(Qe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Qe.performers?.join(" · ") || Qe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? LP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? zP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57801,7 +57811,7 @@ function Uxe({ 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)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57811,7 +57821,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(zxe, {
+ /* @__PURE__ */ (0, I.jsx)(Vxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57833,7 +57843,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Vxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Uxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57849,7 +57859,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: we,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : CK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : SK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57860,7 +57870,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: CK,
+ onClick: SK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57869,7 +57879,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(jG, {
+ children: /* @__PURE__ */ (0, I.jsx)(AG, {
busy: r,
onPress: () => void Ye()
})
@@ -57935,7 +57945,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => Np.push(SK()),
+ onClick: () => Np.push(xK()),
children: "清除筛选"
})]
}) : null
@@ -57991,7 +58001,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = !!w && t.key === E, r = n ? w : e[t.index], i = Ie.get(t.key) || t, a = !re && !n, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(fS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(dS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -58012,7 +58022,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !n && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: Ixe,
+ layout: Rxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58045,7 +58055,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!n && ["Enter", " "].includes(e.key) && (e.preventDefault(), Be(r, t, !1));
},
children: n ? $e : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(TK, {
+ /* @__PURE__ */ (0, I.jsx)(wK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58071,7 +58081,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(r.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(fS.span, {
+ /* @__PURE__ */ (0, I.jsx)(dS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58083,7 +58093,7 @@ function Uxe({ 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)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -58113,20 +58123,20 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...mV(r),
+ ...pV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...mV(r),
+ ...pV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58136,7 +58146,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var EK = [
+var TK = [
"loc",
"creator",
"performer",
@@ -58155,19 +58165,19 @@ var EK = [
"jav",
"thumb"
];
-function Wxe(e = typeof location > "u" ? "/" : location.href) {
+function Kxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...EK,
+ ...TK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Gxe(e, t) {
+async function qxe(e, t) {
let n = new URLSearchParams();
- for (let t of EK) e[t] && n.set(t, e[t]);
+ for (let t of TK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -58178,9 +58188,9 @@ async function Gxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function DK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function EK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Wxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Kxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58198,12 +58208,12 @@ function DK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Kxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || DK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${SK()}">清除筛选</a>` });
+function Jxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || EK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${xK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function OK({ label: e, maintenance: t = !1, children: n }) {
- let r = gH("hover");
+function DK({ label: e, maintenance: t = !1, children: n }) {
+ let r = hH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58213,13 +58223,13 @@ function OK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function kK({ option: e, metadataOnly: t, onRun: n }) {
+function OK({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(MV, i ? "cursor-not-allowed opacity-50" : NV, "text-body-2-medium"),
+ className: q(jV, i ? "cursor-not-allowed opacity-50" : MV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58230,12 +58240,12 @@ function kK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Yxe({ 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 U_e(e, t.signal, a);
+ let o = await W_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(() => {
@@ -58260,7 +58270,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(CH, {
+ children: /* @__PURE__ */ (0, I.jsx)(SH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58268,7 +58278,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(KH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(GH, {
traffic: s,
initial: !0
}) : null,
@@ -58280,7 +58290,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);
(0, F.useEffect)(() => () => l.current?.close(), []);
let [p, m] = (0, F.useState)(!1), h = {
@@ -58328,7 +58338,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? mV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? pV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58363,7 +58373,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Yxe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58372,11 +58382,11 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(pH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(fH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: vB,
+ trailingIcon: _B,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58394,7 +58404,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: _B,
+ leadingIcon: gB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58404,27 +58414,27 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(dz, {
+ /* @__PURE__ */ (0, I.jsx)(uz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsxs)(wz, {
+ className: AV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Cz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(OK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(DK, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(OK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(OK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(DK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58436,7 +58446,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(OK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58447,48 +58457,48 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function jK(e, t) {
+function AK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !To(e, "small", !1, t).html).map((e) => e.id))];
}
-function MK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Jxe, {
+function jK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Xxe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Jxe({ assetIds: e, onComplete: t, className: n }) {
+function Xxe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: ZV,
- queryFn: ({ signal: e }) => aH(e),
- refetchInterval: (e) => cH(e.state.data, !0)
+ queryKey: XV,
+ queryFn: ({ signal: e }) => iH(e),
+ refetchInterval: (e) => sH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = It({
- mutationFn: (t) => V(XV, {
+ mutationFn: (t) => V(YV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+ a(e.job_id || null), H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !eH(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 && !$V(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || eH(u), f = l.error ? lr(l.error) : r.error ? sH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${eH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || $V(u), f = l.error ? lr(l.error) : r.error ? oH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${$V(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(lV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(cV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(AK, {
+ children: /* @__PURE__ */ (0, I.jsx)(kK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58499,10 +58509,10 @@ function Jxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58510,31 +58520,31 @@ function Jxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Yxe(e) {
- return Xxe(e) || typeof e == "function" || Zxe(e);
+function Zxe(e) {
+ return Qxe(e) || typeof e == "function" || $xe(e);
}
-function Xxe(e) {
+function Qxe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Zxe(e) {
+function $xe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function NK(e, t) {
- return e == null ? null : Yxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function MK(e, t) {
+ return e == null ? null : Zxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function Qxe(e) {
+function eSe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? NK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : NK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? MK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : MK(n.cell, t.getContext());
}
- return "header" in e && e.header ? NK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? NK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? MK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? MK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function $xe({ update: e, notify: t, unwatched: n }) {
+function tSe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58651,7 +58661,7 @@ function $xe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function eSe(e, t, n) {
+function nSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58659,38 +58669,38 @@ function eSe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var PK = [], FK = 0, { link: IK, unlink: tSe, propagate: nSe, checkDirty: LK, shallowPropagate: RK } = /* @__PURE__ */ $xe({
+var NK = [], PK = 0, { link: FK, unlink: rSe, propagate: iSe, checkDirty: IK, shallowPropagate: LK } = /* @__PURE__ */ tSe({
update(e) {
return e._update();
},
notify(e) {
- PK[BK++] = e, e.flags &= -3;
+ NK[zK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, UK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, HK(e));
}
-}), zK = 0, BK = 0, VK, HK = 0;
-function rSe(e) {
+}), RK = 0, zK = 0, BK, VK = 0;
+function aSe(e) {
try {
- ++HK, e();
+ ++VK, e();
} finally {
- --HK || WK();
+ --VK || UK();
}
}
-function UK(e) {
+function HK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = tSe(n, e);
+ for (; n !== void 0;) n = rSe(n, e);
}
-function WK() {
- if (!(HK > 0)) {
- for (; zK < BK;) {
- let e = PK[zK];
- PK[zK++] = void 0, e.notify();
+function UK() {
+ if (!(VK > 0)) {
+ for (; RK < zK;) {
+ let e = NK[RK];
+ NK[RK++] = void 0, e.notify();
}
- zK = 0, BK = 0;
+ RK = 0, zK = 0;
}
}
-function iSe(e, t) {
+function oSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58699,53 +58709,53 @@ function iSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return VK !== void 0 && IK(i, VK, FK), i._snapshot;
+ return BK !== void 0 && FK(i, BK, PK), i._snapshot;
},
subscribe(e) {
- let t = eSe(e), n = { current: !1 }, r = aSe(() => {
- i.get(), n.current ? (VK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = nSe(e), n = { current: !1 }, r = sSe(() => {
+ i.get(), n.current ? (BK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = VK, o = t?.compare ?? Object.is;
- if (n) VK = i, ++FK, i.depsTail = void 0;
+ let a = BK, o = t?.compare ?? Object.is;
+ if (n) BK = i, ++PK, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- VK = a, n && (i.flags &= -5), UK(i);
+ BK = a, n && (i.flags &= -5), HK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && LK(i.deps, i)) {
+ if (e & 16 || e & 32 && IK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && RK(e);
+ e !== void 0 && LK(e);
}
} else e & 32 && (i.flags = e & -33);
- return VK !== void 0 && IK(i, VK, FK), i._snapshot;
+ return BK !== void 0 && FK(i, BK, PK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (nSe(e), RK(e), WK());
+ e !== void 0 && (iSe(e), LK(e), UK());
}
}, i;
}
-function aSe(e) {
+function sSe(e) {
let t = () => {
- let t = VK;
- VK = n, ++FK, n.depsTail = void 0, n.flags = 6;
+ let t = BK;
+ BK = n, ++PK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- VK = t, n.flags &= -5, UK(n);
+ BK = t, n.flags &= -5, HK(n);
}
}, n = {
deps: void 0,
@@ -58755,16 +58765,16 @@ function aSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && LK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && IK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, UK(this);
+ this.flags = 0, this.depsTail = void 0, HK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function GK(e, t) {
+function WK(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -58778,17 +58788,17 @@ function GK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = KK(e);
- if (n.length !== KK(t).length) return !1;
+ let n = GK(e);
+ if (n.length !== GK(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function KK(e) {
+function GK(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 oSe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = rw();
+var cSe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = nw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58832,33 +58842,33 @@ var oSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), qK = /* @__PURE__ */ o(((e, t) => {
- t.exports = oSe();
-})), sSe = qK();
-function cSe(e, t) {
+})), KK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = cSe();
+})), lSe = KK();
+function uSe(e, t) {
return e === t;
}
-function JK(e, t = (e) => e, n) {
- let r = n?.compare ?? cSe, i = (0, F.useCallback)((t) => {
+function qK(e, t = (e) => e, n) {
+ let r = n?.compare ?? uSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, sSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, lSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function lSe(e) {
- let t = JK(e.source, e.selector, { compare: GK });
+function dSe(e) {
+ let t = qK(e.source, e.selector, { compare: WK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function uSe(e) {
+function fSe(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 dSe(e) {
+function pSe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58888,7 +58898,7 @@ function dSe(e) {
}
};
}
-function fSe(e, t = Object.is) {
+function mSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58901,28 +58911,28 @@ function fSe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function pSe() {
- return dSe({
- createAtom: iSe,
- batch: rSe
+function hSe() {
+ return pSe({
+ createAtom: oSe,
+ batch: aSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function YK(e, t) {
+function JK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function XK(e) {
- if (Array.isArray(e)) return e.map(XK);
+function YK(e) {
+ if (Array.isArray(e)) return e.map(YK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? QK() : {}, r = Object.keys(e);
+ let n = t === null ? ZK() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: XK(e[i]),
+ value: YK(e[i]),
writable: !0
});
}
@@ -58930,7 +58940,7 @@ function XK(e) {
}
return e;
}
-function ZK(e, t) {
+function XK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58938,53 +58948,53 @@ function ZK(e, t) {
}
return e;
}
-function QK() {
+function ZK() {
return Object.create(null);
}
-function $K(e, t) {
+function QK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function eq(e, t) {
+function $K(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => YK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => JK(n, e));
};
}
-function tq(e) {
+function eq(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function nq(e) {
+function tq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var mSe = 3;
-function hSe(e, t) {
- return rq(e, t, mSe);
+var gSe = 3;
+function _Se(e, t) {
+ return nq(e, t, gSe);
}
-function rq(e, t, n) {
+function nq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !tq(e) || !tq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = nq(e), i = nq(t);
+ if (n <= 0 || !eq(e) || !eq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = tq(e), i = tq(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !rq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !nq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function iq(e, t, n, r = hSe) {
+function rq(e, t, n, r = _Se) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = YK(n, e);
+ let t = JK(n, e);
return r(e, t) ? e : t;
});
}
-function gSe(e) {
+function vSe(e) {
return e instanceof Function;
}
-function _Se(e, t) {
+function ySe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58994,7 +59004,7 @@ function _Se(e, t) {
};
return r(e), n;
}
-var vSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var bSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -59008,23 +59018,23 @@ var vSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function aq(e) {
+function iq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function oq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function aq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return vSe({
+ return bSe({
...a,
...o
});
}
-function sq(e, t = "_") {
+function oq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59032,10 +59042,10 @@ function sq(e, t = "_") {
parentName: n
};
}
-function cq(e, t, n) {
+function sq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = sq(r);
- t[n] = a ? oq({
+ let { fnKey: n, fnName: o } = oq(r);
+ t[n] = a ? aq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59044,15 +59054,15 @@ function cq(e, t, n) {
}) : i;
}
}
-function lq(e, t, n, r) {
+function cq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = sq(i);
+ let { fnKey: r, fnName: s } = oq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = oq({
+ this[i] = aq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59068,17 +59078,17 @@ function lq(e, t, n, r) {
};
}
}
-function uq(e, t, n, ...r) {
+function lq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function ySe(e) {
+function xSe(e) {
return e.row.getValue(e.column.id);
}
-function bSe(e) {
+function SSe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function xSe(e) {
+function CSe(e) {
return {
table: e.table,
column: e.column,
@@ -59089,18 +59099,18 @@ function xSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var SSe = { assignCellPrototype: (e, t) => {
- lq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => ySe(e) },
- cell_renderValue: { fn: (e) => bSe(e) },
+var wSe = { assignCellPrototype: (e, t) => {
+ cq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => xSe(e) },
+ cell_renderValue: { fn: (e) => SSe(e) },
cell_getContext: {
- fn: (e) => xSe(e),
+ fn: (e) => CSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function CSe(e) {
+function TSe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59108,7 +59118,7 @@ function CSe(e) {
}
return e._columnPrototype;
}
-function wSe(e, t, n, r) {
+function ESe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59128,53 +59138,53 @@ function wSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = CSe(e), u = Object.create(l);
+ let l = TSe(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function dq(e) {
+function uq(e) {
return e.getIsVisible?.() ?? !0;
}
-function TSe(e) {
+function DSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function fq(e, t) {
+function dq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function pq(e, t, n, r) {
+function fq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function mq(e, t) {
+function pq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function ESe(e) {
+function OSe(e) {
e.autoResetExpanded?.();
}
-function hq(e) {
+function mq(e) {
e.autoResetPageIndex?.();
}
-function DSe(e) {
+function kSe(e) {
e.autoResetSorting?.();
}
-function OSe(e) {
+function ASe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function kSe(e) {
+function jSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function ASe(e) {
+function MSe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return fq(e.table, t);
+ return dq(e.table, t);
}
return [e];
}
-function jSe(e) {
+function NSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59185,53 +59195,53 @@ function jSe(e) {
...e.options.defaultColumn
};
}
-function gq(e, t, n, r = 0) {
+function hq(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 = wSe(e, o, r, n), c = o;
- s.columns = c.columns ? gq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = ESe(e, o, r, n), c = o;
+ s.columns = c.columns ? hq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function MSe(e) {
- return gq(e, e.options.columns);
+function PSe(e) {
+ return hq(e, e.options.columns);
}
-function NSe(e) {
+function FSe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function PSe(e) {
- let t = QK(), n = e.getAllFlatColumns();
+function ISe(e) {
+ let t = ZK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function FSe(e) {
- return fq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function LSe(e) {
+ return dq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function ISe(e) {
- let t = QK(), n = e.getAllLeafColumns();
+function RSe(e) {
+ let t = ZK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function LSe(e, t) {
+function zSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var RSe = {
+var BSe = {
assignColumnPrototype: (e, t) => {
- lq("coreColumnsFeature", e, t, {
+ cq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => kSe(e),
+ fn: (e) => jSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => ASe(e),
+ fn: (e) => MSe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59242,25 +59252,25 @@ var RSe = {
});
},
constructTableAPIs: (e) => {
- cq("coreColumnsFeature", e, {
+ sq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => jSe(e),
+ fn: () => NSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => MSe(e),
+ fn: () => PSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => NSe(e),
+ fn: () => FSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => PSe(e),
+ fn: () => ISe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => FSe(e),
+ fn: () => LSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59269,15 +59279,15 @@ var RSe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => ISe(e),
+ fn: () => RSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => LSe(e, t) }
+ table_getColumn: { fn: (t) => zSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function zSe(e) {
+function VSe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59285,38 +59295,38 @@ function zSe(e) {
}
return e._headerPrototype;
}
-function _q(e, t, n) {
- let r = zSe(e), i = Object.create(r);
+function gq(e, t, n) {
+ let r = VSe(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function vq(e, t = 1) {
+function _q(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- dq(i) && i.columns.length && (n = Math.max(n, vq(i.columns, t + 1)));
+ uq(i) && i.columns.length && (n = Math.max(n, _q(i.columns, t + 1)));
}
return n;
}
-function BSe(e, t) {
+function HSe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function VSe(e, t, n, r) {
+function USe(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 HSe(e, t) {
+function WSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function yq(e, t, n, r, i, a) {
+function vq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: BSe(r, t),
+ id: HSe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59324,10 +59334,10 @@ function yq(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
- let e = _q(n, u, {
- id: VSe(r, t, u.id, a.id),
+ let e = gq(n, u, {
+ id: USe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(HSe(s, u)) : void 0,
+ placeholderId: d ? String(WSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59336,18 +59346,18 @@ function yq(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && yq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && vq(s, t - 1, n, r, i, a);
}
-function bq(e) {
+function yq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!dq(n.column)) continue;
+ if (!uq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- bq(n.subHeaders);
+ yq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- dq(t.column) && (r += t.colSpan);
+ uq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59357,37 +59367,37 @@ function bq(e) {
} else n.rowSpan = 1;
}
}
-function USe(e, t, n, r) {
- let i = vq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = _q(n, t[e], {
+function GSe(e, t, n, r) {
+ let i = _q(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = gq(n, t[e], {
depth: i,
index: e
}));
- return yq(s, i - 1, n, r, a, o), a.reverse(), bq(a[0]?.headers ?? []), a;
+ return vq(s, i - 1, n, r, a, o), a.reverse(), yq(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function xq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) xq(e.subHeaders[n], t);
+function bq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) bq(e.subHeaders[n], t);
t.push(e);
}
-function WSe(e) {
+function KSe(e) {
let t = [];
- return xq(e, t), t;
+ return bq(e, t), t;
}
-function GSe(e) {
+function qSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function KSe(e) {
- return USe(e.getAllColumns(), pq(e, TSe(e), (e) => e.id), e);
+function JSe(e) {
+ return GSe(e.getAllColumns(), fq(e, DSe(e), (e) => e.id), e);
}
-function qSe(e) {
+function YSe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function JSe(e) {
+function XSe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59395,7 +59405,7 @@ function JSe(e) {
}
return n;
}
-function YSe(e) {
+function ZSe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59404,23 +59414,23 @@ function YSe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var XSe = {
+var QSe = {
assignHeaderPrototype: (e, t) => {
- lq("coreHeadersFeature", e, t, {
+ cq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => WSe(e),
+ fn: (e) => KSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => GSe(e),
+ fn: (e) => qSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- cq("coreHeadersFeature", e, {
+ sq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => KSe(e),
+ fn: () => JSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59431,22 +59441,22 @@ var XSe = {
]
},
table_getFooterGroups: {
- fn: () => qSe(e),
+ fn: () => YSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => JSe(e),
+ fn: () => XSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => YSe(e),
+ fn: () => ZSe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function ZSe(e) {
+function $Se(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59454,98 +59464,98 @@ function ZSe(e) {
}
return e._rowPrototype;
}
-var QSe = (e, t, n, r, i, a, o) => {
- let s = ZSe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = QK(), c._valuesCache = QK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var eCe = (e, t, n, r, i, a, o) => {
+ let s = $Se(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = ZK(), c._valuesCache = ZK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
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 $Se() {
- return (e) => oq({
+function tCe() {
+ return (e) => aq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => eCe(e, e.options.data),
- onAfterUpdate: aq(() => {
- ESe(e), hq(e), DSe(e), OSe(e);
+ fn: () => nCe(e, e.options.data),
+ onAfterUpdate: iq(() => {
+ OSe(e), mq(e), kSe(e), ASe(e);
})
});
}
-function Sq(e, t, n, r = 0, i) {
+function xq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = QSe(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 = Sq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = eCe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = xq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function eCe(e, t) {
+function nCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: ZK()
};
- return n.rows = Sq(e, n, t), n;
+ return n.rows = xq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function tCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? $Se()(e)), e._rowModels.coreRowModel();
+function rCe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? tCe()(e)), e._rowModels.coreRowModel();
}
-function nCe(e) {
+function iCe(e) {
return e.getCoreRowModel();
}
-function rCe(e) {
+function aCe(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function iCe(e) {
+function oCe(e) {
return e.getFilteredRowModel();
}
-function aCe(e) {
+function sCe(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function oCe(e) {
+function cCe(e) {
return e.getGroupedRowModel();
}
-function sCe(e) {
+function lCe(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function cCe(e) {
+function uCe(e) {
return e.getSortedRowModel();
}
-function lCe(e) {
+function dCe(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function uCe(e) {
+function fCe(e) {
return e.getExpandedRowModel();
}
-function dCe(e) {
+function pCe(e) {
return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
}
-function fCe(e) {
+function mCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var pCe = { constructTableAPIs: (e) => {
- cq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => tCe(e) },
- table_getPreFilteredRowModel: { fn: () => nCe(e) },
- table_getFilteredRowModel: { fn: () => rCe(e) },
- table_getPreGroupedRowModel: { fn: () => iCe(e) },
- table_getGroupedRowModel: { fn: () => aCe(e) },
- table_getPreSortedRowModel: { fn: () => oCe(e) },
- table_getSortedRowModel: { fn: () => sCe(e) },
- table_getPreExpandedRowModel: { fn: () => cCe(e) },
- table_getExpandedRowModel: { fn: () => lCe(e) },
- table_getPrePaginatedRowModel: { fn: () => uCe(e) },
- table_getPaginatedRowModel: { fn: () => dCe(e) },
- table_getRowModel: { fn: () => fCe(e) }
+var hCe = { constructTableAPIs: (e) => {
+ sq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => rCe(e) },
+ table_getPreFilteredRowModel: { fn: () => iCe(e) },
+ table_getFilteredRowModel: { fn: () => aCe(e) },
+ table_getPreGroupedRowModel: { fn: () => oCe(e) },
+ table_getGroupedRowModel: { fn: () => sCe(e) },
+ table_getPreSortedRowModel: { fn: () => cCe(e) },
+ table_getSortedRowModel: { fn: () => lCe(e) },
+ table_getPreExpandedRowModel: { fn: () => uCe(e) },
+ table_getExpandedRowModel: { fn: () => dCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => fCe(e) },
+ table_getPaginatedRowModel: { fn: () => pCe(e) },
+ table_getRowModel: { fn: () => mCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function mCe(e) {
+function gCe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59553,48 +59563,48 @@ function mCe(e) {
}
return e._cellPrototype;
}
-function hCe(e, t, n) {
- let r = mCe(n), i = Object.create(r);
+function _Ce(e, t, n) {
+ let r = gCe(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 gCe(e) {
+function vCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function _Ce(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? mq(e, t).rows : t.rows;
+function yCe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? pq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function vCe(e, t) {
- if ($K(e._valuesCache, t)) return e._valuesCache[t];
+function bCe(e, t) {
+ if (QK(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 yCe(e, t) {
- if ($K(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function xCe(e, t) {
+ if (QK(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 bCe(e, t) {
+function SCe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function xCe(e) {
- return _Se(e.subRows, (e) => e.subRows);
+function CCe(e) {
+ return ySe(e.subRows, (e) => e.subRows);
}
-function SCe(e) {
+function wCe(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 CCe(e) {
+function TCe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function wCe(e) {
+function ECe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59603,77 +59613,77 @@ function wCe(e) {
}
return t.reverse();
}
-function TCe(e) {
+function DCe(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 = hCe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = _Ce(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function ECe(e) {
- let t = QK(), n = e.getAllCells();
+function OCe(e) {
+ let t = ZK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function DCe(e, t, n, r) {
+function kCe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function OCe(e, t, n) {
+function ACe(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 kCe = {
+var jCe = {
assignRowPrototype: (e, t) => {
- lq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => gCe(e) },
+ cq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => vCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => ECe(e),
+ fn: (e) => OCe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => TCe(e),
+ fn: (e) => DCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => xCe(e),
+ fn: (e) => CCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => CCe(e) },
- row_getParentRows: { fn: (e) => wCe(e) },
- row_getUniqueValues: { fn: (e, t) => yCe(e, t) },
- row_getValue: { fn: (e, t) => vCe(e, t) },
- row_renderValue: { fn: (e, t) => bCe(e, t) }
+ row_getParentRow: { fn: (e) => TCe(e) },
+ row_getParentRows: { fn: (e) => ECe(e) },
+ row_getUniqueValues: { fn: (e, t) => xCe(e, t) },
+ row_getValue: { fn: (e, t) => bCe(e, t) },
+ row_renderValue: { fn: (e, t) => SCe(e, t) }
});
},
constructTableAPIs: (e) => {
- cq("coreRowsFeature", e, {
+ sq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => _Ce(e),
+ fn: () => yCe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => DCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => OCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => kCe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => ACe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => SCe(e),
+ fn: () => wCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function Cq(e, t, n = (e, t) => e === t) {
+function Sq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -59684,13 +59694,13 @@ function Cq(e, t, n = (e, t) => e === t) {
}
});
}
-function wq(e, t, n = (e, t) => e === t) {
+function Cq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- Cq(e, t, n), e._reactivity.commit?.();
+ Sq(e, t, n), e._reactivity.commit?.();
});
}
-function ACe(e) {
- let t = XK(e.initialState);
+function MCe(e) {
+ let t = YK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59701,7 +59711,7 @@ function ACe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function jCe(e, t) {
+function NCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59733,26 +59743,26 @@ function jCe(e, t) {
}
});
}
-function Tq(e, t, n) {
- let r = jCe(e, YK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && wq(e, r.state ?? null);
+function wq(e, t, n) {
+ let r = NCe(e, JK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Cq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var MCe = {
- coreCellsFeature: SSe,
- coreColumnsFeature: RSe,
- coreHeadersFeature: XSe,
- coreRowModelsFeature: pCe,
- coreRowsFeature: kCe,
+var PCe = {
+ coreCellsFeature: wSe,
+ coreColumnsFeature: BSe,
+ coreHeadersFeature: QSe,
+ coreRowModelsFeature: hCe,
+ coreRowsFeature: jCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- cq("coreTablesFeature", e, {
- table_reset: { fn: () => ACe(e) },
- table_setOptions: { fn: (t) => Tq(e, t) }
+ sq("coreTablesFeature", e, {
+ table_reset: { fn: () => MCe(e) },
+ table_setOptions: { fn: (t) => wq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Eq() {
+function Tq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59767,21 +59777,21 @@ function Eq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Dq(e) {
+function Eq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function NCe(e, t = {}) {
+function FCe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), XK(t);
+ }), YK(t);
}
-function PCe(e) {
+function ICe(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: {
- ...MCe,
+ ...PCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59819,7 +59829,7 @@ function PCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = NCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = FCe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59827,14 +59837,14 @@ function PCe(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && $K(i, n)) {
+ if (i && QK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Cq(v), v.store = uSe(t.createReadonlyAtom(() => {
+ Sq(v), v.store = fSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59842,7 +59852,7 @@ function PCe(e) {
}
return e;
}, {
- compare: GK,
+ compare: WK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59852,107 +59862,107 @@ function PCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function FCe() {
- return QK();
+function LCe() {
+ return ZK();
}
-function Oq(e, t) {
- Aq(e) && Mq(e.table, (n) => {
- let r = Object.assign(QK(), n), i = t ?? !uq(e, "getIsVisible", kq), a = e.getLeafColumns();
+function Dq(e, t) {
+ kq(e) && jq(e.table, (n) => {
+ let r = Object.assign(ZK(), n), i = t ?? !lq(e, "getIsVisible", Oq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Aq(t) && (r[t.id] = i);
+ kq(t) && (r[t.id] = i);
}
return r;
});
}
-function kq(e) {
+function Oq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => uq(e, "getIsVisible", kq)) : ($K(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => lq(e, "getIsVisible", Oq)) : (QK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Aq(e) {
+function kq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function ICe(e) {
+function RCe(e) {
return (t) => {
- Oq(e, t.target.checked);
+ Dq(e, t.target.checked);
};
}
-function LCe(e) {
+function zCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- uq(r.column, "getIsVisible", kq) && n.push(r);
+ lq(r.column, "getIsVisible", Oq) && n.push(r);
}
- return pq(e.table, n, (e) => e.column.id, () => uq(e, "getVisibleCellsByColumnId", jq));
+ return fq(e.table, n, (e) => e.column.id, () => lq(e, "getVisibleCellsByColumnId", Aq));
}
-function jq(e) {
- let t = QK(), n = e.getAllCells();
+function Aq(e) {
+ let t = ZK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- uq(r.column, "getIsVisible", kq) && (t[r.column.id] = r);
+ lq(r.column, "getIsVisible", Oq) && (t[r.column.id] = r);
}
return t;
}
-function RCe(e) {
- return e.getAllFlatColumns().filter((e) => uq(e, "getIsVisible", kq));
+function BCe(e) {
+ return e.getAllFlatColumns().filter((e) => lq(e, "getIsVisible", Oq));
}
-function zCe(e) {
- return e.getAllLeafColumns().filter((e) => uq(e, "getIsVisible", kq));
+function VCe(e) {
+ return e.getAllLeafColumns().filter((e) => lq(e, "getIsVisible", Oq));
}
-function Mq(e, t) {
- iq(e, "columnVisibility", t);
+function jq(e, t) {
+ rq(e, "columnVisibility", t);
}
-function BCe(e, t) {
- Mq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.columnVisibility ?? {})));
+function HCe(e, t) {
+ jq(e, t ? ZK() : Object.assign(ZK(), YK(e.initialState.columnVisibility ?? {})));
}
-function Nq(e, t) {
- t ??= !Pq(e);
- let n = QK(), r = e.getAllLeafColumns();
+function Mq(e, t) {
+ t ??= !Nq(e);
+ let n = ZK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Aq(i);
+ n[i.id] = t || !kq(i);
}
- Mq(e, n);
+ jq(e, n);
}
-function Pq(e) {
- return !e.getAllLeafColumns().some((e) => !uq(e, "getIsVisible", kq));
+function Nq(e) {
+ return !e.getAllLeafColumns().some((e) => !lq(e, "getIsVisible", Oq));
}
-function VCe(e) {
- return e.getAllLeafColumns().some((e) => uq(e, "getIsVisible", kq));
+function UCe(e) {
+ return e.getAllLeafColumns().some((e) => lq(e, "getIsVisible", Oq));
}
-function HCe(e) {
+function WCe(e) {
return (t) => {
- Nq(e, t.target.checked);
+ Mq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Fq = {
+var Pq = {
getInitialState: (e) => ({
- columnVisibility: FCe(),
+ columnVisibility: LCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: eq("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: $K("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- lq("columnVisibilityFeature", e, t, {
+ cq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => kq(e),
+ fn: (e) => Oq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Aq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => ICe(e) },
- column_toggleVisibility: { fn: (e, t) => Oq(e, t) }
+ column_getCanHide: { fn: (e) => kq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => RCe(e) },
+ column_toggleVisibility: { fn: (e, t) => Dq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- lq("columnVisibilityFeature", e, t, {
+ cq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => LCe(e),
+ fn: (e) => zCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59960,15 +59970,15 @@ var Fq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => jq(e),
+ fn: (e) => Aq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- cq("columnVisibilityFeature", e, {
+ sq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => RCe(e),
+ fn: () => BCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59978,7 +59988,7 @@ var Fq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => zCe(e),
+ fn: () => VCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59987,51 +59997,51 @@ var Fq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => Mq(e, t) },
- table_resetColumnVisibility: { fn: (t) => BCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => Nq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => Pq(e) },
- table_getIsSomeColumnsVisible: { fn: () => VCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => HCe(e) }
+ table_setColumnVisibility: { fn: (t) => jq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => HCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => Mq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => Nq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => UCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => WCe(e) }
});
}
-}, Iq = 0, Lq = 10;
-function Rq() {
+}, Fq = 0, Iq = 10;
+function Lq() {
return {
- pageIndex: Iq,
- pageSize: Lq
+ pageIndex: Fq,
+ pageSize: Iq
};
}
-function UCe(e) {
+function GCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Iq) === Iq) return;
- Vq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Fq) === Fq) return;
+ Bq(e, !0);
}
}
-function zq(e, t) {
- iq(e, "pagination", t);
+function Rq(e, t) {
+ rq(e, "pagination", t);
}
-function WCe(e, t) {
- zq(e, t ? Rq() : XK(e.initialState.pagination ?? Rq()));
+function KCe(e, t) {
+ Rq(e, t ? Lq() : YK(e.initialState.pagination ?? Lq()));
}
-function Bq(e, t) {
- zq(e, (n) => {
- let r = YK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function zq(e, t) {
+ Rq(e, (n) => {
+ let r = JK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function Vq(e, t) {
- Bq(e, t ? Iq : e.initialState.pagination?.pageIndex ?? Iq);
+function Bq(e, t) {
+ zq(e, t ? Fq : e.initialState.pagination?.pageIndex ?? Fq);
}
-function GCe(e, t) {
- Hq(e, t ? Lq : e.initialState.pagination?.pageSize ?? Lq);
+function qCe(e, t) {
+ Vq(e, t ? Iq : e.initialState.pagination?.pageSize ?? Iq);
}
-function Hq(e, t) {
- zq(e, (e) => {
- let n = Math.max(1, YK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function Vq(e, t) {
+ Rq(e, (e) => {
+ let n = Math.max(1, JK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -60039,231 +60049,231 @@ function Hq(e, t) {
};
});
}
-function KCe(e) {
- let t = Uq(e), n = [];
- return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
-}
-function qCe(e) {
- return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
-}
function JCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
- return n === -1 || n !== 0 && t < n - 1;
+ let t = Hq(e), n = [];
+ return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
function YCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
- return Number.isFinite(n) && n > 0 && t < n - 1;
+ return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
function XCe(e) {
- return Bq(e, (e) => e - 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Fq, n = Hq(e);
+ return n === -1 || n !== 0 && t < n - 1;
}
function ZCe(e) {
- return Bq(e, (e) => e + 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Fq, n = Hq(e);
+ return Number.isFinite(n) && n > 0 && t < n - 1;
}
function QCe(e) {
- return Bq(e, 0);
+ return zq(e, (e) => e - 1);
}
function $Ce(e) {
- let t = Uq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return Bq(e, t - 1);
+ return zq(e, (e) => e + 1);
}
-function Uq(e) {
+function ewe(e) {
+ return zq(e, 0);
+}
+function twe(e) {
+ let t = Hq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return zq(e, t - 1);
+}
+function Hq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Wq(e), r = e.atoms.pagination?.get()?.pageSize ?? Lq;
+ let n = Uq(e), r = e.atoms.pagination?.get()?.pageSize ?? Iq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Wq(e) {
+function Uq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Gq = {
+var Wq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Rq(),
+ ...Lq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: eq("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: $K("pagination", e) }),
constructTableAPIs: (e) => {
- cq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => UCe(e) },
- table_setPagination: { fn: (t) => zq(e, t) },
- table_resetPagination: { fn: (t) => WCe(e, t) },
- table_setPageIndex: { fn: (t) => Bq(e, t) },
- table_resetPageIndex: { fn: (t) => Vq(e, t) },
- table_setPageSize: { fn: (t) => Hq(e, t) },
- table_getPageCount: { fn: () => Uq(e) },
- table_resetPageSize: { fn: (t) => GCe(e, t) },
- table_getPageOptions: { fn: () => KCe(e) },
- table_getCanPreviousPage: { fn: () => qCe(e) },
- table_getCanNextPage: { fn: () => JCe(e) },
- table_getCanLastPage: { fn: () => YCe(e) },
- table_previousPage: { fn: () => XCe(e) },
- table_nextPage: { fn: () => ZCe(e) },
- table_firstPage: { fn: () => QCe(e) },
- table_lastPage: { fn: () => $Ce(e) },
- table_getRowCount: { fn: () => Wq(e) }
+ sq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => GCe(e) },
+ table_setPagination: { fn: (t) => Rq(e, t) },
+ table_resetPagination: { fn: (t) => KCe(e, t) },
+ table_setPageIndex: { fn: (t) => zq(e, t) },
+ table_resetPageIndex: { fn: (t) => Bq(e, t) },
+ table_setPageSize: { fn: (t) => Vq(e, t) },
+ table_getPageCount: { fn: () => Hq(e) },
+ table_resetPageSize: { fn: (t) => qCe(e, t) },
+ table_getPageOptions: { fn: () => JCe(e) },
+ table_getCanPreviousPage: { fn: () => YCe(e) },
+ table_getCanNextPage: { fn: () => XCe(e) },
+ table_getCanLastPage: { fn: () => ZCe(e) },
+ table_previousPage: { fn: () => QCe(e) },
+ table_nextPage: { fn: () => $Ce(e) },
+ table_firstPage: { fn: () => ewe(e) },
+ table_lastPage: { fn: () => twe(e) },
+ table_getRowCount: { fn: () => Uq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function ewe() {
- return QK();
+function nwe() {
+ return ZK();
}
-function Kq(e, t) {
+function Gq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function twe(e, t) {
- e._lastSelectedRowId = null, Kq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.rowSelection ?? {})));
+function rwe(e, t) {
+ e._lastSelectedRowId = null, Gq(e, t ? ZK() : Object.assign(ZK(), YK(e.initialState.rowSelection ?? {})));
}
-function qq(e, t, n) {
- e._lastSelectedRowId = null, Kq(e, (r) => {
- if (t = t === void 0 ? !uq(e, "getIsAllRowsSelected", Xq) : t, n?.deselectAll && !t) return QK();
- let i = Object.assign(QK(), r), a = e.getPreGroupedRowModel().flatRows;
+function Kq(e, t, n) {
+ e._lastSelectedRowId = null, Gq(e, (r) => {
+ if (t = t === void 0 ? !lq(e, "getIsAllRowsSelected", Yq) : t, n?.deselectAll && !t) return ZK();
+ let i = Object.assign(ZK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- oJ(t, e) && (i[t.id] = !0);
+ aJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- nJ(e) && delete i[e.id];
+ tJ(e) && delete i[e.id];
});
return i;
});
}
-function Jq(e, t, n) {
- e._lastSelectedRowId = null, Kq(e, (r) => {
- let i = t === void 0 ? !uq(e, "getIsAllPageRowsSelected", Zq) : t;
- if (n?.deselectAll && !i) return QK();
- let a = Object.assign(QK(), r);
+function qq(e, t, n) {
+ e._lastSelectedRowId = null, Gq(e, (r) => {
+ let i = t === void 0 ? !lq(e, "getIsAllPageRowsSelected", Xq) : t;
+ if (n?.deselectAll && !i) return ZK();
+ let a = Object.assign(ZK(), r);
return e.getRowModel().rows.forEach((t) => {
- aJ(a, t.id, i, !0, e, !0);
+ iJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function nwe(e) {
+function iwe(e) {
return e.getCoreRowModel();
}
-function rwe(e) {
+function awe(e) {
let t = e.getCoreRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: ZK()
};
}
-function iwe(e) {
+function owe(e) {
let t = e.getFilteredRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: ZK()
};
}
-function awe(e) {
+function swe(e) {
let t = e.getSortedRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: ZK()
};
}
-function Yq(e) {
+function Jq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function Xq(e) {
+function Yq(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !uJ(t, n) && oJ(t, e)) && (r = !1);
+ t.some((t) => !lJ(t, n) && aJ(t, e)) && (r = !1);
}
return r;
}
-function Zq(e) {
+function Xq(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (uJ(a, n)) !i && oJ(a, r) && (i = !0);
- else if (oJ(a, r)) return !1;
+ if (lJ(a, n)) !i && aJ(a, r) && (i = !0);
+ else if (aJ(a, r)) return !1;
}
return i;
}
-function Qq(e) {
- return uq(e, "getSelectedRowIds", Yq).length > 0;
+function Zq(e) {
+ return lq(e, "getSelectedRowIds", Jq).length > 0;
}
-function owe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => nJ(e)).some((e) => eJ(e) || uq(e, "getIsSomeSelected", tJ));
+function cwe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => tJ(e)).some((e) => $q(e) || lq(e, "getIsSomeSelected", eJ));
}
-function swe(e) {
+function lwe(e) {
return (t) => {
- qq(e, t.target.checked);
+ Kq(e, t.target.checked);
};
}
-function cwe(e) {
+function uwe(e) {
return (t) => {
- Jq(e, t.target.checked);
+ qq(e, t.target.checked);
};
}
-function $q(e, t, n) {
- let r = eJ(e);
- Kq(e.table, (i) => {
+function Qq(e, t, n) {
+ let r = $q(e);
+ Gq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(QK(), i);
- return aJ(a, e.id, t, (n?.selectChildren ?? !0) && iJ(e), e.table), !t && n?.deselectParents && sJ(a, e), a;
+ let a = Object.assign(ZK(), i);
+ return iJ(a, e.id, t, (n?.selectChildren ?? !0) && rJ(e), e.table), !t && n?.deselectParents && oJ(a, e), a;
});
}
-function eJ(e) {
- return uJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function $q(e) {
+ return lJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function tJ(e) {
- return dJ(e) === "some";
+function eJ(e) {
+ return uJ(e) === "some";
}
-function lwe(e) {
- return dJ(e) === "all";
+function dwe(e) {
+ return uJ(e) === "all";
}
-function nJ(e) {
+function tJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function rJ(e) {
+function nJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function iJ(e) {
+function rJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function uwe(e, t) {
- let n = nJ(e);
+function fwe(e, t) {
+ let n = tJ(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 && iJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && dwe(e, s, o, t) || $q(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && rJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && pwe(e, s, o, t) || Qq(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function dwe(e, t, n, r) {
+function pwe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !iJ(s) || !iJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !rJ(s) || !rJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return Kq(a, (e) => {
- let t = Object.assign(QK(), e);
+ return Gq(a, (e) => {
+ let t = Object.assign(ZK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- nJ(s) && iJ(s) && (aJ(t, s.id, n, i, a), !n && r?.deselectParents && sJ(t, s));
+ tJ(s) && rJ(s) && (iJ(t, s.id, n, i, a), !n && r?.deselectParents && oJ(t, s));
}
return t;
}), !0;
}
-function aJ(e, t, n, r, i, a) {
+function iJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (iJ(o) || Object.keys(e).forEach((t) => delete e[t]), nJ(o) && (e[t] = !0)) : (!a || nJ(o)) && delete e[t], r && o.subRows.length && rJ(o) && o.subRows.forEach((t) => aJ(e, t.id, n, r, i, a));
+ n ? (rJ(o) || Object.keys(e).forEach((t) => delete e[t]), tJ(o) && (e[t] = !0)) : (!a || tJ(o)) && delete e[t], r && o.subRows.length && nJ(o) && o.subRows.forEach((t) => iJ(e, t.id, n, r, i, a));
}
-function oJ(e, t) {
- if (!nJ(e)) return !1;
+function aJ(e, t) {
+ if (!tJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60279,7 +60289,7 @@ function oJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!rJ(r)) {
+ if (!nJ(r)) {
s = !1;
break;
}
@@ -60287,50 +60297,50 @@ function oJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function sJ(e, t) {
+function oJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function cJ(e, t, n, r) {
+function sJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = uJ(o, t);
+ let o = e[a], s = lJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = cJ(o.subRows, t, n, r);
+ let e = sJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- ZK(t, o), t.subRows = e, i.push(t);
+ XK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function lJ(e, t) {
- let n = [], r = QK(), i = t.atoms.rowSelection?.get() ?? {};
+function cJ(e, t) {
+ let n = [], r = ZK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: cJ(e.rows, i, n, r),
+ rows: sJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function uJ(e, t) {
- return !!($K(t, e.id) && t[e.id]);
+function lJ(e, t) {
+ return !!(QK(t, e.id) && t[e.id]);
}
-function dJ(e) {
+function uJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (nJ(o) && (i = !0, uJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = dJ(o);
+ if (tJ(o) && (i = !0, lJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = uJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var fJ = {
+var dJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60338,11 +60348,11 @@ var fJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: ewe(),
+ rowSelection: nwe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: eq("rowSelection", e),
+ onRowSelectionChange: $K("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60353,11 +60363,11 @@ var fJ = {
}
}),
assignRowPrototype: (e, t) => {
- lq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => $q(e, t, n) },
- row_getIsSelected: { fn: (e) => eJ(e) },
+ cq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => Qq(e, t, n) },
+ row_getIsSelected: { fn: (e) => $q(e) },
row_getIsSomeSelected: {
- fn: (e) => tJ(e),
+ fn: (e) => eJ(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60365,44 +60375,44 @@ var fJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => lwe(e),
+ fn: (e) => dwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => nJ(e) },
- row_getCanSelectSubRows: { fn: (e) => rJ(e) },
- row_getCanMultiSelect: { fn: (e) => iJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => uwe(e, t) }
+ row_getCanSelect: { fn: (e) => tJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => nJ(e) },
+ row_getCanMultiSelect: { fn: (e) => rJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => fwe(e, t) }
});
},
constructTableAPIs: (e) => {
- cq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Kq(e, t) },
- table_resetRowSelection: { fn: (t) => twe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => qq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => Jq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => nwe(e) },
+ sq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Gq(e, t) },
+ table_resetRowSelection: { fn: (t) => rwe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => Kq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => qq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => iwe(e) },
table_getSelectedRowModel: {
- fn: () => rwe(e),
+ fn: () => awe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => iwe(e),
+ fn: () => owe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => awe(e),
+ fn: () => swe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => Yq(e),
+ fn: () => Jq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => Xq(e),
+ fn: () => Yq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60411,7 +60421,7 @@ var fJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Zq(e),
+ fn: () => Xq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60420,48 +60430,48 @@ var fJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Qq(e),
+ fn: () => Zq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => owe(e),
+ fn: () => cwe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => swe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => cwe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => lwe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => uwe(e) }
});
}
-}, fwe = /([0-9]+)/gm;
+}, mwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function pwe(e) {
+function hwe(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 pJ = /* @__PURE__ */ pwe({ sort: (e, t) => mwe(e, t) });
-function mwe(e, t) {
+var fJ = /* @__PURE__ */ hwe({ sort: (e, t) => gwe(e, t) });
+function gwe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function hwe() {
+function _we() {
return [];
}
-function mJ(e, t) {
- iq(e, "sorting", t);
+function pJ(e, t) {
+ rq(e, "sorting", t);
}
-function hJ(e, t) {
- mJ(e, t ? [] : XK(e.initialState.sorting ?? []));
+function mJ(e, t) {
+ pJ(e, t ? [] : YK(e.initialState.sorting ?? []));
}
-function gwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && hJ(e);
+function vwe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && mJ(e);
}
-function gJ(e) {
+function hJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -60469,7 +60479,7 @@ function gJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(fwe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(mwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60478,9 +60488,9 @@ function gJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return pJ;
+ return fJ;
}
-function _J(e) {
+function gJ(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -60488,14 +60498,14 @@ function _J(e) {
}
return "desc";
}
-function vJ(e) {
+function _J(e) {
let t = e.table._rowModelFns.sortFns;
- return gSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? gJ(e) : t?.[e.columnDef.sortFn] ?? pJ;
+ return vSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? hJ(e) : t?.[e.columnDef.sortFn] ?? fJ;
}
-function yJ(e, t, n) {
- let r = xJ(e, n && CJ(e)), i = t !== void 0;
- mJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && CJ(e) && n);
+function vJ(e, t, n) {
+ let r = bJ(e, n && SJ(e)), i = t !== void 0;
+ pJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && SJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60511,40 +60521,40 @@ function yJ(e, t, n) {
}], c;
});
}
-function bJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? _J(e) === "desc" ? "desc" : "asc";
+function yJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? gJ(e) === "desc" ? "desc" : "asc";
}
-function xJ(e, t) {
- let n = bJ(e), r = wJ(e);
+function bJ(e, t) {
+ let n = yJ(e), r = CJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function SJ(e) {
+function xJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function CJ(e) {
+function SJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function wJ(e) {
+function CJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function _we(e) {
+function ywe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function vwe(e) {
- mJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function bwe(e) {
+ pJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function ywe(e) {
- let t = SJ(e);
+function xwe(e) {
+ let t = xJ(e);
return (n) => {
- t && yJ(e, void 0, CJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && vJ(e, void 0, SJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var TJ = {
+var wJ = {
getInitialState(e) {
return {
- sorting: hwe(),
+ sorting: _we(),
...e
};
},
@@ -60557,58 +60567,58 @@ var TJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: eq("sorting", e),
+ onSortingChange: $K("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- lq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => gJ(e) },
- column_getAutoSortDir: { fn: (e) => _J(e) },
- column_getSortFn: { fn: (e) => vJ(e) },
- column_toggleSorting: { fn: (e, t, n) => yJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => bJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => xJ(e, t) },
- column_getCanSort: { fn: (e) => SJ(e) },
- column_getCanMultiSort: { fn: (e) => CJ(e) },
- column_getIsSorted: { fn: (e) => wJ(e) },
- column_getSortIndex: { fn: (e) => _we(e) },
- column_clearSorting: { fn: (e) => vwe(e) },
- column_getToggleSortingHandler: { fn: (e) => ywe(e) }
+ cq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => hJ(e) },
+ column_getAutoSortDir: { fn: (e) => gJ(e) },
+ column_getSortFn: { fn: (e) => _J(e) },
+ column_toggleSorting: { fn: (e, t, n) => vJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => yJ(e) },
+ column_getNextSortingOrder: { fn: (e, t) => bJ(e, t) },
+ column_getCanSort: { fn: (e) => xJ(e) },
+ column_getCanMultiSort: { fn: (e) => SJ(e) },
+ column_getIsSorted: { fn: (e) => CJ(e) },
+ column_getSortIndex: { fn: (e) => ywe(e) },
+ column_clearSorting: { fn: (e) => bwe(e) },
+ column_getToggleSortingHandler: { fn: (e) => xwe(e) }
});
},
constructTableAPIs(e) {
- cq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => gwe(e) },
- table_setSorting: { fn: (t) => mJ(e, t) },
- table_resetSorting: { fn: (t) => hJ(e, t) }
+ sq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => vwe(e) },
+ table_setSorting: { fn: (t) => pJ(e, t) },
+ table_resetSorting: { fn: (t) => mJ(e, t) }
});
}
-}, bwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function EJ(e, t) {
+}, Swe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function TJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = PCe({
+ let t = ICe({
...e,
features: {
- coreReactivityFeature: pSe(),
+ coreReactivityFeature: hSe(),
...e.features
}
});
- return t.Subscribe = ((e) => lSe({
+ return t.Subscribe = ((e) => dSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = Qxe, {
+ })), t.FlexRender = eSe, {
table: t,
- rootSource: fSe(t.store, GK)
+ rootSource: mSe(t.store, WK)
};
}), i = n;
- Tq(i, (t) => ({
+ wq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = JK(r, t, { compare: GK });
- return bwe(() => {
- r.markCommitted(o), wq(i, a ?? null, GK);
+ let a = i.options.state, o = r.get(), s = qK(r, t, { compare: WK });
+ return Swe(() => {
+ r.markCommitted(o), Cq(i, a ?? null, WK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60620,10 +60630,10 @@ function EJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function DJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function EJ({ 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)(vhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(yhe, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60631,7 +60641,7 @@ function DJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility.v1", xwe = {
+var DJ = "peach.catalog-column-widths.v1", OJ = "peach.catalog-column-visibility.v1", Cwe = {
select: {
width: 48,
min: 48,
@@ -60707,14 +60717,14 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, Swe = {
+}, wwe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, Cwe = {
+}, Twe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60730,7 +60740,7 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, AJ = [
+}, kJ = [
"select",
"name",
"people",
@@ -60748,13 +60758,13 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: Cwe[e],
- ...xwe[e],
+ label: Twe[e],
+ ...Cwe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Swe[e] !== !1
+ visible: wwe[e] !== !1
}));
-function jJ(e) {
+function AJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60762,11 +60772,11 @@ function jJ(e) {
return {};
}
}
-function wwe() {
- return MJ(AJ, OJ, kJ);
+function Ewe() {
+ return jJ(kJ, DJ, OJ);
}
-function MJ(e, t, n) {
- let r = jJ(t), i = jJ(n);
+function jJ(e, t, n) {
+ let r = AJ(t), i = AJ(n);
return e.filter((e) => e.id !== "select" && (e.required || (typeof i[e.id] == "boolean" ? i[e.id] === !0 : e.visible))).map((e) => {
let t = r[e.id], n = typeof t == "number" && Number.isFinite(t) && !(e.flex && t === e.width);
return {
@@ -60778,43 +60788,43 @@ function MJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var NJ = "peach.catalog.completion-row";
-function PJ() {
+var MJ = "peach.catalog.completion-row";
+function NJ() {
try {
- return localStorage.getItem(NJ) === "1";
+ return localStorage.getItem(MJ) === "1";
} catch {
return !1;
}
}
-function Twe(e) {
+function Dwe(e) {
try {
- e ? localStorage.setItem(NJ, "1") : localStorage.removeItem(NJ);
+ e ? localStorage.setItem(MJ, "1") : localStorage.removeItem(MJ);
} catch {}
}
-var Ewe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Owe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function FJ(e) {
+function PJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : e === "people" || e === "library" || e === "studio" ? `<span data-list-skeleton-mark="${e}"><b class="skeleton-sheen"></b><i class="skeleton-sheen"></i></span>` : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function Dwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + IJ(wwe(), PJ() ? Ewe : "") + "</div>";
+function kwe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + FJ(Ewe(), NJ() ? Owe : "") + "</div>";
}
-function IJ(e, t = "") {
- let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${FJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+function FJ(e, t = "") {
+ let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${PJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
return "<div data-list-skeleton aria-hidden=\"true\"><div data-list-skeleton-tools><i class=\"skeleton-sheen\"></i></div>" + t + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div>`;
}
-function LJ(e, t) {
- return iG() === "list" ? Dwe(e) : ac(e, {
+function IJ(e, t) {
+ return rG() === "list" ? kwe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Owe = () => {
+var Awe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function LJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -60828,11 +60838,11 @@ function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && rK(e, r) && n(r.dataset.key);
+ r && nK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(ghe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(_he, {
className: "relative min-w-0",
- onResizeStart: Owe,
+ onResizeStart: Awe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60842,8 +60852,8 @@ function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function zJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(HU, {
+function RJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(VU, {
...r,
size: n,
renderValue: t
@@ -60853,14 +60863,14 @@ function zJ({ 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)(HU, {
+ return /* @__PURE__ */ (0, I.jsx)(VU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function BJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function zJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60899,11 +60909,11 @@ function BJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function VJ({ label: e, options: t, sorting: n, onChange: r }) {
+function BJ({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(RJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60913,10 +60923,10 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60924,7 +60934,7 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: cG,
+ leadingIcon: sG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60936,7 +60946,7 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function VJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60951,7 +60961,7 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60961,11 +60971,11 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(BJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(zJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -60978,7 +60988,7 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function UJ(e) {
+function HJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60986,17 +60996,17 @@ function UJ(e) {
return {};
}
}
-function WJ(e, t) {
+function UJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function kwe(e, t) {
+function jwe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, F.useState)(() => {
- let r = UJ(e);
+ let r = HJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -61013,7 +61023,7 @@ function kwe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), WJ(e, a);
+ i(a), UJ(e, a);
},
reset: () => {
i(n({}));
@@ -61023,26 +61033,26 @@ function kwe(e, t) {
}
};
}
-function Awe(e, t, n, r = {}) {
+function Mwe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i(UJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(HJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), WJ(e, n);
+ o(n), UJ(e, n);
}
};
}
-function GJ(e, t, n) {
+function WJ(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = kwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Awe(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 = jwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Mwe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -61061,15 +61071,15 @@ function GJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function jwe() {
- return GJ("catalog", AJ, {
- widths: OJ,
- visibility: kJ
+function Nwe() {
+ return WJ("catalog", kJ, {
+ widths: DJ,
+ visibility: OJ
});
}
// src/react/components/rating-stars.tsx
-var KJ = fV("star");
-function qJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var GJ = dV("star");
+function KJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-stars": "",
@@ -61092,25 +61102,25 @@ function qJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(KJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(GJ, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(KJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(KJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(GJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Mwe({ item: e, actions: t }) {
- let { rating: n } = e, r = mH(), i = (0, F.useRef)(0), a = pP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- uP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Pwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = pH(), i = (0, F.useRef)(0), a = hP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ fP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61122,11 +61132,11 @@ function Mwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(KJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -61139,7 +61149,7 @@ function Mwe({ item: e, actions: t }) {
}) : null]
});
}
-function JJ(e) {
+function qJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61154,7 +61164,7 @@ function JJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function JJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61166,10 +61176,10 @@ function YJ({ 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)(pH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(fH, {
size: "small",
href: e.href,
- trailingIcon: vB,
+ trailingIcon: _B,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61178,15 +61188,15 @@ function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(YJ, {
+function YJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(JJ, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(RV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(LV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61206,14 +61216,14 @@ function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(uz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(jV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(_H, {
+ className: q(AV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(gH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61222,13 +61232,13 @@ function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function ZJ({ preferences: e, label: t = "表格" }) {
+function XJ({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(XJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(YJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61256,39 +61266,39 @@ function ZJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function QJ({ preferences: e, id: t }) {
+function ZJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Dhe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Ohe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function $J(e, t) {
+function QJ(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function eY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = $J(e, n);
- return /* @__PURE__ */ (0, I.jsx)(RV, {
+function $J({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = QJ(e, n);
+ return /* @__PURE__ */ (0, I.jsx)(LV, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !$J(e, n).all;
+ let t = !QJ(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Nwe = Dq({
- rowSortingFeature: TJ,
- rowSelectionFeature: fJ,
- rowPaginationFeature: Gq,
- columnVisibilityFeature: Fq
-}), tY = AJ.map((e) => e.id), Pwe = [
+var Fwe = Eq({
+ rowSortingFeature: wJ,
+ rowSelectionFeature: dJ,
+ rowPaginationFeature: Wq,
+ columnVisibilityFeature: Pq
+}), eY = kJ.map((e) => e.id), Iwe = [
{
id: "name",
label: "名称"
@@ -61325,12 +61335,12 @@ var Nwe = Dq({
id: "played",
label: "观看时间"
}
-], nY = /* @__PURE__ */ new Map();
-function Fwe(e) {
- let t = jwe(), n = nK(), r = oP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], tY = /* @__PURE__ */ new Map();
+function Lwe(e) {
+ let t = Nwe(), n = tK(), r = cP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
- }), [a, o] = (0, F.useState)(() => nY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => tY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61338,7 +61348,7 @@ function Fwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- nY.set(i, a);
+ tY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61369,9 +61379,9 @@ function Fwe(e) {
libraryEmpty: (await B("/api/items?limit=1&thumb=0", t)).total === 0
};
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : jK(f, e.layout.javImage), [h] = (0, F.useState)(PJ);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : AK(f, e.layout.javImage), [h] = (0, F.useState)(NJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && Twe(m.length > 0);
+ d.data && !d.isPlaceholderData && Dwe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61403,19 +61413,19 @@ function Fwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = EJ({
- features: Nwe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = TJ({
+ features: Fwe,
columns: (0, F.useMemo)(() => {
- let t = Eq();
+ let t = Tq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(eY, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)($J, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(RV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(LV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61427,7 +61437,7 @@ function Fwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Iwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61436,12 +61446,12 @@ function Fwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Lwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(zwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Bwe, {
item: t.original,
props: e
})
@@ -61497,7 +61507,7 @@ function Fwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Mwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Pwe, {
item: t.original,
actions: e.actions
})
@@ -61518,13 +61528,13 @@ function Fwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => JJ(e.original.last_played)
+ cell: ({ row: e }) => qJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => JJ(e.original.first_seen)
+ cell: ({ row: e }) => qJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61532,7 +61542,7 @@ function Fwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => tY.indexOf(e.id) - tY.indexOf(t.id));
+ ]).sort((e, t) => eY.indexOf(e.id) - eY.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61595,9 +61605,9 @@ function Fwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(VJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "作品列表",
- options: Pwe,
+ options: Iwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61607,21 +61617,21 @@ function Fwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(MK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(jK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(RJ, {
+ /* @__PURE__ */ (0, I.jsx)(LJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(DJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(EJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61632,48 +61642,48 @@ function Fwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)($z, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(eB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(Qz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)($z, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [NK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [MK(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)(OV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(DV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(QJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(ZJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(eB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)($z, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(rB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(nB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(aB, {
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: FJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(sB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: PJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(aB, {
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: NK(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: MK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sB, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(HJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(VJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61684,9 +61694,9 @@ function Fwe(e) {
]
});
}
-function Iwe({ item: e, props: t, disabled: n }) {
+function Rwe({ item: e, props: t, disabled: n }) {
let r = To(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- rL();
+ aL();
let l = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, u = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), d = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61706,7 +61716,7 @@ function Iwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(GU, {
artwork: r,
relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61758,17 +61768,17 @@ function Iwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function Lwe({ item: e }) {
- let t = nK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function zwe({ item: e }) {
+ let t = tK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
return n?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${n.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(RH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Rwe({ item: e, props: t }) {
- rL();
- let { avatar: n, who: r } = uK(e);
+function Bwe({ item: e, props: t }) {
+ aL();
+ let { avatar: n, who: r } = lK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61780,22 +61790,22 @@ function Rwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function rY(e) {
- let t = aG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Bwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Fwe, { ...e }, n);
+function nY(e) {
+ let t = iG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Hwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Lwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Vwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(Uwe, { ...e }, r);
}
-function zwe({ name: e }) {
+function Vwe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function iY({ children: e, selectMode: t }) {
+function rY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61811,8 +61821,8 @@ function iY({ children: e, selectMode: t }) {
children: e
});
}
-function Bwe(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)(fK, {
+function Hwe(e) {
+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(dK, {
item: i,
variant: r,
layout: e.layout,
@@ -61826,13 +61836,13 @@ function Bwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(iY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(rY, {
selectMode: e.selectMode,
children: i
});
}
-function Vwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Gue(e) : Wue(e), [s] = (0, F.useState)(() => e.wall ? sP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? sP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function Uwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Uue(e) : Hue(e), [s] = (0, F.useState)(() => e.wall ? lP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? lP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61858,7 +61868,7 @@ function Vwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => que(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Gue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61868,7 +61878,7 @@ function Vwe(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 || rbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Qye(e.item) ? [e.item] : []), y = a ? [] : jK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Hwe(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 || abe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && ebe(e.item) ? [e.item] : []), y = a ? [] : AK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Wwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61896,12 +61906,12 @@ function Vwe(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)(Wwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Kwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(fK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(dK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61913,8 +61923,8 @@ function Vwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Uxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Gxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61922,7 +61932,7 @@ function Vwe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? xn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? Kxe({
+ emptyHtml: u.data && !v.length ? Jxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61937,7 +61947,7 @@ function Vwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(LG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61954,12 +61964,12 @@ function Vwe(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: Xue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Uwe, {
+ children: Jue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Gwe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(iY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61969,14 +61979,14 @@ function Vwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(MK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(LG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function aY({ entity: e, load: t, enabled: n, children: r }) {
+function iY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -62018,7 +62028,7 @@ function aY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: IG });
+ }, { rootMargin: FG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62041,18 +62051,18 @@ function aY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Hs(Vs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Hwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", oP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Wwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", cP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && cP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && uP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62078,7 +62088,7 @@ function Hwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Yue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${que(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62092,9 +62102,9 @@ function Hwe(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 = Jue(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 = Kue(n.length - t, h, l);
if (!g.length) return;
- let _ = cP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = uP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -62111,7 +62121,7 @@ function Hwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Uwe({ cut: e, props: t, onOpen: n }) {
+function Gwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62127,12 +62137,12 @@ function Uwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(zwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Vwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(fK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(dK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62147,17 +62157,17 @@ function Uwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function oY(e, t, n) {
+function aY(e, t, n) {
return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Kwe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => lP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), oY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = oY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(gK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => dP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), aY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = aY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(hK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62167,12 +62177,12 @@ function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : oY(e, {
+ artworkIdentity: c === "small" ? l.html : aY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => El(e, c),
- ratio: lK(e, "grid", t),
+ ratio: cK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62183,37 +62193,37 @@ function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function sY(e) {
+async function oY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var Gwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Kwe = "/api/duplicates?limit=120", cY = ["duplicates"], lY = "/api/batch", uY = (e) => B(Kwe, e), qwe = /[\s\-_.()[\]【】/\\]/;
-function Jwe(e) {
+var qwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Jwe = "/api/duplicates?limit=120", sY = ["duplicates"], cY = "/api/batch", lY = (e) => B(Jwe, e), Ywe = /[\s\-_.()[\]【】/\\]/;
+function Xwe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !qwe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Ywe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Ywe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Xwe(e) {
+var Zwe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Qwe(e) {
await Promise.all([H.fetchQuery({
- queryKey: cY,
- queryFn: () => uY(e)
- }), sY(e)]);
+ queryKey: sY,
+ queryFn: () => lY(e)
+ }), oY(e)]);
}
-var Zwe = {
+var $we = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Qwe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), dY = (e, t) => Qwe(e, t).filter((t) => e.some((e) => e.location !== t)), $we = (e, t) => t.filter((t) => e.some((e) => dY(e.files, [t]).length));
-function eTe(e, t) {
+}, eTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), uY = (e, t) => eTe(e, t).filter((t) => e.some((e) => e.location !== t)), tTe = (e, t) => t.filter((t) => e.some((e) => uY(e.files, [t]).length));
+function nTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62232,19 +62242,19 @@ function eTe(e, t) {
}
return n;
}
-function tTe(e, t) {
+function rTe(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 nTe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(lY, {
+async function iTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(cY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var fY = "/api/media-repair", pY = ["media-repair"], mY = ["media-repair", "libraries"], rTe = {
+var dY = "/api/media-repair", fY = ["media-repair"], pY = ["media-repair", "libraries"], aTe = {
status: "idle",
library: "",
stage: "",
@@ -62256,39 +62266,39 @@ var fY = "/api/media-repair", pY = ["media-repair"], mY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, hY = (e) => B(fY, e), gY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function iTe(e) {
+}, mY = (e) => B(dY, e), hY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function oTe(e) {
await Promise.all([H.fetchQuery({
+ queryKey: fY,
+ queryFn: () => mY(e)
+ }), H.fetchQuery({
queryKey: pY,
queryFn: () => hY(e)
- }), H.fetchQuery({
- queryKey: mY,
- queryFn: () => gY(e)
})]);
}
-var _Y = (e) => Number(e).toLocaleString();
-function aTe(e) {
+var gY = (e) => Number(e).toLocaleString();
+function sTe(e) {
if (e.status === "running") {
- let t = e.total ? `${_Y(Math.min(e.checked || 0, e.total))} / ${_Y(e.total)}` : "准备中";
+ let t = e.total ? `${gY(Math.min(e.checked || 0, e.total))} / ${gY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${_Y(e.repaired)} 部,${_Y(e.failed)} 部修不了` : `修好 ${_Y(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${gY(e.repaired)} 部,${gY(e.failed)} 部修不了` : `修好 ${gY(e.repaired)} 部` : "";
}
-var oTe = (e) => `${_Y(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, sTe = "/api/quality-goals?limit=200", vY = ["quality-goals"], yY = (e) => B(sTe, e);
-async function cTe(e) {
+var cTe = (e) => `${gY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, lTe = "/api/quality-goals?limit=200", _Y = ["quality-goals"], vY = (e) => B(lTe, e);
+async function uTe(e) {
await H.fetchQuery({
- queryKey: vY,
- queryFn: () => yY(e)
+ queryKey: _Y,
+ queryFn: () => vY(e)
});
}
-var lTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var dTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function bY(e, t, n, r, i, a = i || !e.has(r)) {
+function yY(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 uTe = "/api/review", dTe = "/api/review/decision", fTe = "/api/review/genre", xY = ["review"], SY = {
+var fTe = "/api/review", pTe = "/api/review/decision", mTe = "/api/review/genre", bY = ["review"], xY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62298,40 +62308,40 @@ var uTe = "/api/review", dTe = "/api/review/decision", fTe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, pTe = Object.keys(SY), mTe = "metadata_fields", CY = (e) => typeof e == "string" && Object.hasOwn(SY, e), hTe = {
+}, hTe = Object.keys(xY), gTe = "metadata_fields", SY = (e) => typeof e == "string" && Object.hasOwn(xY, e), _Te = {
creator_tags: "creator",
western_identity: "creator"
-}, wY = [
+}, CY = [
"pending",
"later",
"ignored"
-], TY = {
+], wY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, gTe = {
+}, vTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, EY = (e) => e === "later" || e === "ignored" ? e : "pending", DY = (e, t) => t === "pending" ? {
+}, TY = (e) => e === "later" || e === "ignored" ? e : "pending", EY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function _Te(e, t) {
+function yTe(e, t) {
return {
...e,
- ...t(DY(e, "pending")),
+ ...t(EY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function vTe(e, t) {
+function bTe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function OY(e, t) {
+function DY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62348,10 +62358,10 @@ function OY(e, t) {
}
return [...n.values()];
}
-function yTe(e, t, n) {
- return n && OY(e, t).find((e) => e.key === n)?.rows || e;
+function xTe(e, t, n) {
+ return n && DY(e, t).find((e) => e.key === n)?.rows || e;
}
-function bTe(e, t) {
+function STe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62359,32 +62369,32 @@ function bTe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function xTe(e) {
+function CTe(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 STe(e, t, n, r, i, a) {
- return bY(e, t, n, r, i, a);
+function wTe(e, t, n, r, i, a) {
+ return yY(e, t, n, r, i, a);
}
-function CTe(e, t) {
+function TTe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function kY(e, t) {
+function OY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var AY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function wTe(e, t) {
- let n = kY(e, t), r = AY(e, t);
+var kY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function ETe(e, t) {
+ let n = OY(e, t), r = kY(e, t);
return r ? `${n} · ${r}` : n;
}
-var TTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", ETe = (e) => String(e.tags || "").split("|").filter(Boolean), DTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function OTe(e) {
+var DTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", OTe = (e) => String(e.tags || "").split("|").filter(Boolean), kTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function ATe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function kTe(e, t, n, r) {
+function jTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62400,22 +62410,22 @@ function kTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var ATe = (e) => ({
+var MTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function jY(e) {
- let t = await B(uTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${TY[e]}状态未取得,请刷新或更新写入端`);
+async function AY(e) {
+ let t = await B(fTe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${wY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function jTe(e) {
- let t = await V(dTe, e);
+async function NTe(e) {
+ let t = await V(pTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(xY, (t) => t && _Te(t, (t) => ({
+ H.setQueryData(bY, (t) => t && yTe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62431,33 +62441,33 @@ async function jTe(e) {
}
return t;
}
-function MTe(e, t) {
- let n = H.getQueryData(xY);
- return n && wY.flatMap((t) => DY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function PTe(e, t) {
+ let n = H.getQueryData(bY);
+ return n && CY.flatMap((t) => EY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var NTe = (e, t) => V(fTe, {
+var FTe = (e, t) => V(mTe, {
genre: e,
tag: t
});
-async function PTe(e) {
+async function ITe(e) {
await H.fetchQuery({
- queryKey: xY,
- queryFn: () => jY(e)
+ queryKey: bY,
+ queryFn: () => AY(e)
});
}
-function FTe(e, t, n) {
+function LTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(xY, (t) => {
+ r.size && H.setQueryData(bY, (t) => {
if (!t) return t;
- let i = wY.flatMap((n) => DY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = CY.flatMap((n) => EY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(wY.map((o) => {
- let s = DY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(CY.map((o) => {
+ let s = EY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62484,124 +62494,124 @@ function FTe(e, t, n) {
};
});
}
-var ITe = () => H.invalidateQueries({
- queryKey: xY,
+var RTe = () => H.invalidateQueries({
+ queryKey: bY,
exact: !0
});
-function LTe(e, t) {
+function zTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var RTe = "/api/links", MY = "/api/links/check", NY = "/api/links/prune", PY = ["links"], FY = ["links", "check"], IY = ["links", "prune"], zTe = {
+var BTe = "/api/links", jY = "/api/links/check", MY = "/api/links/prune", NY = ["links"], PY = ["links", "check"], FY = ["links", "prune"], VTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function LY(e) {
+async function IY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var RY = (e) => B(RTe, e), zY = (e) => V(MY, { status_only: !0 }, "POST", e), BTe = ({ retry: e, checkId: t }) => LY(V(MY, e ? {
+var LY = (e) => B(BTe, e), RY = (e) => V(jY, { status_only: !0 }, "POST", e), HTe = ({ retry: e, checkId: t }) => IY(V(jY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), BY = (e) => B(NY, e), VTe = ({ checkId: e, ids: t }) => LY(V(NY, {
+} : { restart: !0 })), zY = (e) => B(MY, e), UTe = ({ checkId: e, ids: t }) => IY(V(MY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), VY = (e) => Number(e || 0).toLocaleString(), HTe = (e) => `已删除 ${VY(e.removed)} 条;${e.marked ? `已隐退女优的 ${VY(e.marked)} 条留作不可点的记录;` : ""}保留 ${VY(e.recovered)} 条未确认失效的链接。`;
-function UTe(e) {
+})), BY = (e) => Number(e || 0).toLocaleString(), WTe = (e) => `已删除 ${BY(e.removed)} 条;${e.marked ? `已隐退女优的 ${BY(e.marked)} 条留作不可点的记录;` : ""}保留 ${BY(e.recovered)} 条未确认失效的链接。`;
+function GTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${VY(e.checked)} / ${VY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${BY(e.checked)} / ${BY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var HY = "/api/configuration", UY = "/api/pick-folder", WY = "/api/settings", GY = "/api/follow/schedule", KY = "/api/feeds/schedule", qY = "/api/thumbnail-jobs", JY = ["settings"], YY = ["follow-schedule"], XY = ["feed-schedule"], ZY = ["thumbnail-jobs"], WTe = "/api/media-processing", GTe = ["media-processing"], KTe = (e) => B(WTe, e), QY = (e) => B(WY, e), qTe = (e) => B(GY, e), JTe = (e) => B(KY, e), YTe = (e) => B(qY, e);
-function XTe(e = H) {
+var VY = "/api/configuration", HY = "/api/pick-folder", UY = "/api/settings", WY = "/api/follow/schedule", GY = "/api/feeds/schedule", KY = "/api/thumbnail-jobs", qY = ["settings"], JY = ["follow-schedule"], YY = ["feed-schedule"], XY = ["thumbnail-jobs"], ZY = "/api/media-processing", KTe = ["media-processing"], qTe = (e) => B(ZY, e), QY = (e) => B(UY, e), JTe = (e) => B(WY, e), YTe = (e) => B(GY, e), XTe = (e) => B(KY, e);
+function ZTe(e = H) {
return e.fetchQuery({
- queryKey: JY,
+ queryKey: qY,
queryFn: ({ signal: e }) => QY(e),
staleTime: 0
}).catch(() => null);
}
function $Y() {
return It({
- mutationFn: (e) => V(WY, e),
- onSuccess: (e) => H.setQueryData(JY, e)
+ mutationFn: (e) => V(UY, e),
+ onSuccess: (e) => H.setQueryData(qY, e)
});
}
-function ZTe() {
+function QTe() {
return It({
- mutationFn: (e) => V(GY, {
+ mutationFn: (e) => V(WY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(YY, e)
+ onSuccess: (e) => H.setQueryData(JY, e)
});
}
-var QTe = {
+var $Te = {
follow: {
- url: `${GY}/run`,
- key: YY
+ url: `${WY}/run`,
+ key: JY
},
feed: {
- url: `${KY}/run`,
- key: XY
+ url: `${GY}/run`,
+ key: YY
}
};
-function $Te(e) {
- let { url: t, key: n } = QTe[e];
+function eEe(e) {
+ let { url: t, key: n } = $Te[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var eEe = (e) => e?.running ? 3e3 : !1;
-function tEe() {
+var tEe = (e) => e?.running ? 3e3 : !1;
+function nEe() {
return It({
- mutationFn: (e) => V(qY, { mode: e }),
- onSuccess: (e) => H.setQueryData(ZY, e)
+ mutationFn: (e) => V(KY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(XY, e)
});
}
// src/react/data-cleanup/organize.ts
-var nEe = "/api/organize", rEe = "/api/organize/preview", iEe = "/api/organize/apply", aEe = "/api/organize/rollback", eX = ["organize"], oEe = "/api/organize/example", sEe = (e, t, n) => B(`${oEe}?${new URLSearchParams({
+var rEe = "/api/organize", iEe = "/api/organize/preview", aEe = "/api/organize/apply", oEe = "/api/organize/rollback", eX = ["organize"], sEe = "/api/organize/example", cEe = (e, t, n) => B(`${sEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), tX = (e) => B(nEe, e);
-async function cEe(e) {
+})}`, n), tX = (e) => B(rEe, e);
+async function lEe(e) {
await H.fetchQuery({
queryKey: eX,
queryFn: () => tX(e)
});
}
-var lEe = (e) => V(rEe, e), uEe = (e) => V(UY, { initial: e }), dEe = (e) => e.kind === "apply" ? V(iEe, {
+var uEe = (e) => V(iEe, e), dEe = (e) => V(HY, { initial: e }), fEe = (e) => e.kind === "apply" ? V(aEe, {
...e.request,
confirm: !0
-}) : V(aEe, { confirm: !0 });
-async function fEe(e) {
+}) : V(oEe, { confirm: !0 });
+async function pEe(e) {
H.setQueryData(eX, (t) => t && {
...t,
templates: e
});
try {
- await V(WY, { organizeTemplates: e });
+ await V(UY, { organizeTemplates: e });
} catch {}
}
-var pEe = (e, t) => e && {
+var mEe = (e, t) => e && {
...e,
...t
-}, mEe = /目录模板|分隔符|盘符|`\.`/;
-function hEe(e) {
+}, hEe = /目录模板|分隔符|盘符|`\.`/;
+function gEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var nX = (e) => Number(e || 0).toLocaleString();
-function gEe(e) {
+function _Ee(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nX(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${nX(e.counts.change)} 个文件会改名或移动,${nX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function _Ee(e) {
+function vEe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能退回` : ""}。` : `已整理 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能处理` : ""}。`,
@@ -62610,36 +62620,36 @@ function _Ee(e) {
};
}
// src/react/data-cleanup/orphan-records.ts
-var vEe = "/api/orphan-records", yEe = "/api/orphan-records/attach", rX = ["orphan-records"], bEe = [
+var yEe = "/api/orphan-records", bEe = "/api/orphan-records/attach", rX = ["orphan-records"], xEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], iX = (e) => B(vEe, e), xEe = (e, t) => V(yEe, {
+], iX = (e) => B(yEe, e), SEe = (e, t) => V(bEe, {
id: e,
target: t
-}), SEe = (e) => V(lY, {
+}), CEe = (e) => V(cY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), CEe = (e) => [
+}), wEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], wEe = (e) => [...bEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...CEe(e)].filter(Boolean).join(" · "), TEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", EEe = (e) => [e.name, TEe(e.duration)].filter(Boolean).join(" · "), aX = "/api/resource-sync/scan", oX = "/api/resource-sync/apply", sX = ["resource-sync", "scan"], cX = ["resource-sync", "apply"], lX = (e) => V(aX, {
+], TEe = (e) => [...xEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...wEe(e)].filter(Boolean).join(" · "), EEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", DEe = (e) => [e.name, EEe(e.duration)].filter(Boolean).join(" · "), aX = "/api/resource-sync/scan", oX = "/api/resource-sync/apply", sX = ["resource-sync", "scan"], cX = ["resource-sync", "apply"], lX = (e) => V(aX, {
background: !0,
status_only: !0
-}, "POST", e), DEe = () => V(aX, {
+}, "POST", e), OEe = () => V(aX, {
background: !0,
restart: !0
-}), uX = (e) => B(oX, e), OEe = (e) => V(oX, {
+}), uX = (e) => B(oX, e), kEe = (e) => V(oX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
}), dX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function kEe(e) {
+async function AEe(e) {
dX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
queryKey: sX,
queryFn: () => lX(e)
@@ -62648,7 +62658,7 @@ async function kEe(e) {
queryFn: () => uX(e)
})]);
}
-var AEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fX = (e) => Number(e || 0).toLocaleString(), jEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mX = (e) => e.vanish ? `${fX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", hX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", MEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录和 ${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。${hX(e)}${mX(e)}`, NEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录(含回收站里的)、${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。来源根目录保留。${hX(e)}${mX(e)}`, PEe = (e) => e.online ? [
+var jEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fX = (e) => Number(e || 0).toLocaleString(), MEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mX = (e) => e.vanish ? `${fX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", hX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", NEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录和 ${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。${hX(e)}${mX(e)}`, PEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录(含回收站里的)、${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。来源根目录保留。${hX(e)}${mX(e)}`, FEe = (e) => e.online ? [
`找不到文件 · 共 ${fX(e.total)} 项`,
e.vanish ? `${fX(e.vanish)} 项带个人记录` : "",
e.empty ? `空文件夹 ${fX(e.empty)} 个` : ""
@@ -62665,59 +62675,59 @@ function gX(e) {
].filter(Boolean).join(",")
};
}
-var FEe = (e, t) => {
+var IEe = (e, t) => {
let { rest: n } = gX(e), r = `已永久删除 ${fX(e.purged)} 条失效记录和 ${fX(e.dirs_removed)} 个空文件夹,清理 ${fX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${fX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${fX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, _X = ["performer-delete-candidates"], vX = (e) => B("/api/performer/delete-candidates", e), IEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), LEe = (e) => V("/api/performer/delete", {
+}, _X = ["performer-delete-candidates"], vX = (e) => B("/api/performer/delete-candidates", e), LEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), REe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), REe = "/api/review?counts=1", yX = ["review", "counts"], zEe = "/api/ads?limit=1", bX = ["junk-summary"], xX = "/api/items?state=trash&limit=1", SX = ["trash-summary"], BEe = [
+}), zEe = "/api/review?counts=1", yX = ["review", "counts"], BEe = "/api/ads?limit=1", bX = ["junk-summary"], xX = "/api/items?state=trash&limit=1", SX = ["trash-summary"], VEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], CX = (e) => B(REe, e), wX = (e) => B(zEe, e), TX = (e) => {
+], CX = (e) => B(zEe, e), wX = (e) => B(BEe, e), TX = (e) => {
let t = sessionStorage.getItem("peach.library");
return B(t ? `${xX}&library=${encodeURIComponent(t)}` : xX, e);
}, EX = (e) => Number(e || 0).toLocaleString();
-function VEe(e) {
- let t = SY, 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);
+function HEe(e) {
+ let t = xY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function HEe(e) {
+function UEe(e) {
if (!e) return "";
- let t = BEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EX(e.counts[t])}`);
+ let t = VEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EX(e.counts[t])}`);
return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${EX(e.dismissed_total)}`), t.join(" · ");
}
-var UEe = [
+var WEe = [
[yX, ({ signal: e }) => CX(e)],
- [vY, ({ signal: e }) => yY(e)],
+ [_Y, ({ signal: e }) => vY(e)],
[SX, ({ signal: e }) => TX(e)],
[bX, ({ signal: e }) => wX(e)],
- [cY, ({ signal: e }) => uY(e)]
+ [sY, ({ signal: e }) => lY(e)]
];
-async function WEe(e) {
- for (let [t, n] of UEe) H.prefetchQuery({
+async function GEe(e) {
+ for (let [t, n] of WEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await oH(e);
+ await aH(e);
}
-async function GEe(e, t) {
+async function KEe(e, t) {
switch (e) {
case "organize":
- await cEe(t);
+ await lEe(t);
break;
case "media-repair":
- await iTe(t);
+ await oTe(t);
break;
case "resource-sync":
- await sY(t), await kEe(t);
+ await oY(t), await AEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
@@ -62732,6 +62742,10 @@ async function GEe(e, t) {
});
break;
case "links": await Promise.all([
+ H.prefetchQuery({
+ queryKey: NY,
+ queryFn: () => LY(t)
+ }),
H.prefetchQuery({
queryKey: PY,
queryFn: () => RY(t)
@@ -62739,17 +62753,13 @@ async function GEe(e, t) {
H.prefetchQuery({
queryKey: FY,
queryFn: () => zY(t)
- }),
- H.prefetchQuery({
- queryKey: IY,
- queryFn: () => BY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var DX = (e) => ["feed-new", e ?? "home"], KEe = 8, qEe = 1500;
-function JEe(e, t, n) {
+var DX = (e) => ["feed-new", e ?? "home"], qEe = 8, JEe = 1500;
+function YEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62760,11 +62770,11 @@ function JEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function YEe(e, t, n) {
- let r = new URLSearchParams({ limit: String(tM().value.feedLimit) });
+async function XEe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(rM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await Tn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await JEe(s, KEe, qEe), {
+ return n && o.length && await YEe(s, qEe, JEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
@@ -62772,7 +62782,7 @@ async function YEe(e, t, n) {
}
var OX = (e, t, n = !1) => ({
queryKey: DX(e),
- queryFn: () => YEe(e, t, n),
+ queryFn: () => XEe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
}), kX = (e, t) => Tn("/api/feeds/discovery", {
@@ -62782,7 +62792,7 @@ var OX = (e, t, n = !1) => ({
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function XEe(e) {
+async function ZEe(e) {
H.removeQueries({ queryKey: DX(null) }), await H.fetchQuery(OX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
@@ -62807,7 +62817,7 @@ var AX = [
"entity",
e,
t
-], ZEe = (e, t, n, r) => [
+], QEe = (e, t, n, r) => [
"entity-items",
e,
t,
@@ -62819,7 +62829,7 @@ var AX = [
t,
n,
r
-], PX = (e) => String(e || "").split(",").filter(Boolean), QEe = (e, t) => PX(e).includes(t);
+], PX = (e) => String(e || "").split(",").filter(Boolean), $Ee = (e, t) => PX(e).includes(t);
function FX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...PX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
@@ -62836,7 +62846,7 @@ var LX = (e) => {
seed: e.seed
}, n = FX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: ZEe(e.kind, e.name, n, e.revision),
+ queryKey: QEe(e.kind, e.name, n, e.revision),
queryFn: ({ signal: n }) => IX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
@@ -62845,7 +62855,7 @@ var LX = (e) => {
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function $Ee(e, t, n, r, i, a) {
+function eDe(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)}` : ""}`;
@@ -62857,7 +62867,7 @@ function $Ee(e, t, n, r, i, a) {
var zX = (e, t, n, r) => ({
queryKey: NX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn($Ee(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(eDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62871,7 +62881,7 @@ var zX = (e, t, n, r) => ({
} : void 0,
staleTime: Infinity
}), BX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function eDe(e) {
+async function tDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62898,7 +62908,7 @@ var VX = [
["blogger", "网黄博主"],
["animation", "动画作者"]
], HX = "mb-4 flex flex-wrap gap-2";
-function tDe(e) {
+function nDe(e) {
let t = VX.some(([t]) => t === e) ? e : "all";
return `<div class="peach-react"><div aria-label="身份分类" class="${HX}">${VX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
@@ -62908,39 +62918,39 @@ function tDe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var nDe = "/api/follow/authors", rDe = "/api/follow/tags", iDe = (e) => [
+var rDe = "/api/follow/authors", iDe = "/api/follow/tags", aDe = (e) => [
"follow",
"authors",
e
-], aDe = (e, t) => [
+], oDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function oDe(e, t, n) {
+function sDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${nDe}?${r}`;
+ return e && r.set("q", e), `${rDe}?${r}`;
}
-function sDe(e, t, n, r) {
+function cDe(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), `${rDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${iDe}?${i}`;
}
-var cDe = (e, t, n, r) => B(oDe(e, t, n), r), lDe = (e, t, n, r, i) => B(sDe(e, t, n, r), i), uDe = "/api/index", UX = {
+var lDe = (e, t, n, r) => B(sDe(e, t, n), r), uDe = (e, t, n, r, i) => B(cDe(e, t, n, r), i), dDe = "/api/index", UX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, dDe = {
+}, fDe = {
performers: "performer",
creators: "creator",
studios: "studio",
@@ -63012,7 +63022,7 @@ function QX(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${uDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${dDe}?${a}`;
}
function $X(e, t = KX.tags) {
let n = e.what === "people" || e.what === "online-authors" ? KX.people : t, r = {
@@ -63032,17 +63042,17 @@ function $X(e, t = KX.tags) {
};
case "online-authors": return {
...r,
- queryKey: iDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => cDe(e.q, n, t, r)
+ queryKey: aDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => lDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: aDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => lDe(e.q, e.category, n, t, r)
+ queryKey: oDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => uDe(e.q, e.category, n, t, r)
};
}
}
-async function fDe(e, t) {
+async function pDe(e, t) {
let n = $X(XX(YX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -63055,13 +63065,13 @@ async function fDe(e, t) {
staleTime: Infinity
});
}
-var pDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], mDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, eZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", hDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, gDe = {
+var mDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], hDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, eZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", gDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, _De = {
numeric: !0,
sensitivity: "base"
};
function tZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", gDe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", _De))) {
let e = er(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -63080,18 +63090,18 @@ function nZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var _De = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", vDe = fV("rss");
+var vDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", yDe = dV("rss");
function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: SU({
+ className: xU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${_De} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${vDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63100,10 +63110,10 @@ function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: /* @__PURE__ */ (0, I.jsx)(WU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(vDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(yDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63121,7 +63131,7 @@ function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
}
function iZ({ kind: e, items: t, layout: n, props: r }) {
let i = JX(e) || e === "series";
- rL();
+ aL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63129,12 +63139,12 @@ function iZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || dDe[e], o = r.personAvatar(t, n, a);
+ let n = t.entity_kind || fDe[e], o = r.personAvatar(t, n, a);
return /* @__PURE__ */ (0, I.jsx)(rZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${hDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${gDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
@@ -63148,8 +63158,8 @@ function iZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function yDe({ items: e, layout: t, props: n }) {
- rL();
+function bDe({ items: e, layout: t, props: n }) {
+ aL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63212,7 +63222,7 @@ function cZ(e) {
}
return !1;
}
-function bDe() {
+function xDe() {
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) => {
@@ -63259,11 +63269,11 @@ function lZ(e) {
e.style.setProperty("--board-range-value", `${i}%`);
}
var uZ = /* @__PURE__ */ new WeakSet();
-function xDe() {
+function SDe() {
if (uZ.has(document)) return;
uZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(lZ), CDe(e), SDe(e);
+ e.querySelectorAll("input[type=range]").forEach(lZ), wDe(e), CDe(e);
};
e(document), new MutationObserver((t) => {
for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && lZ(t), e(t));
@@ -63272,9 +63282,9 @@ function xDe() {
childList: !0
}), document.addEventListener("input", (e) => {
e.target instanceof HTMLInputElement && e.target.type === "range" && lZ(e.target);
- }), bDe();
+ }), xDe();
}
-function SDe(e) {
+function CDe(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;
@@ -63299,7 +63309,7 @@ function SDe(e) {
});
}
var dZ = /* @__PURE__ */ new Map();
-function CDe(e) {
+function wDe(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;
@@ -63331,7 +63341,7 @@ function CDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var fZ = "/vendor/swiper/14.4.0/", pZ = null, wDe = () => pZ ??= Promise.all([new Promise((e, t) => {
+var fZ = "/vendor/swiper/14.4.0/", pZ = null, TDe = () => pZ ??= Promise.all([new Promise((e, t) => {
let n = `${fZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -63350,7 +63360,7 @@ var fZ = "/vendor/swiper/14.4.0/", pZ = null, wDe = () => pZ ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw pZ = null, e;
});
-function TDe(e, t, n) {
+function EDe(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);
@@ -63374,8 +63384,8 @@ function TDe(e, t, n) {
var mZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, EDe = (e) => e.asset?.name || e.name || "未命名图片";
-function DDe(e, t) {
+}, DDe = (e) => e.asset?.name || e.name || "未命名图片";
+function ODe(e, t) {
let n = e.asset;
if (n) return [nr[n.location ?? ""] || n.location || "来源未知", mZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
@@ -63386,31 +63396,31 @@ function DDe(e, t) {
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var hZ = null, gZ = null, ODe = 0;
-function kDe() {
+var hZ = null, gZ = null, kDe = 0;
+function ADe() {
return gZ && hZ?.isConnected || (gZ?.unmount(), hZ = document.createElement("div"), hZ.className = "peach-react", hZ.dataset.photoLightboxHost = "", document.body.append(hZ), gZ = (0, zt.createRoot)(hZ)), gZ;
}
async function _Z(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await wDe();
+ r = await TDe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = kDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(ADe, {
+ let i = ADe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(jDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++ODe)));
+ }, ++kDe)));
}
function vZ() {
gZ && (0, Rt.flushSync)(() => gZ.render(null));
}
-function ADe({ slides: e, index: t, Swiper: n, host: r }) {
+function jDe({ 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: ""
@@ -63453,7 +63463,7 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = TDe(e, a, b);
+ i(t, 0), h.current = EDe(e, a, b);
let m = il(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -63654,10 +63664,10 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: EDe(j)
+ children: DDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: DDe(j, x[_])
+ children: ODe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63695,17 +63705,17 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function jDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(MDe, {
+function MDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(NDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(NDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(IDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(PDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(LDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
var yZ = KX.people;
-function MDe({ roster: e, props: t }) {
+function NDe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
@@ -63717,19 +63727,19 @@ function MDe({ roster: e, props: t }) {
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(iY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function NDe(e) {
+function PDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(LG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(nY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63751,14 +63761,14 @@ function NDe(e) {
})
});
}
-var PDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var FDe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), bZ = (e) => e.sample === !0, xZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, SZ = (e) => bZ(e) ? `/sample-thumb?${xZ(e)}` : `/photo-thumb?id=${e.id}`, FDe = (e) => bZ(e) ? {
+})), bZ = (e) => e.sample === !0, xZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, SZ = (e) => bZ(e) ? `/sample-thumb?${xZ(e)}` : `/photo-thumb?id=${e.id}`, IDe = (e) => bZ(e) ? {
src: `/sample-image?${xZ(e)}`,
thumb: SZ(e),
name: e.name,
@@ -63770,14 +63780,14 @@ var PDe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function IDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(PDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function LDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(FDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- _Z(e, o.map(FDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(LDe, {
+ _Z(e, o.map(IDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(RDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63816,7 +63826,7 @@ function IDe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(iY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -63840,7 +63850,7 @@ function CZ({ label: e, title: t, meta: n }) {
]
});
}
-function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function RDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63859,9 +63869,9 @@ function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var RDe = 2e3, zDe = (e) => e, BDe = (e, t) => t;
+var zDe = 2e3, BDe = (e) => e, VDe = (e, t) => t;
function wZ(e) {
- let { queryKey: t, jobOf: n = zDe, withJob: r = BDe, 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 = BDe, withJob: r = VDe, 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;
});
@@ -63870,7 +63880,7 @@ function wZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? RDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? zDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63895,11 +63905,11 @@ function wZ(e) {
}
// src/react/follow-feed/follow-check.ts
var TZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function VDe(e, t) {
+function HDe(e, t) {
return t ? TZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function HDe({ sources: e, report: t }) {
+function UDe({ sources: e, report: t }) {
let n = TZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = wZ({
queryKey: zr,
queryFn: ({ signal: e }) => vi(e),
@@ -63914,19 +63924,19 @@ function HDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...mV(s),
+ ...pV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var UDe = (e) => Number(e) > 0;
+var WDe = (e) => Number(e) > 0;
function EZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
@@ -63939,9 +63949,9 @@ function EZ({ name: e, actions: t, children: n, ...r }) {
}
var DZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: fG(e) }
+ dangerouslySetInnerHTML: { __html: dG(e) }
});
-function WDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function GDe({ 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);
@@ -63964,8 +63974,8 @@ function WDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function GDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Ibe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+function KDe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Rbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -63973,7 +63983,7 @@ function GDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = pK({
+ let C = fK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -63981,7 +63991,7 @@ function GDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = _G(u, n, i), D = pG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = bG(u, i), j = yG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = gG(u, n, i), D = fG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = yG(u, i), j = vG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -63996,7 +64006,7 @@ function GDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: iK,
+ onMouseDown: rK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -64010,7 +64020,7 @@ function GDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(WDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(GDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64038,7 +64048,7 @@ function GDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: fG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: dG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64051,7 +64061,7 @@ function GDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- UDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ WDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64140,7 +64150,7 @@ function GDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: vG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: _G(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-byline": "",
@@ -64152,19 +64162,19 @@ function GDe(e) {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(zG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(VG, {
+ children: /* @__PURE__ */ (0, I.jsx)(BG, {
value: u.published_at || "",
- label: CG(u),
- title: SG(u)
+ label: SG(u),
+ title: xG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64174,10 +64184,10 @@ function GDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(UG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(HG, {
reasons: e.reason.reasons,
tags: e.reason.tags.map((e) => Ll(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(HG, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(VG, {
"data-follow-labels": "",
tags: k,
label: Ll,
@@ -64202,9 +64212,9 @@ function GDe(e) {
]
});
}
-var OZ = (0, F.memo)(GDe);
+var OZ = (0, F.memo)(KDe);
// src/react/components/use-masonry-grid.ts
-function KDe(e, t) {
+function qDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64269,7 +64279,7 @@ function NZ(e, t) {
var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), qDe = fV("settings"), FZ = fV("chevron-down"), JDe = fV("history"), YDe = fV("arrow-up"), XDe = fV("arrow-down"), ZDe = [[
+}), JDe = dV("settings"), FZ = dV("chevron-down"), YDe = dV("history"), XDe = dV("arrow-up"), ZDe = dV("arrow-down"), QDe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64278,7 +64288,7 @@ var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function QDe(e, t, n) {
+function $De(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) => {
@@ -64326,7 +64336,7 @@ function QDe(e, t, n) {
n
]);
}
-function $De(e) {
+function eOe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ra(t, r)), o = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
@@ -64334,7 +64344,7 @@ function $De(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = QDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = $De(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -64368,10 +64378,10 @@ function $De(e) {
p,
i
]);
- let m = tOe(e, !!s);
+ let m = nOe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IZ, {}), /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IZ, {}), /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64384,7 +64394,7 @@ function $De(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, mG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, pG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -64393,7 +64403,7 @@ function $De(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64413,20 +64423,20 @@ function $De(e) {
dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(nOe, {
+ /* @__PURE__ */ (0, I.jsx)(rOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(rOe, {
+ /* @__PURE__ */ (0, I.jsx)(iOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(iOe, {
+ /* @__PURE__ */ (0, I.jsx)(aOe, {
facets: u,
view: t,
total: _,
@@ -64434,7 +64444,7 @@ function $De(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(aOe, {
+ /* @__PURE__ */ (0, I.jsx)(oOe, {
conditions: g,
onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
@@ -64446,8 +64456,8 @@ function $De(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(oOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(sOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(sOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(cOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64470,14 +64480,14 @@ function $De(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(aY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(iY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(eOe, {
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(tOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64488,7 +64498,7 @@ function $De(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : JDe,
+ leadingIcon: m.olderBusy ? void 0 : YDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64514,9 +64524,9 @@ function IZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
- leadingIcon: qDe,
+ leadingIcon: JDe,
"data-follow-manage": "",
href: LZ(),
children: "管理关注"
@@ -64524,7 +64534,7 @@ function IZ({ children: e }) {
})]
});
}
-function eOe({ busy: e, error: t, load: n }) {
+function tOe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
@@ -64532,12 +64542,12 @@ function eOe({ busy: e, error: t, load: n }) {
"aria-disabled": e || void 0,
onClick: n,
children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ }), t ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: t,
onRetry: n
}) : null] });
}
-function tOe(e, t) {
+function nOe(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
@@ -64599,12 +64609,12 @@ function tOe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function rOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => mG(e.authorSources.get(t) || [], n);
+ let o = (t) => pG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64612,9 +64622,9 @@ function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = hG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = mG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: gG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: hG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
@@ -64636,7 +64646,7 @@ function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function rOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function iOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64657,13 +64667,13 @@ function rOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = gL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = gL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function aOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = vL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = vL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+ return /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64748,10 +64758,10 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: fG(t, n) }
+ dangerouslySetInnerHTML: { __html: dG(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Da(e.groups, n)}`,
@@ -64769,23 +64779,23 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(DV, {
+ /* @__PURE__ */ (0, I.jsx)(EV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
label: "图片布局",
value: i.photoLayout,
- options: ZDe,
+ options: QDe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64815,9 +64825,9 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Sa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(sG, {
- a: YDe,
- b: XDe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(oG, {
+ a: XDe,
+ b: ZDe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64828,7 +64838,7 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function aOe({ conditions: e, onDrop: t, onClear: n }) {
+function oOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64853,21 +64863,21 @@ function aOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function oOe({ count: e }) {
+function sOe({ count: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-broken": "",
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(LZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var LZ = () => NZ(window.location.search);
-function sOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+function cOe({ 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)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(LG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(cOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(lOe, {
facets: t,
data: n,
context: r,
@@ -64879,12 +64889,12 @@ function sOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function cOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function lOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
let { view: s, actions: c } = r, l = zZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = KDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = qDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
return /* @__PURE__ */ (0, I.jsx)(OZ, {
@@ -64901,7 +64911,7 @@ function cOe({ 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)(lOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(uOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64927,19 +64937,19 @@ function cOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
function RZ(e, t) {
return ga(e, t.media).id;
}
-function lOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function uOe({ 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)(uV, {
- icon: fV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64948,7 +64958,7 @@ function lOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var uOe = {
+var dOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
@@ -64976,7 +64986,7 @@ function zZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(uOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(dOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65021,9 +65031,9 @@ function zZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function dOe(e) {
+function fOe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65031,13 +65041,13 @@ function dOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(RG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(LG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(pOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(iY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65047,7 +65057,7 @@ function dOe(e) {
})
});
}
-function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function pOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = zZ({
view: e,
revision: 0,
@@ -65079,11 +65089,11 @@ function fOe({ 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)(pOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(mOe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: VDe(n.sources || [], e.author)
+ sources: HDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65092,21 +65102,21 @@ function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function pOe({ searched: e, clear: t, actions: n, sources: r }) {
+function mOe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(HDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(UDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65152,7 +65162,7 @@ function UZ(e, t) {
y1: a + r
});
}
-function mOe(e, t) {
+function hOe(e, t) {
if (!HZ(e) || !(t > 0)) return BZ(e);
let n = Math.min(e.width, e.height * t);
return VZ({
@@ -65162,7 +65172,7 @@ function mOe(e, t) {
y1: e.height
});
}
-function hOe(e, t, n) {
+function gOe(e, t, n) {
if (!HZ(t) || !(n > 0)) return BZ(t);
let r = WZ(e, t), i = UZ({
width: r.x1 - r.x0,
@@ -65211,7 +65221,7 @@ function KZ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function gOe(e, t, n, r, i = null) {
+function _Oe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -65220,7 +65230,7 @@ function gOe(e, t, n, r, i = null) {
};
return WZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function _Oe(e, t) {
+function vOe(e, t) {
return HZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -65233,7 +65243,7 @@ function _Oe(e, t) {
height: 0
};
}
-function vOe(e, t) {
+function yOe(e, t) {
if (!HZ(t)) return {
size: "cover",
position: "50% 50%"
@@ -65244,7 +65254,7 @@ function vOe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function yOe(e, t) {
+function bOe(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}%`,
@@ -65256,11 +65266,11 @@ function yOe(e, t) {
function qZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function bOe(e, t) {
+function xOe(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 xOe = .02, JZ = 1.08;
+var SOe = .02, JZ = 1.08;
function YZ({ 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)(() => {
@@ -65298,14 +65308,14 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(GZ(n.box, o.dx, o.dy, r)) : i(gOe(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(GZ(n.box, o.dx, o.dy, r)) : i(_Oe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
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) * xOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * SOe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -65313,7 +65323,7 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(GZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(KZ(n, e.key === "-" ? 1 / JZ : JZ, r, t)));
}
- let v = n && r ? _Oe(WZ(n, r, t), r) : null, y = v ? bOe(v, d) : !1, b = v ? {
+ let v = n && r ? vOe(WZ(n, r, t), r) : null, y = v ? xOe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65393,12 +65403,12 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var SOe = "/api/avatar-choices", XZ = "/api/avatar-pick", COe = "/api/avatar-code-cover", ZZ = "/api/avatar-frame", wOe = "/avatar-choice", QZ = (e, t) => [
+var COe = "/api/avatar-choices", XZ = "/api/avatar-pick", wOe = "/api/avatar-code-cover", ZZ = "/api/avatar-frame", TOe = "/avatar-choice", QZ = (e, t) => [
"avatar-choices",
e,
t
-], $Z = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, eQ = (e, t, n, r = "") => `${wOe}${$Z(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), tQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", TOe = (e, t, n) => B(SOe + $Z(e, t), n), EOe = (e) => V(COe, { code: e });
-async function DOe(e, t, n) {
+], $Z = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, eQ = (e, t, n, r = "") => `${TOe}${$Z(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), tQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", EOe = (e, t, n) => B(COe + $Z(e, t), n), DOe = (e) => V(wOe, { code: e });
+async function OOe(e, t, n) {
let r = await V(ZZ, {
kind: e,
id: t,
@@ -65412,11 +65422,11 @@ async function DOe(e, t, n) {
bases: r.bases
};
}
-var OOe = (e, t, n) => V(ZZ, {
+var kOe = (e, t, n) => V(ZZ, {
kind: e,
id: t,
url: n
-}), kOe = (e, t, n) => nQ(`${ZZ}${$Z(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+}), AOe = (e, t, n) => nQ(`${ZZ}${$Z(e, t)}&name=${encodeURIComponent(n.name)}`, n);
async function nQ(e, t) {
let n = await fetch(e, {
method: "POST",
@@ -65428,13 +65438,13 @@ async function nQ(e, t) {
}
function rQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? hOe(e.focus, t, n) : UZ(t, n);
+ return e.focus && r ? gOe(e.focus, t, n) : UZ(t, n);
}
-var AOe = (e) => e.crop && HZ({
+var jOe = (e) => e.crop && HZ({
width: e.width,
height: e.height
});
-async function jOe(e, t, n) {
+async function MOe(e, t, n) {
if (!("file" in n)) {
await V(XZ, {
kind: e,
@@ -65452,16 +65462,16 @@ async function jOe(e, t, n) {
await nQ(`${XZ}${$Z(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
var iQ = 2;
-function MOe(e, t) {
+function NOe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按${`「${n.slice(0, iQ).join("」「")}」`}${n.length > iQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var NOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function POe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${NOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var POe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function FOe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${POe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var aQ = (e) => e.cast > 1, FOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, IOe = {
+var aQ = (e) => e.cast > 1, IOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, LOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65471,7 +65481,7 @@ var aQ = (e) => e.cast > 1, FOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function LOe(e) {
+function ROe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65482,19 +65492,19 @@ function LOe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var ROe = (e) => `${IOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), zOe = 8, BOe = 3 / 4;
-async function VOe(e, t, n) {
+var zOe = (e) => `${LOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), BOe = 8, VOe = 3 / 4;
+async function HOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await DOe(e, t, n.choice) };
- case "code": return { choice: await EOe(n.code) };
- case "url": return { choice: await OOe(e, t, n.url) };
+ case "choice": return { choice: await OOe(e, t, n.choice) };
+ case "code": return { choice: await DOe(n.code) };
+ case "url": return { choice: await kOe(e, t, n.url) };
case "file": return {
- choice: await kOe(e, t, n.file),
+ choice: await AOe(e, t, n.file),
file: n.file
};
}
}
-function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function UOe({ 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",
@@ -65504,17 +65514,17 @@ function HOe({ 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)(oge, {
+ children: /* @__PURE__ */ (0, I.jsx)(sge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(oV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(UOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(WOe, {
kind: e,
entityId: t,
name: n,
@@ -65523,10 +65533,10 @@ function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = zV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = QZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = RV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = QZ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => TOe(e, t, n),
+ queryFn: ({ signal: n }) => EOe(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
@@ -65535,12 +65545,12 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
m.current && H.removeQueries({ queryKey: QZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => jOe(e, t, n),
+ mutationFn: (n) => MOe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => VOe(e, t, n),
+ mutationFn: (n) => HOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65561,39 +65571,39 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : POe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : FOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(cV, { children: /* @__PURE__ */ (0, I.jsx)(ZB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(sV, { children: /* @__PURE__ */ (0, I.jsx)(XB, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(GU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(WU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? FOe(d.choice) : MOe(n, x)
+ children: d ? IOe(d.choice) : NOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(h.isFetching),
+ ...pV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65603,14 +65613,14 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: CB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(GOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(KOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65630,7 +65640,7 @@ function UOe({ 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: zOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: BOe }, (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",
@@ -65643,8 +65653,8 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: ROe(n),
- ...mV(w),
+ title: zOe(n),
+ ...pV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65653,7 +65663,7 @@ function UOe({ 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)(WOe, {
+ /* @__PURE__ */ (0, I.jsx)(GOe, {
src: eQ(e, t, n.ref, tQ(n, n.ref)),
choice: n
}),
@@ -65663,7 +65673,7 @@ function UOe({ 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)(GU, {
+ children: /* @__PURE__ */ (0, I.jsx)(WU, {
variant: "caption",
color: "gray",
children: "在用"
@@ -65671,7 +65681,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
aQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(GU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(WU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65693,7 +65703,7 @@ function UOe({ 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)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(aV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65703,7 +65713,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...mV(v("code")),
+ ...pV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65712,7 +65722,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...mV(v("file")),
+ ...pV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65732,7 +65742,7 @@ function UOe({ 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)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(aV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65742,7 +65752,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...mV(v("url")),
+ ...pV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65756,7 +65766,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function WOe({ src: e, choice: t }) {
+function GOe({ 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);
@@ -65764,7 +65774,7 @@ function WOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = AOe(t) ? yOe(rQ(t, s, BOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = jOe(t) ? bOe(rQ(t, s, VOe), 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",
@@ -65790,12 +65800,12 @@ function WOe({ src: e, choice: t }) {
})]
});
}
-function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = tQ(n, s), m = eQ(e, t, s, p), h = zV();
+function KOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = tQ(n, s), m = eQ(e, t, s, p), h = RV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? vOe(d, l) : null;
+ let _ = d && l ? yOe(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",
@@ -65820,7 +65830,7 @@ function GOe({ 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: LOe(e)
+ children: ROe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65840,12 +65850,12 @@ function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...mV(r),
+ ...pV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(r),
+ ...pV(r),
onClick: () => {
r || a(null);
},
@@ -65853,7 +65863,7 @@ function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...mV(r),
+ ...pV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65872,13 +65882,13 @@ var oQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${enco
function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: IB,
+ icon: FB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...mV(!!n),
+ ...pV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65886,8 +65896,8 @@ function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function KOe({ code: e }) {
- let t = mH(), [n, r] = (0, F.useState)("");
+function qOe({ code: e }) {
+ let t = pH(), [n, r] = (0, F.useState)("");
return /* @__PURE__ */ (0, I.jsx)(sQ, {
title: "封面未取得",
detail: t.error || n,
@@ -65921,7 +65931,7 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(KOe, { code: e.code });
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(qOe, { code: e.code });
if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(sQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
@@ -65972,7 +65982,7 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
}
// src/react/components/source-avatar.tsx
function lQ({ code: e, person: t, detail: n = !1 }) {
- rL();
+ aL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65997,7 +66007,7 @@ function lQ({ code: e, person: t, detail: n = !1 }) {
}
// src/react/feed-new/feed-new-row.tsx
function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(YW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+ let a = (0, F.useContext)(JW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66129,7 +66139,7 @@ function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function JOe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
pQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
@@ -66181,29 +66191,29 @@ function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function YOe({ 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)(kme, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(Ame, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(uz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: jV,
+ className: AV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(jme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Mme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(yz, {
+ /* @__PURE__ */ (0, I.jsx)(vz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66211,15 +66221,15 @@ function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(xz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(bz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(fme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(yz, { children: /* @__PURE__ */ (0, I.jsxs)(xz, {
+ /* @__PURE__ */ (0, I.jsx)(pme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(vz, { children: /* @__PURE__ */ (0, I.jsxs)(bz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -66231,8 +66241,8 @@ function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
})]
});
}
-var YOe = (e) => e === "studio" || e === "agency", gQ = (e) => e === "performer" || e === "creator", XOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function ZOe(e, t = "zh-CN") {
+var XOe = (e) => e === "studio" || e === "agency", gQ = (e) => e === "performer" || e === "creator", ZOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function QOe(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
@@ -66255,7 +66265,7 @@ function vQ(e, t) {
return r && [e.label, n].map(Un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
var yQ = (e) => ({ site: zn(e) });
-function QOe(e, t) {
+function $Oe(e, t) {
let n = _Q(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -66297,9 +66307,9 @@ function QOe(e, t) {
mark: yQ(e)
};
});
- return [...r, ...$Oe(a)];
+ return [...r, ...eke(a)];
}
-function $Oe(e) {
+function eke(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66308,7 +66318,7 @@ function $Oe(e) {
}];
}
var bQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function eke(e) {
+function tke(e) {
return [
[
"legal_name",
@@ -66364,7 +66374,7 @@ function eke(e) {
}]
}] : []);
}
-function tke(e) {
+function nke(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66428,7 +66438,7 @@ function xQ(e, t = 4) {
rest: e.length - n
};
}
-function nke(e) {
+function rke(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 ? {
@@ -66438,7 +66448,7 @@ function nke(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function rke(e) {
+function ike(e) {
return go({
id: e.id,
hasImage: e.has_image,
@@ -66449,9 +66459,9 @@ function rke(e) {
standIn: e.avatar_stand_in
});
}
-function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- rL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = gQ(e), u = YOe(e), d = l ? tke(n.profile) : u ? eke(n.company_profile) : [], f = QOe(n, e), p = bQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function ake({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ aL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = gQ(e), u = XOe(e), d = l ? nke(n.profile) : u ? tke(n.company_profile) : [], f = $Oe(n, e), p = bQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -66464,7 +66474,7 @@ function ike({ 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)(ake, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oke, {
kind: e,
name: s,
helpers: o,
@@ -66472,7 +66482,7 @@ function ike({ 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)(HOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(UOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66487,17 +66497,17 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: zI(s),
+ lang: VI(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(JOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(YOe, {
current: n.canonical_name,
- choices: ZOe(n, Xt()),
+ choices: QOe(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(EV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(TV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66511,7 +66521,7 @@ function ike({ 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)(oke, {
+ /* @__PURE__ */ (0, I.jsx)(ske, {
kind: e,
entity: n,
actions: a
@@ -66532,14 +66542,14 @@ function ike({ 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)(fke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(pke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(pke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(mke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(lke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(uke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66548,11 +66558,11 @@ function ike({ 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)(uke, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(dke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(dke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(fke, { 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))
@@ -66571,7 +66581,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${rke(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${ike(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66586,7 +66596,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function ake({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function oke({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z(er(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -66600,7 +66610,7 @@ function ake({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function oke({ kind: e, entity: t, actions: n }) {
+function ske({ kind: e, entity: t, actions: n }) {
let r = _Q(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
@@ -66610,7 +66620,7 @@ function oke({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = nke(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = rke(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
@@ -66620,7 +66630,7 @@ function oke({ kind: e, entity: t, actions: n }) {
title: "视频",
children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(cke, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(lke, {
follow: t.follow,
actions: n
}) : null,
@@ -66637,7 +66647,7 @@ function oke({ kind: e, entity: t, actions: n }) {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(e),
+ lang: VI(e),
children: e
}, t))
}),
@@ -66690,11 +66700,11 @@ function oke({ kind: e, entity: t, actions: n }) {
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(ske, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(cke, { aliases: s }) : null
]
});
}
-function ske({ aliases: e }) {
+function cke({ aliases: e }) {
let { shown: t, rest: n } = xQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
@@ -66717,7 +66727,7 @@ function ske({ aliases: e }) {
]
});
}
-function cke({ follow: e, actions: t }) {
+function lke({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
@@ -66732,7 +66742,7 @@ function cke({ follow: e, actions: t }) {
})]
});
}
-function lke({ follow: e, displayName: t, actions: n }) {
+function uke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66746,12 +66756,12 @@ function lke({ 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)(lV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(cV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...mV(r === e.key),
+ ...pV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66778,19 +66788,19 @@ function CQ({ label: e, names: t }) {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: zI(e.name),
+ lang: VI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function uke({ glyph: e, label: t, clip: n, children: r }) {
+function dke({ glyph: e, label: t, clip: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function dke({ tags: e }) {
+function fke({ tags: e }) {
let { shown: t, rest: n } = xQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
@@ -66823,7 +66833,7 @@ function wQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function fke({ link: e }) {
+function pke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66871,7 +66881,7 @@ function fke({ link: e }) {
});
}
}
-function pke({ entity: e, actions: t, helpers: n }) {
+function mke({ 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);
@@ -66903,19 +66913,19 @@ function pke({ entity: e, actions: t, helpers: n }) {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(qOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(JOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: XOe(r)
+ tip: ZOe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var mke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function hke(e, t, n) {
+var hke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function gke(e, t, n) {
let [r, i] = (0, F.useState)(() => _a(e));
r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
@@ -66994,7 +67004,7 @@ function hke(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ea,
- seed: mke()
+ seed: hke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -67024,7 +67034,7 @@ function hke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function gke(e) {
+function _ke(e) {
let { kind: t, name: n } = e, r = Ft(RX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
@@ -67043,12 +67053,12 @@ function gke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(yke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(bke, {
...e,
entity: r.data
});
@@ -67065,17 +67075,17 @@ function TQ(e) {
};
return n(r), r.n;
}
-var _ke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function vke(e, t) {
+var vke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function yke(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function yke(e) {
+function bke(e) {
let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = Lt(zX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || BX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
} : jX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = hke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = gke(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
@@ -67308,7 +67318,7 @@ function yke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = _ke(), a = await H.fetchInfiniteQuery(zX(t, n, re, r)).catch(() => null);
+ let r = vke(), a = await H.fetchInfiniteQuery(zX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67343,7 +67353,7 @@ function yke(e) {
k: e.k,
label: Ll(e.k),
n: e.n,
- selected: QEe(i.tag, e.k)
+ selected: $Ee(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67385,7 +67395,7 @@ function yke(e) {
Pe = !A.data;
let e = PX(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()} 张` : vke(oe, BX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : yke(oe, BX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67402,7 +67412,7 @@ function yke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(ike, {
+ /* @__PURE__ */ (0, I.jsx)(ake, {
kind: t,
name: n,
entity: r,
@@ -67412,7 +67422,7 @@ function yke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Vbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Ube, {
kind: t,
name: n,
view: w,
@@ -67429,9 +67439,9 @@ function yke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Obe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Abe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(dOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(fOe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67445,16 +67455,16 @@ function yke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(bke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(xke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(jDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(MDe, {
kind: t,
name: n,
view: w,
@@ -67487,9 +67497,9 @@ function yke(e) {
}), c.body)
] });
}
-function bke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("search"),
+function xke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67497,14 +67507,14 @@ function bke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67514,7 +67524,7 @@ function bke({ filtered: e, onShowAll: t, onOnline: n }) {
}
// src/react/diagnostics/diagnostics.ts
var EQ = ["diagnostics"], DQ = (e) => B("/api/diagnostics", e);
-async function xke(e) {
+async function Ske(e) {
await H.fetchQuery({
queryKey: EQ,
queryFn: () => DQ(e),
@@ -67522,7 +67532,7 @@ async function xke(e) {
});
}
// src/react/feed-new/feed-new-page.tsx
-function Ske({ host: e, revision: t, helpers: n, actions: r }) {
+function Cke({ host: e, revision: t, helpers: n, actions: r }) {
let i = Ft(OX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: DX(null) }));
@@ -67535,7 +67545,7 @@ function Ske({ host: e, revision: t, helpers: n, actions: r }) {
}), e);
}
// src/react/index/index-search.tsx
-var Cke = fV("search");
+var wke = dV("search");
function OQ({ 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)(() => {
@@ -67553,20 +67563,20 @@ function OQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(nV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
type: "search",
- leadingIcon: Cke,
+ leadingIcon: wke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || eW(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || $U(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
@@ -67611,7 +67621,7 @@ var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), MQ = fV("pencil"), NQ = (e, t) => ({
+}), MQ = dV("pencil"), NQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67620,7 +67630,7 @@ var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function wke({ tag: e, actions: t }) {
+function Tke({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -67646,8 +67656,8 @@ function wke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(TV, { item: NQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(wV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
@@ -67661,17 +67671,17 @@ function PQ({ 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: SU({
+ className: xU({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(hW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(mW, { 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)(wke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(Tke, {
tag: e,
actions: t
}, e.k))
@@ -67679,7 +67689,7 @@ function PQ({ groups: e, actions: t }) {
}, e))
});
}
-var Tke = "\xA0";
+var Eke = "\xA0";
function FQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
@@ -67698,7 +67708,7 @@ function FQ({ tags: e, actions: t }) {
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + Tke
+ children: e.label + Eke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67707,7 +67717,7 @@ function FQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(TV, { item: NQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(wV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
@@ -67716,7 +67726,7 @@ function FQ({ tags: e, actions: t }) {
}, e.k))
});
}
-var Eke = [[
+var Dke = [[
"cloud",
"标签云",
"tags"
@@ -67726,28 +67736,28 @@ var Eke = [[
"text-aa"
]];
function IQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = lL();
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+ let d = dL();
+ return /* @__PURE__ */ (0, I.jsx)(pL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(fL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(mL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(fL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(mL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : eZ(n, e),
pressed: t === e,
@@ -67773,19 +67783,19 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(jz, {
+ /* @__PURE__ */ (0, I.jsx)(Az, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${aU}`,
- children: Eke.map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `ml-auto ${iU}`,
+ children: Dke.map(([e, t, n]) => {
+ let r = dV(n);
+ return /* @__PURE__ */ (0, I.jsx)(jz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: oU,
+ className: aU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67797,13 +67807,13 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function Dke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(xj, {
+function Oke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(Cj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(LV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67850,7 +67860,7 @@ var HQ = (e, t) => {
RQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(VV, { children: [/* @__PURE__ */ (0, I.jsx)(YV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(BV, { children: [/* @__PURE__ */ (0, I.jsx)(JV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
@@ -67874,7 +67884,7 @@ var HQ = (e, t) => {
success: LQ(t.success, !0),
error: LQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(YV, {
+ }), /* @__PURE__ */ (0, I.jsx)(JV, {
id: "processing",
position: "bottom-right",
gap: 8,
@@ -67895,13 +67905,13 @@ var HQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, Oke = 6e3, UQ = (e, t) => {
+}, kke = 6e3, UQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? WV.error : WV.success, r = t.action;
+ let n = t.alert ? UV.error : UV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Oke,
+ duration: t.timeout > 0 ? t.timeout : kke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67980,7 +67990,7 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kke, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Ake, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67989,7 +67999,7 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function kke({ operation: e, selected: t, dialog: n, update: r }) {
+function Ake({ operation: e, selected: t, dialog: n, update: r }) {
let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? WQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
@@ -68003,13 +68013,13 @@ function kke({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(aV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(zJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(RJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
@@ -68017,7 +68027,7 @@ function kke({ operation: e, selected: t, dialog: n, update: r }) {
let n = t.find((t) => String(WQ(t)) === String(e));
n && s(WQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
id: String(WQ(e)),
children: e.k
}, WQ(e)))
@@ -68054,7 +68064,7 @@ function YQ({ 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 = mH(), ee = E.data?.items || [], N = ee, te = (s ? GX : WX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = pH(), ee = E.data?.items || [], N = ee, te = (s ? GX : WX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
})), ne = g === "alphabet" ? tZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
@@ -68122,7 +68132,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(hL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68130,11 +68140,11 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(hL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(hL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68143,7 +68153,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68157,13 +68167,13 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : /* @__PURE__ */ (0, I.jsx)(FQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(HJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(VJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -68173,11 +68183,11 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(xj, {
+ /* @__PURE__ */ (0, I.jsxs)(Cj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68199,7 +68209,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!M.busy),
+ ...pV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68209,7 +68219,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!M.busy),
+ ...pV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68229,7 +68239,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var Ake = [
+var jke = [
{
value: "studios",
label: "厂牌",
@@ -68245,7 +68255,7 @@ var Ake = [
label: "系列",
symbol: "list"
}
-], jke = [{
+], Mke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68253,7 +68263,7 @@ var Ake = [
value: "online",
label: "在线",
symbol: "rss"
-}], Mke = [
+}], Nke = [
{
value: "performers",
label: "艺人",
@@ -68269,7 +68279,7 @@ var Ake = [
label: "在线",
symbol: "rss"
}
-], Nke = {
+], Pke = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68298,20 +68308,20 @@ var Ake = [
"layout-grid"
]]
};
-function Pke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(nU, {
+function Fke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(tU, {
"aria-label": `${UX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${rU}`,
- children: Nke[e === "series" ? "series" : JX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `flex-none ${nU}`,
+ children: Pke[e === "series" ? "series" : JX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = dV(n);
+ return /* @__PURE__ */ (0, I.jsx)(jz, {
value: e,
"aria-label": t,
- className: Lve,
+ className: zve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68321,7 +68331,7 @@ function Pke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function Fke(e) {
+function Ike(e) {
let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => YX({
kind: e.kind,
q: e.q,
@@ -68370,7 +68380,7 @@ function Fke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = pDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = mDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -68379,7 +68389,7 @@ function Fke(e) {
D.isPlaceholderData,
r
]), AQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : mDe(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()} 个标签` : hDe(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
@@ -68402,8 +68412,8 @@ function Fke(e) {
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: jke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(hW, {
+ tabs: Mke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68413,8 +68423,8 @@ function Fke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : JX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: Ake,
+ }) : JX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(hW, {
+ tabs: jke,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68441,7 +68451,7 @@ function Fke(e) {
qX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68450,18 +68460,18 @@ function Fke(e) {
})
})
}) : null,
- qX(h) ? /* @__PURE__ */ (0, I.jsx)(Pke, {
+ qX(h) ? /* @__PURE__ */ (0, I.jsx)(Fke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(EV, { 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: fV("pencil"),
+ leadingIcon: dV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68478,8 +68488,8 @@ function Fke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: Mke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(hW, {
+ tabs: Nke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68530,7 +68540,7 @@ function Fke(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(LG, {
pending: k,
skeletonHtml: () => h === "tags" ? rc({
mode: v,
@@ -68542,8 +68552,8 @@ function Fke(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68552,7 +68562,7 @@ function Fke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Lke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Rke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68561,7 +68571,7 @@ function Fke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(yDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(bDe, {
items: O,
layout: c,
props: e
@@ -68589,7 +68599,7 @@ function Fke(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(HJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(VJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68614,7 +68624,7 @@ function Fke(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Dke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Oke, {
count: u.size,
match: f,
onMatch: p,
@@ -68628,7 +68638,7 @@ function Fke(e) {
]
});
}
-var Ike = {
+var Lke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68636,9 +68646,9 @@ var Ike = {
agencies: "事务所",
series: "系列"
};
-function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("search"),
+function Rke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68647,16 +68657,16 @@ function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Ike[e], a = /* @__PURE__ */ (0, I.jsx)(vL, {
+ let i = n && e === "performers" ? "创作者" : Lke[e], a = /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: dV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68671,8 +68681,8 @@ var XQ = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Rke = (e) => XQ[e.junk_kind || "other"] || XQ.other;
-function zke(e) {
+}, zke = (e) => XQ[e.junk_kind || "other"] || XQ.other;
+function Bke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68683,40 +68693,40 @@ function zke(e) {
glyph: "check"
};
}
-var ZQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Bke = (e, t) => [
+var Vke = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Hke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Vke({ kind: e, view: t }) {
+function Uke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Hke(e, t) {
- let n = await B(`/api/ads?${Vke(e)}`, t);
+async function Wke(e, t) {
+ let n = await B(`/api/ads?${Uke(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function QQ({ name: e }) {
+function ZQ({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var $Q = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Uke({ 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] = Rke(e), m = String(e.name || ""), h = zke(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]") || $Q(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var QQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function Gke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = zke(e), m = String(e.name || ""), h = Bke(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+ t.target.closest("[data-junk-actions]") || QQ(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), $Q(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), QQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -68747,7 +68757,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: iK,
+ onMouseDown: rK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68755,7 +68765,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68767,7 +68777,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(QQ, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "check" })
})
]
}),
@@ -68804,7 +68814,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Bs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(QQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68816,7 +68826,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68828,7 +68838,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68843,9 +68853,9 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Wke = (0, F.memo)(Uke);
+var Kke = (0, F.memo)(Gke);
// src/react/components/collection-summary.tsx
-function e$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function $Q({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -68871,31 +68881,31 @@ function e$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function t$({ name: e }) {
+function e$({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function n$({ scope: e, count: t }) {
+function t$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = zV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = gL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FU.map(([e]) => ZQ(t, e)).join(",") : ""}`), l = RU(s), u = (e) => {
+function qke({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = RV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = vL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? PU.map(([e]) => Vke(t, e)).join(",") : ""}`), l = LU(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || LU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || IU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(e$, {
- label: zU(s),
+ children: /* @__PURE__ */ (0, I.jsx)($Q, {
+ label: RU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68915,17 +68925,17 @@ function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- FU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: LU(e, s),
+ PU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: IU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(t$, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)(e$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(n$, {
+ /* @__PURE__ */ (0, I.jsx)(t$, {
scope: e,
- count: t ? ZQ(t, e) : 0
+ count: t ? Vke(t, e) : 0
})
]
}, e || "all")),
@@ -68939,9 +68949,9 @@ function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(t$, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)(e$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(n$, {
+ /* @__PURE__ */ (0, I.jsx)(t$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68953,33 +68963,33 @@ function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Kke = fV("check"), qke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Jke(e) {
+var Jke = dV("check"), Yke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Xke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Bke(t, e.revision),
- queryFn: ({ signal: e }) => Hke(t, e),
- placeholderData: (e, n) => n && qke(n.queryKey, t) ? e : void 0
+ queryKey: Hke(t, e.revision),
+ queryFn: ({ signal: e }) => Wke(t, e),
+ placeholderData: (e, n) => n && Yke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Yke(e.countRow), i = n.isPending;
+ let r = Zke(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qke, {
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)(Xke, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Qke, {
props: e,
data: n.data,
pending: i,
@@ -68987,7 +68997,7 @@ function Jke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Yke(e) {
+function Zke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68997,8 +69007,8 @@ function Yke(e) {
};
}, [e]), t;
}
-function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = sxe(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 Qke({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = lxe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69006,16 +69016,16 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(LG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: Kke,
+ return /* @__PURE__ */ (0, I.jsx)(lV, {
+ icon: Jke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69028,7 +69038,7 @@ function Xke({ 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)(Wke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(Kke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69037,7 +69047,7 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Zke, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)($ke, { 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",
@@ -69047,14 +69057,14 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function Zke({ onMore: e }) {
+function $ke({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: IG });
+ }, { rootMargin: FG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -69064,22 +69074,22 @@ function Zke({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var Qke = SU({
+var eAe = xU({
padding: "none",
className: "overflow-hidden"
-}), r$ = {
+}), n$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, i$ = {
+}, r$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
-function a$(e) {
- return `${Qke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function i$(e) {
+ return `${eAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
-var o$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", s$ = {
- face: SU({
+var a$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", o$ = {
+ face: xU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69091,34 +69101,34 @@ var o$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", s
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"
-}, $ke = [
+}, tAe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], eAe = [
+], nAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function tAe(e = {}) {
- return `${SU({
+function rAe(e = {}) {
+ return `${xU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var nAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", rAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function c$({ interactive: e = !1 } = {}) {
- return SU({
+var iAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", aAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function s$({ interactive: e = !1 } = {}) {
+ return xU({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var l$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function iAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var c$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function oAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
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",
@@ -69151,13 +69161,13 @@ function iAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function aAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function sAe({ 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 ${$ke[n % 4]} ${eAe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${tAe[n % 4]} ${nAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69178,96 +69188,96 @@ function aAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var u$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", d$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", f$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", p$ = "disabled data-skeleton-action", oAe = "aria-disabled=\"true\"", m$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, h$ = (e, t, n) => `<div class="${r$[n]}"><div class="flex flex-col gap-2">
+var l$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", u$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", d$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", f$ = "disabled data-skeleton-action", cAe = "aria-disabled=\"true\"", p$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, m$ = (e, t, n) => `<div class="${n$[n]}"><div class="flex flex-col gap-2">
<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 sAe() {
- return m$(`<section aria-label="扫描与采集" class="${a$("stack")}" data-cleanup-task data-cleanup-processing>
- ${h$("扫描与采集", u$, "stack")}
- <footer class="${i$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
+function lAe() {
+ return p$(`<section aria-label="扫描与采集" class="${i$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${m$("扫描与采集", l$, "stack")}
+ <footer class="${r$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
label: "同步新增文件",
- attrs: p$
+ attrs: f$
})}${Os({
glyph: "chevron-down",
- attrs: `${p$} aria-label="更多同步方式"`
+ attrs: `${f$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function cAe() {
- return m$(`<section aria-label="媒体修复" class="${a$("split")}" data-cleanup-task data-cleanup-processing>
- ${h$("媒体修复", d$, "split")}
- <footer class="${i$.split}">${As(f$, {
+function uAe() {
+ return p$(`<section aria-label="媒体修复" class="${i$("split")}" data-cleanup-task data-cleanup-processing>
+ ${m$("媒体修复", u$, "split")}
+ <footer class="${r$.split}">${As(d$, {
className: "w-48",
- attrs: oAe
+ attrs: cAe
})}${Os({
label: "开始修复",
- attrs: p$
+ attrs: f$
})}</footer>
</section>`);
}
-function lAe() {
- let e = (e, t, n, r = "") => `<div class="${s$.face}"><span class="${s$.icon}">${Ts(t, "size-5")}</span><span class="${s$.body}"><span class="${s$.title}">${e}</span><span class="${s$.summary}">${n}</span>${r ? `<span class="${s$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", s$.arrow)}</div>`, t = (e, t) => `<div class="${c$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${f$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${f$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function dAe() {
+ let e = (e, t, n, r = "") => `<div class="${o$.face}"><span class="${o$.icon}">${Ts(t, "size-5")}</span><span class="${o$.body}"><span class="${o$.title}">${e}</span><span class="${o$.summary}">${n}</span>${r ? `<span class="${o$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", o$.arrow)}</div>`, t = (e, t) => `<div class="${s$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${d$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${d$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${l$}">${[
+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${c$}">${[
["人工复核", "square-check-big"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${sAe()}</div>
- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${o$}">${r(!1)}</div></section>
- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${o$}">${r(!0)}</div></section>
+ <div id="libraryProcessing" class="scroll-mt-20">${lAe()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${a$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${a$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var uAe = SU({
+var fAe = xU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), dAe = "border-t border-border-button-default p-4 first:border-t-0";
-function fAe({ id: e, children: t }) {
+}), pAe = "border-t border-border-button-default p-4 first:border-t-0";
+function mAe({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function g$({ id: e, gap: t = "none", children: n }) {
+function h$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function _$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function g$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: a$(e),
+ className: i$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: r$[e],
+ className: n$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: i$[e],
+ className: r$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function v$({ className: e, ...t }) {
+function _$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: q("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function y$({ title: e, href: t, children: n }) {
+function v$({ title: e, href: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(v$, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(_$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -69277,23 +69287,23 @@ function y$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var pAe = {
+var hAe = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function b$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(GU, {
+function y$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(WU, {
"data-status-tone": e,
variant: "caption",
- color: pAe[e],
+ color: hAe[e],
...t
});
}
// src/react/components/path-line.tsx
-function mAe({ className: e }) {
+function gAe({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69306,8 +69316,8 @@ function mAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var hAe = "打开文件管理器失败,请重试";
-function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var _Ae = "打开文件管理器失败,请重试";
+function b$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
l.current = !1;
@@ -69318,7 +69328,7 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
try {
await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");
} catch (e) {
- l.current && c(e instanceof sr ? e.message : hAe);
+ l.current && c(e instanceof sr ? e.message : _Ae);
} finally {
l.current && o(!1);
}
@@ -69333,12 +69343,12 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(oL, {
- icon: mAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: gAe,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...mV(a)
+ ...pV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69348,7 +69358,7 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function gAe(e, t) {
+async function vAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69371,69 +69381,69 @@ async function gAe(e, t) {
rows: n
}, null, 2);
}
-function _Ae(e, t) {
+function yAe(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 vAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", yAe = (e) => {
+var bAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xAe = (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(",")}。`;
-}, bAe = (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} 部视频预览。` : "") + yAe(e);
-function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = eve(e), o = mH(), s = mH(), [c, l] = (0, F.useState)(""), u = eH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = Z_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && tH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = QV(e), y = zV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(XV, {
+}, SAe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + xAe(e);
+function CAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = tve(e), o = pH(), s = pH(), [c, l] = (0, F.useState)(""), u = $V(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = Q_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && eH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = ZV(e), y = RV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(YV, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(ZV, n), l(t ? e.job_id : "");
+ H.setQueryData(XV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!o.busy),
- onClick: () => void o.run("export", (t) => gAe(e, t), (t) => {
- _Ae(e.job_id, t), i("已导出问题清单");
+ ...pV(!!o.busy),
+ onClick: () => void o.run("export", (t) => vAe(e, t), (t) => {
+ yAe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? nH : "",
+ m ? tH : "",
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)(rve, {
+ v ? /* @__PURE__ */ (0, I.jsx)(ive, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "warning",
title: "处理较慢",
- children: vAe
+ children: bAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "success",
title: "处理完成",
- children: bAe(n)
+ children: SAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(cV, {
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)(pH, {
- href: rH,
+ m ? /* @__PURE__ */ (0, I.jsx)(fH, {
+ href: nH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69447,7 +69457,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...mV(!!s.busy),
+ ...pV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69455,7 +69465,7 @@ function xAe({ 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)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(LH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69463,7 +69473,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: /* @__PURE__ */ (0, I.jsx)("ul", {
ref: y,
className: "max-h-96 overflow-y-auto",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(y$, {
+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(v$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69479,7 +69489,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(x$, {
+ children: /* @__PURE__ */ (0, I.jsx)(b$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69492,70 +69502,70 @@ function xAe({ 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)(lV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!s.busy),
+ ...pV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function S$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = TH(e), o = It({
- mutationFn: (e) => V(XV, e),
+function x$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = wH(e), o = It({
+ mutationFn: (e) => V(YV, e),
onSuccess: (e) => {
- a(), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+ a(), H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = eU(c), u = o.error ? lr(o.error) : r.isError ? r.data ? sH : lr(r.error) : "", d = o.isPending || eH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = $H(c), u = o.error ? lr(o.error) : r.isError ? r.data ? oH : lr(r.error) : "", d = o.isPending || $V(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(_$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(g$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/sources",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(fH, {
href: "/review",
size: "small",
- trailingIcon: vB,
+ trailingIcon: _B,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(AK, {
+ /* @__PURE__ */ (0, I.jsx)(kK, {
scan: !0,
busy: o.isPending,
- occupied: eH(s),
+ occupied: $V(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(Y_e(s))
+ onOccupied: () => t(X_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69565,7 +69575,7 @@ function S$(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)(g$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(h$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(WU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69573,31 +69583,31 @@ function S$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (eH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && ($V(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => $H(c, !0),
+ onClick: () => QH(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: u$
+ children: l$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(b$, { children: "已暂停" })
- }) : eH(s) ? /* @__PURE__ */ (0, I.jsx)(dve, { state: s }) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(y$, { children: "已暂停" })
+ }) : $V(s) ? /* @__PURE__ */ (0, I.jsx)(fve, { state: s }) : null,
+ $V(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: iH(s)
+ children: rH(s)
}) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)(KH, { traffic: s.traffic }) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)(wH, { state: s }) : null
+ $V(s) ? /* @__PURE__ */ (0, I.jsx)(GH, { traffic: s.traffic }) : null,
+ $V(s) ? /* @__PURE__ */ (0, I.jsx)(CH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(xAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(CAe, {
state: s,
problem: u,
settled: i,
@@ -69612,32 +69622,32 @@ function S$(e) {
});
}
// src/react/playlists/playlists.ts
-var SAe = "/api/playlists", C$ = "/api/playlist", w$ = ["playlists"], T$ = (e) => B(SAe, e);
-async function CAe(e) {
+var wAe = "/api/playlists", S$ = "/api/playlist", C$ = ["playlists"], w$ = (e) => B(wAe, e);
+async function TAe(e) {
await H.fetchQuery({
- queryKey: w$,
- queryFn: () => T$(e),
+ queryKey: C$,
+ queryFn: () => w$(e),
staleTime: 0
});
}
-var wAe = () => H.invalidateQueries({
- queryKey: w$,
+var EAe = () => H.invalidateQueries({
+ queryKey: C$,
exact: !0
-}), TAe = (e) => e.current_asset_id || e.preview_asset_id || null, EAe = (e) => `/poster?id=${e}&c=4`, DAe = (e) => V(C$, {
+}), DAe = (e) => e.current_asset_id || e.preview_asset_id || null, OAe = (e) => `/poster?id=${e}&c=4`, kAe = (e) => V(S$, {
action: "create",
name: e,
asset_ids: []
-}), OAe = (e, t) => V(C$, {
+}), AAe = (e, t) => V(S$, {
action: "rename",
id: e,
name: t
-}), kAe = (e) => V(C$, {
+}), jAe = (e) => V(S$, {
action: "delete",
id: e
-}), AAe = (e) => B(`${C$}?id=${e}`).catch(() => null);
-function jAe(e) {
+}), MAe = (e) => B(`${S$}?id=${e}`).catch(() => null);
+function NAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(C$, {
+ return V(S$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69646,9 +69656,13 @@ function jAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var E$ = "/api/custom-metadata", D$ = ["custom-metadata"], O$ = (e) => B(E$, e), MAe = "/api/scraping", NAe = "/api/scraping/settings", PAe = "/api/scraping/check", k$ = "/api/scraping/cover", FAe = "/api/scraping/amane-bridge", IAe = "/api/scraping/amane-bridge/check", LAe = "/api/scraping/amane-bridge/rebuild", A$ = ["scraping"], j$ = ["scraping", "cover"], M$ = ["scraping", "amane-bridge"], RAe = 262144, N$ = (e) => B(MAe, e), P$ = (e) => B(k$, e), F$ = (e) => B(FAe, e);
-async function zAe(e) {
+var T$ = "/api/custom-metadata", E$ = ["custom-metadata"], D$ = (e) => B(T$, e), PAe = "/api/scraping", FAe = "/api/scraping/settings", IAe = "/api/scraping/check", O$ = "/api/scraping/cover", LAe = "/api/scraping/amane-bridge", RAe = "/api/scraping/amane-bridge/check", zAe = "/api/scraping/amane-bridge/rebuild", k$ = ["scraping"], A$ = ["scraping", "cover"], j$ = ["scraping", "amane-bridge"], BAe = 262144, M$ = (e) => B(PAe, e), N$ = (e) => B(O$, e), P$ = (e) => B(LAe, e);
+async function VAe(e) {
await Promise.all([
+ H.fetchQuery({
+ queryKey: k$,
+ queryFn: () => M$(e)
+ }),
H.fetchQuery({
queryKey: A$,
queryFn: () => N$(e)
@@ -69658,32 +69672,28 @@ async function zAe(e) {
queryFn: () => P$(e)
}),
H.fetchQuery({
- queryKey: M$,
- queryFn: () => F$(e)
- }),
- H.fetchQuery({
- queryKey: D$,
- queryFn: () => O$(e)
+ queryKey: E$,
+ queryFn: () => D$(e)
})
]);
}
-function BAe(e, t) {
+function HAe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
-var I$ = /* @__PURE__ */ new Set([
+var F$ = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), L$ = /* @__PURE__ */ new Set([
+]), I$ = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
]);
-function R$(e) {
+function L$(e) {
let t = e.pool ?? [], n = Math.min(e.size ?? e.items.length, t.length);
if (t.length <= n) return e;
let r = ((e.offset ?? 0) + n) % t.length;
@@ -69693,15 +69703,15 @@ function R$(e) {
items: Array.from({ length: n }, (e, n) => t[(r + n) % t.length])
};
}
-var z$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+var R$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function UAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || z$(t).includes(z$(e)));
+ }, d = t.filter((t) => !e || R$(t).includes(R$(e)));
if (!e) {
if (s.length) {
let e = ({ pending: e, pool: t, offset: n, size: r, ...i }) => ({
@@ -69712,9 +69722,9 @@ function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: i.kind,
item: e
})),
- pending: e ? L$.has(i.kind) ? 5 : 3 : void 0,
+ pending: e ? I$.has(i.kind) ? 5 : 3 : void 0,
shuffle: (t?.length ?? 0) > i.items.length || void 0
- }), t = s.filter((e) => !L$.has(e.kind)).map(e);
+ }), t = s.filter((e) => !I$.has(e.kind)).map(e);
return d.length && t.push({
label: "搜索记录",
options: d.map((e) => u({
@@ -69725,7 +69735,7 @@ function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
tabs: null,
recent: null,
left: t,
- right: s.filter((e) => L$.has(e.kind)).map(e),
+ right: s.filter((e) => I$.has(e.kind)).map(e),
empty: !1,
options: l
};
@@ -69775,7 +69785,7 @@ function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !L$.has(e.kind)).map(h), _ = m.filter((e) => L$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !I$.has(e.kind)).map(h), _ = m.filter((e) => I$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -69785,16 +69795,16 @@ function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function HAe(e, t, n = Math.random) {
+function WAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => z$(t) === z$(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => R$(t) === R$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var UAe = () => ({
+var GAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69820,7 +69830,7 @@ var UAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), B$ = (e) => VAe({
+}), z$ = (e) => UAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69829,27 +69839,27 @@ var UAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), WAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), V$ = 4e3, GAe = 5e3, H$ = 1200;
-function KAe(e) {
+}), KAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), B$ = 4e3, qAe = 5e3, V$ = 1200;
+function JAe(e) {
if (window.requestIdleCallback) {
- let t = window.requestIdleCallback(e, { timeout: V$ });
+ let t = window.requestIdleCallback(e, { timeout: B$ });
return () => window.cancelIdleCallback(t);
}
- let t = window.setTimeout(e, V$);
+ let t = window.setTimeout(e, B$);
return () => window.clearTimeout(t);
}
-var U$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var H$ = ({ 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 qAe(e) {
+function YAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= UAe();
+ n.current ??= GAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= YAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= ZAe(() => 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 = () => {
@@ -69860,7 +69870,7 @@ function qAe(e) {
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);
let l = { close: s.close };
t.current.expose(l), s.warm();
- let u = window.setInterval(s.rotatePlaceholder, GAe);
+ let u = window.setInterval(s.rotatePlaceholder, qAe);
return () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), window.clearInterval(u), r.cancelRoll(), r.recommendationRequest++, t.current.expose(null);
};
@@ -69868,7 +69878,7 @@ function qAe(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 = B$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(ZAe, {
+ let c = z$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)($Ae, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69877,7 +69887,7 @@ function qAe(e) {
onRemove: s.remove
}, `${t.type}:${t.value}:${t.index}`), d = (e) => e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: K$,
+ onMouseDown: G$,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -69894,15 +69904,15 @@ function qAe(e) {
"aria-label": `${e.label}换一批`,
title: "换一批",
"aria-busy": f(e.kind) || void 0,
- onMouseDown: K$,
+ onMouseDown: G$,
onClick: () => s.reshuffle(e.kind),
- children: /* @__PURE__ */ (0, I.jsx)(U$, { name: "shuffle" })
+ children: /* @__PURE__ */ (0, I.jsx)(H$, { name: "shuffle" })
}), d(e)]
}) : d(e)] }),
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: JAe(e)
+ children: XAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69916,7 +69926,7 @@ function qAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(XAe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(QAe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69942,7 +69952,7 @@ function qAe(e) {
]
});
}
-function W$(e, t) {
+function U$(e, t) {
let n = e.flatMap((e) => e.items.flatMap((e) => [
e.card ? t.coverHtml(e.card) : "",
e.avatarHtml || "",
@@ -69954,9 +69964,9 @@ function W$(e, t) {
t && (new Image().src = t);
}
}
-var G$ = "\xA0";
-function JAe(e) {
- let t = L$.has(e.kind ?? "");
+var W$ = "\xA0";
+function XAe(e) {
+ let t = I$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
"data-search-placeholder": "",
@@ -69968,10 +69978,10 @@ function JAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: G$
+ children: W$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: G$
+ children: W$
})]
})]
}, n) : /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69982,15 +69992,15 @@ function JAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: G$
+ children: W$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: G$
+ children: W$
})]
})]
}, n));
}
-function YAe(e, t, n, r) {
+function ZAe(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 () => {
@@ -70001,7 +70011,7 @@ function YAe(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => z$(e) !== z$(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => R$(e) !== R$(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = (n) => {
let r = i();
r.dataset.suggestion = n, t.cancelRoll();
@@ -70026,7 +70036,7 @@ function YAe(e, t, n, r) {
t.recommendationLoading = !0;
let r = t.recommendationRequest;
n.recommendations().then(({ groups: n, words: o }) => {
- r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, W$(n.map(R$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, W$(n, e().helpers)));
+ r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, U$(n.map(L$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, U$(n, e().helpers)));
}, () => {
r === t.recommendationRequest && t.recommendationsFilling && (t.recommendations = [], t.recommendationsFilling = !1, a() && !i().value.trim() && x());
}).finally(() => {
@@ -70034,18 +70044,18 @@ function YAe(e, t, n, r) {
});
}, m = () => {
let n = e().helpers;
- n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, W$(t.recommendations.map(R$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
+ n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, U$(t.recommendations.map(L$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = KAe(() => {
+ t.cancelIdle(), t.cancelIdle = JAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
- t.recommendations = t.recommendations.map((e) => e.kind === n ? R$(e) : e), t.shuffled = {
+ t.recommendations = t.recommendations.map((e) => e.kind === n ? L$(e) : e), t.shuffled = {
...t.shuffled,
- [n]: Date.now() + H$
- }, window.setTimeout(r, H$);
+ [n]: Date.now() + V$
+ }, window.setTimeout(r, V$);
let i = t.recommendations.find((e) => e.kind === n);
- i && W$([R$(i)], e().helpers), r();
+ i && U$([L$(i)], e().helpers), r();
}, v = async (e, n = "") => {
let r = ++t.suggestRequest;
n || (t.asked = e);
@@ -70072,9 +70082,9 @@ function YAe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, h(), r();
}, x = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : HAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : WAe(t.pool, o()), t.active = -1;
let a = n();
- a && (WAe(B$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (KAe(z$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70086,7 +70096,7 @@ function YAe(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), x(), t.rewind = !0, v(n, e).then(() => {
a() && t.kind === e && x();
}));
- }, w = () => y() ? B$(t).options : [], T = (e) => {
+ }, w = () => y() ? z$(t).options : [], T = (e) => {
let n = w();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, E = (t, n) => {
@@ -70095,16 +70105,16 @@ function YAe(e, t, n, r) {
}, D = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, O = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && I$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && F$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
}, k = (t) => {
b(), i().blur(), e().actions.openPath?.(t);
};
return {
input: (n) => {
- t.cancelRoll(), !eW(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !$U(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (eW(n)) return;
+ if ($U(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70141,7 +70151,7 @@ function YAe(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => z$(t) !== z$(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => R$(t) !== R$(e))), t.active = -1, r();
},
pickKind: C,
openPath: k,
@@ -70151,7 +70161,7 @@ function YAe(e, t, n, r) {
rotatePlaceholder: d
};
}
-function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function QAe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70165,9 +70175,9 @@ function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(hW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(mW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(FI, {
+ return /* @__PURE__ */ (0, I.jsxs)(LI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70176,9 +70186,9 @@ function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var K$ = (e) => e.preventDefault();
-function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- rL();
+var G$ = (e) => e.preventDefault();
+function $Ae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ aL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70190,33 +70200,33 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: K$,
+ onMouseDown: G$,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(U$, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(H$, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(U$, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(H$, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: K$,
+ onMouseDown: G$,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(U$, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(H$, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = I$.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = F$.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -70230,8 +70240,8 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: K$,
- children: [/* @__PURE__ */ (0, I.jsx)(q$, {
+ onMouseDown: G$,
+ children: [/* @__PURE__ */ (0, I.jsx)(K$, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70260,9 +70270,9 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: K$,
+ onMouseDown: G$,
children: [
- /* @__PURE__ */ (0, I.jsx)(J$, {
+ /* @__PURE__ */ (0, I.jsx)(q$, {
item: s,
kind: c
}),
@@ -70285,11 +70295,11 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: K$,
+ onMouseDown: G$,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(q$, {
+ children: /* @__PURE__ */ (0, I.jsx)(K$, {
card: e,
helpers: n
})
@@ -70303,7 +70313,7 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(J$, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(q$, {
item: s,
kind: c
}) : null,
@@ -70316,13 +70326,13 @@ function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function q$({ card: e, helpers: t }) {
+function K$({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function J$({ item: e, kind: t }) {
+function q$({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -70341,24 +70351,24 @@ function J$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var Y$ = ["configuration"], X$ = (e) => B(HY, e);
-async function QAe(e) {
+var J$ = ["configuration"], Y$ = (e) => B(VY, e);
+async function eje(e) {
await H.fetchQuery({
- queryKey: Y$,
- queryFn: () => X$(e)
+ queryKey: J$,
+ queryFn: () => Y$(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var Z$ = (e) => e.map(([e, t, n]) => n ? [
+var X$ = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function Q$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function Z$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, Z$(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, X$(r), i, {
attr: a,
className: o,
text: s
@@ -70376,13 +70386,13 @@ function Q$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function $$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function Q$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
return m.current = l, (0, F.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = ms(Z$(n), r, { label: t });
+ e.innerHTML = ms(X$(n), r, { label: t });
let i = hs(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -70395,7 +70405,7 @@ function $$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function $Ae({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function tje({ 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
@@ -70429,7 +70439,7 @@ function $Ae({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var eje = [
+var nje = [
[
"strength",
"强度",
@@ -70456,8 +70466,8 @@ var eje = [
100
]
];
-function tje({ host: e, spot: t, index: n, glow: r }) {
- let i = hle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = zV(), [l, u] = (0, F.useState)("all");
+function rje({ host: e, spot: t, index: n, glow: r }) {
+ let i = ple[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = RV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70470,7 +70480,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = qj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
+ r[t].color = Yj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70495,7 +70505,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70507,7 +70517,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: vle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: gle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70521,7 +70531,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: yle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: _le.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70538,8 +70548,8 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function nje({ host: e }) {
- let t = e.store.value.homeGlow, n = Bj(t.preset);
+function ije({ host: e }) {
+ let t = e.store.value.homeGlow, n = Hj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70558,10 +70568,10 @@ function nje({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: gle(t.preset)
+ children: mle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(LM, {
+ /* @__PURE__ */ (0, I.jsx)(zM, {
store: e.store,
label: "光晕配色"
}),
@@ -70572,7 +70582,7 @@ function nje({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: eje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)($Ae, {
+ children: nje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(tje, {
field: r,
label: i,
max: a,
@@ -70593,7 +70603,7 @@ function nje({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Yj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Zj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70612,7 +70622,7 @@ function nje({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Lj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(tje, {
+ children: zj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(rje, {
host: e,
spot: n,
index: r,
@@ -70624,7 +70634,7 @@ function nje({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var rje = {
+var aje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70671,22 +70681,22 @@ var rje = {
optional: !0,
fallback: 60
}
-}, e1 = (e) => `peach.number.${e}`;
-function t1(e, t) {
+}, $$ = (e) => `peach.number.${e}`;
+function e1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = rje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Ej(Number(localStorage.getItem(e1(e))), o, s, n && n > 0 ? n : l);
+function t1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = aje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Oj(Number(localStorage.getItem($$(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(e1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem($$(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -70696,7 +70706,7 @@ function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(e1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem($$(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-number-setting": "",
@@ -70733,7 +70743,7 @@ function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, t1(Number(m), c) ? ` · ${t1(Number(m), c)}` : ""]
+ children: [c, e1(Number(m), c) ? ` · ${e1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -70746,7 +70756,7 @@ function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function ije({ className: e, ref: t, ...n }) {
+function oje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: q("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
@@ -70754,7 +70764,7 @@ function ije({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function aje({ keys: e, plus: t }) {
+function sje({ keys: e, plus: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-keycaps": "",
children: e.map((e, n) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t && n ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -70769,15 +70779,15 @@ function aje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var r1 = "peach.sfw-shortcut", oje = "Shift+KeyS", i1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, sje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, cje = /* @__PURE__ */ new Set([
+var n1 = "peach.sfw-shortcut", cje = "Shift+KeyS", r1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, lje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, uje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
"KeyQ"
]);
-function a1(e) {
+function i1(e) {
let t = String(e || "").split("+"), n = t.pop() || "", r = new Set(t);
- if (!i1.test(n) || [...r].some((e) => ![
+ if (!r1.test(n) || [...r].some((e) => ![
"Ctrl",
"Alt",
"Shift",
@@ -70790,9 +70800,9 @@ function a1(e) {
shift: r.has("Shift"),
meta: r.has("Meta")
};
- return s1(i) ? null : i;
+ return o1(i) ? null : i;
}
-function o1(e) {
+function a1(e) {
return [
e.ctrl && "Ctrl",
e.alt && "Alt",
@@ -70801,15 +70811,15 @@ function o1(e) {
e.code
].filter(Boolean).join("+");
}
-function s1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && cje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+function o1(e) {
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && uje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
}
-function c1(e) {
- return sje.test(e);
+function s1(e) {
+ return lje.test(e);
}
-function lje(e) {
- if (c1(e.code)) return { state: "waiting" };
- if (!i1.test(e.code)) return {
+function dje(e) {
+ if (s1(e.code)) return { state: "waiting" };
+ if (!r1.test(e.code)) return {
state: "invalid",
problem: "只支持字母、数字和 F1–F12 作主键"
};
@@ -70819,7 +70829,7 @@ function lje(e) {
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
- }, n = s1(t);
+ }, n = o1(t);
return n ? {
state: "invalid",
problem: n
@@ -70828,13 +70838,13 @@ function lje(e) {
shortcut: t
};
}
-function uje(e, t) {
+function fje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
-function l1(e = navigator) {
+function c1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var dje = {
+var pje = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70845,10 +70855,10 @@ var dje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function fje(e) {
- return dje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function mje(e) {
+ return pje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
-function u1(e, t, n = l1()) {
+function l1(e, t, n = c1()) {
let r = n ? [
"⌃",
"⌥",
@@ -70865,30 +70875,30 @@ function u1(e, t, n = l1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [fje(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [mje(t)] : []];
}
-function d1(e, t = l1()) {
- return u1(e, e.code, t).join(t ? "" : "+");
+function u1(e, t = c1()) {
+ return l1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var pje = 600, f1 = {
+var hje = 600, d1 = {
ctrl: !1,
alt: !1,
shift: !1,
meta: !1
-}, p1 = (e) => ({
+}, f1 = (e) => ({
ctrl: e.ctrlKey,
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
});
-function mje({ current: e, onChange: t }) {
+function gje({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
- modifiers: f1,
+ modifiers: d1,
code: null
}), [c, l] = (0, F.useState)(null), u = () => {
r(!1), a(""), s({
- modifiers: f1,
+ modifiers: d1,
code: null
});
};
@@ -70899,16 +70909,16 @@ function mje({ current: e, onChange: t }) {
u();
return;
}
- let n = c1(e.code);
+ let n = s1(e.code);
s({
- modifiers: p1(e),
+ modifiers: f1(e),
code: n ? null : e.code
}), a("");
- let r = lje(e);
+ let r = dje(e);
r.state === "invalid" && a(r.problem), r.state === "done" && (t(r.shortcut), l(r.shortcut), u());
}, r = (e) => {
e.stopPropagation(), s((t) => t.code === null ? {
- modifiers: p1(e),
+ modifiers: f1(e),
code: null
} : t);
};
@@ -70917,16 +70927,16 @@ function mje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), pje);
+ let e = window.setTimeout(() => l(null), hje);
return () => window.clearTimeout(e);
}, [c]);
- let d = l1(), f = (e, t, n) => u1(e, t, d).map((e) => ({
+ let d = c1(), f = (e, t, n) => l1(e, t, d).map((e) => ({
label: e,
state: n
})), p = (e) => ({
label: e,
state: "slot"
- }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = o1(e) !== oje, _ = c ? `已改为 ${d1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
+ }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = a1(e) !== cje, _ = c ? `已改为 ${u1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: "SFW 快捷键" }), /* @__PURE__ */ (0, I.jsx)("small", {
@@ -70937,13 +70947,13 @@ function mje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(aje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(sje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(ije, {
+ }) : /* @__PURE__ */ (0, I.jsx)(oje, {
"data-shortcut-keys": "",
- "aria-label": `当前快捷键 ${d1(e, d)}`,
- children: d1(e, d)
+ "aria-label": `当前快捷键 ${u1(e, d)}`,
+ children: u1(e, d)
}),
g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -70966,13 +70976,13 @@ function mje({ current: e, onChange: t }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function m1(e) {
+function p1(e) {
let { mutate: t } = $Y();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function h1(e, t, n, r) {
+function m1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -70981,17 +70991,17 @@ function h1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var hje = "__home__", g1 = (e) => e === "" ? hje : e;
-function gje({ host: e }) {
- let t = m1(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 = h1(n, e, r, i);
+var _je = "__home__", h1 = (e) => e === "" ? _je : e;
+function vje({ host: e }) {
+ let t = p1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
+ let a = m1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => g1(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => h1(e) === o) ?? a[0], y = () => {
h.current && ls(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -71012,7 +71022,7 @@ function gje({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", g1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", h1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -71044,9 +71054,9 @@ function gje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71060,7 +71070,7 @@ function gje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71070,7 +71080,7 @@ function gje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71082,11 +71092,11 @@ function gje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "eye-off" })
})
]
})]
- }, g1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, h1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -71102,13 +71112,13 @@ function gje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(HF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71119,15 +71129,15 @@ function gje({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": g1(e),
+ "data-sidebar-add-option": h1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(g1(e)), y(), m.current?.focus();
+ s(h1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, g1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, h1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71143,13 +71153,13 @@ function gje({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var _1 = [
+var g1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], _je = [
+], yje = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71158,7 +71168,7 @@ var _1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], vje = [["desc", "降序"], ["asc", "升序"]], yje = [[
+], bje = [["desc", "降序"], ["asc", "升序"]], xje = [[
"cover",
"官方封面",
""
@@ -71166,7 +71176,7 @@ var _1 = [
"thumbnail",
"预览图",
""
-]], bje = [
+]], Sje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71185,88 +71195,88 @@ var _1 = [
"切片",
"隐藏切片"
]
-], xje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
+], Cje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", _1 = null, v1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, b1 = 0, x1 = null, S1 = /* @__PURE__ */ new Set();
-function Sje(e) {
- return S1.add(e), () => {
- S1.delete(e);
+}, y1 = 0, b1 = null, x1 = /* @__PURE__ */ new Set();
+function wje(e) {
+ return x1.add(e), () => {
+ x1.delete(e);
};
}
-function Cje() {
- for (let e of [...S1]) e();
+function Tje() {
+ for (let e of [...x1]) e();
}
-function C1(e) {
- y1 = {
- ...y1,
+function S1(e) {
+ v1 = {
+ ...v1,
...e
- }, (0, Rt.flushSync)(Cje);
+ }, (0, Rt.flushSync)(Tje);
}
-async function wje(e) {
- let t = y1.epoch, n = await e.configurable();
- y1.open && y1.epoch === t && C1({ configurable: n });
+async function Eje(e) {
+ let t = v1.epoch, n = await e.configurable();
+ v1.open && v1.epoch === t && S1({ configurable: n });
}
-function Tje(e = "") {
- let t = v1;
+function Dje(e = "") {
+ let t = _1;
if (!t) return;
- let n = _1.findIndex(([t]) => t === e);
- if (y1.open && !y1.closing) {
- n >= 0 && n !== y1.tab && C1({ tab: n });
+ let n = g1.findIndex(([t]) => t === e);
+ if (v1.open && !v1.closing) {
+ n >= 0 && n !== v1.tab && S1({ tab: n });
return;
}
- os(), b1 += 1, x1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = XTe();
- C1({
+ os(), y1 += 1, b1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = ZTe();
+ S1({
open: !0,
closing: !1,
configurable: null,
- epoch: y1.epoch + 1,
- tab: n >= 0 ? n : y1.tab
+ epoch: v1.epoch + 1,
+ tab: n >= 0 ? n : v1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), wje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Eje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function w1(e = !0) {
- if (!y1.open || y1.closing) return;
- let t = ++b1;
- e && v1?.closed?.(), C1({ closing: !0 });
+function C1(e = !0) {
+ if (!v1.open || v1.closing) return;
+ let t = ++y1;
+ e && _1?.closed?.(), S1({ closing: !0 });
let n = () => {
- t === b1 && y1.closing && (C1({
+ t === y1 && v1.closing && (S1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), x1 instanceof HTMLElement && document.contains(x1) && x1.focus(), x1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), b1 instanceof HTMLElement && document.contains(b1) && b1.focus(), b1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Eje = {
- open: Tje,
- close: w1,
- isOpen: () => y1.open,
+var Oje = {
+ open: Dje,
+ close: C1,
+ isOpen: () => v1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Dje(e) {
- return v1 = e, Eje;
+function kje(e) {
+ return _1 = e, Oje;
}
-function Oje() {
- let e = (0, F.useSyncExternalStore)(Sje, () => y1);
- return v1 ? /* @__PURE__ */ (0, I.jsx)(jje, {
- host: v1,
+function Aje() {
+ let e = (0, F.useSyncExternalStore)(wje, () => v1);
+ return _1 ? /* @__PURE__ */ (0, I.jsx)(Nje, {
+ host: _1,
view: e
}) : null;
}
-function kje(e) {
+function jje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(xje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Cje)].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 T1 = (e) => `settings-tab-${e}`, E1 = (e) => `settings-group-${e}`;
-function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var w1 = (e) => `settings-tab-${e}`, T1 = (e) => `settings-group-${e}`;
+function Mje({ 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;
@@ -71294,7 +71304,7 @@ function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = _1.length, r = t;
+ let n = g1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -71323,11 +71333,11 @@ function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- _1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ g1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: T1(r),
- "aria-controls": E1(r),
+ id: w1(r),
+ "aria-controls": T1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -71338,7 +71348,7 @@ function Aje({ 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)(HF, { name: n }) : /* @__PURE__ */ (0, I.jsx)($de, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(WF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Zde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71349,27 +71359,27 @@ function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-right" })
]
})
})
]
});
}
-function D1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function E1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: E1(e),
+ id: T1(e),
role: "tabpanel",
- "aria-labelledby": T1(e),
+ "aria-labelledby": w1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: _1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: g1[e][0] }), n]
});
}
-function O1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function D1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, I.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
@@ -71386,7 +71396,7 @@ function O1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function k1({ title: e, description: t, kind: n, children: r }) {
+function O1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -71394,7 +71404,7 @@ function k1({ 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 jje({ host: e, view: t }) {
+function Nje({ 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];
@@ -71415,7 +71425,7 @@ function jje({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== y1.tab && (C1({ tab: t }), e.selectSection?.(_1[t][0]));
+ t !== v1.tab && (S1({ tab: t }), e.selectSection?.(g1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -71426,9 +71436,9 @@ function jje({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: kje,
+ onKeyDown: jje,
onClick: (e) => {
- e.target === e.currentTarget && w1();
+ e.target === e.currentTarget && C1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -71439,27 +71449,27 @@ function jje({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: _1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ children: g1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(fV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => w1()
+ onPress: () => C1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Aje, {
+ /* @__PURE__ */ (0, I.jsx)(Mje, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- w1(!1), e.openConfiguration();
+ C1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(D1, {
+ /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -71467,9 +71477,9 @@ function jje({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(Q$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Z$, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -71497,7 +71507,7 @@ function jje({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(O1, {
+ /* @__PURE__ */ (0, I.jsx)(D1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -71505,7 +71515,7 @@ function jje({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(O1, {
+ /* @__PURE__ */ (0, I.jsx)(D1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -71515,7 +71525,7 @@ function jje({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(nje, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(ije, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71527,35 +71537,35 @@ function jje({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(gje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(vje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Nje, {
+ /* @__PURE__ */ (0, I.jsx)(Fje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(Pje, {
+ /* @__PURE__ */ (0, I.jsx)(Ije, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(D1, {
+ /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Rje, {
+ /* @__PURE__ */ (0, I.jsx)(Bje, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -71565,31 +71575,31 @@ function jje({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
href: "/taste",
- onClick: () => w1(!1),
+ onClick: () => C1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(D1, {
+ /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 4,
tab: t.tab,
- children: [/* @__PURE__ */ (0, I.jsx)(O1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(D1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(mje, {
+ }), /* @__PURE__ */ (0, I.jsx)(gje, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71600,7 +71610,7 @@ function jje({ host: e, view: t }) {
})
});
}
-function Mje(e, t) {
+function Pje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
@@ -71610,9 +71620,9 @@ function Mje(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Nje({ host: e, tab: t, epoch: n }) {
+function Fje({ 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)(D1, {
+ return /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 1,
tab: t,
children: [
@@ -71620,11 +71630,11 @@ function Nje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -71634,24 +71644,24 @@ function Nje({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)($$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Q$, {
id: "defaultSortSetting",
label: "默认排序",
- options: _je,
+ options: yje,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)($$, {
+ }), /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: vje,
+ options: bje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71659,13 +71669,13 @@ function Nje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Mje(e, o)
+ decorate: (e) => Pje(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(Q$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Z$, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -71691,16 +71701,16 @@ function Nje({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Ej(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Oj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71709,16 +71719,16 @@ function Nje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(Lje, {
+ /* @__PURE__ */ (0, I.jsx)(zje, {
host: e,
epoch: n
})
]
});
}
-function Pje({ host: e, tab: t, epoch: n }) {
+function Ije({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(D1, {
+ return /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 2,
tab: t,
children: [
@@ -71726,17 +71736,17 @@ function Pje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(Fje, {
+ /* @__PURE__ */ (0, I.jsx)(Lje, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(Q$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Z$, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: yje,
+ options: xje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71751,21 +71761,21 @@ function Pje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Ej(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Oj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(O1, {
+ /* @__PURE__ */ (0, I.jsx)(D1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -71773,7 +71783,7 @@ function Pje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- bje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Ije, {
+ Sje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Rje, {
host: e,
id: t,
settingKey: n,
@@ -71783,19 +71793,19 @@ function Pje({ host: e, tab: t, epoch: n }) {
]
});
}
-function Fje({ host: e, epoch: t }) {
+function Lje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: JY,
+ queryKey: qY,
queryFn: ({ signal: e }) => QY(e),
staleTime: 0
}), r = $Y(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(k1, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(O1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)($$, {
+ children: /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -71813,12 +71823,12 @@ function Fje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Ije({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function Rje({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = $Y(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Xc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -71843,10 +71853,10 @@ function Ije({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Lje({ host: e, epoch: t }) {
+function zje({ 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)(O1, {
+ /* @__PURE__ */ (0, I.jsx)(D1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -71854,7 +71864,7 @@ function Lje({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(O1, {
+ /* @__PURE__ */ (0, I.jsx)(D1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -71862,11 +71872,11 @@ function Lje({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, I.jsx)(O1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -71878,25 +71888,25 @@ function Lje({ host: e, epoch: t }) {
})
] });
}
-function Rje({ host: e, epoch: t }) {
+function Bje({ host: e, epoch: t }) {
let n = e.store.value, r = $Y();
- return /* @__PURE__ */ (0, I.jsx)(k1, {
+ return /* @__PURE__ */ (0, I.jsx)(O1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(n1, {
+ children: /* @__PURE__ */ (0, I.jsx)(t1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Ej(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Oj(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 zje(e, t, n, r) {
+function Vje(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,
@@ -71931,7 +71941,7 @@ function zje(e, t, n, r) {
let m = (t) => {
let n = c.current;
if (!n || (c.current = null, !n.started)) return;
- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : h1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : m1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, Rt.flushSync)(() => {
a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");
}), d.current.settled();
@@ -71993,7 +72003,7 @@ function zje(e, t, n, r) {
e.preventDefault();
let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];
if (l === void 0) return;
- let u = h1(t, i, l, c);
+ let u = m1(t, i, l, c);
u && (p(), (0, Rt.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());
}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;
return {
@@ -72032,68 +72042,68 @@ function zje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var A1 = "__home__", Bje = {
+var k1 = "__home__", Hje = {
creator: 26,
tag: 30,
tech: 16
-}, j1 = 180, M1 = null, N1 = {
+}, A1 = 180, j1 = null, M1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, P1 = /* @__PURE__ */ new Set();
-function Vje(e) {
- return P1.add(e), () => {
- P1.delete(e);
+}, N1 = /* @__PURE__ */ new Set();
+function Uje(e) {
+ return N1.add(e), () => {
+ N1.delete(e);
};
}
-function F1() {
- for (let e of [...P1]) e();
+function P1() {
+ for (let e of [...N1]) e();
}
-var Hje = {
+var Wje = {
render(e) {
- N1 = {
- ...N1,
+ M1 = {
+ ...M1,
props: e
- }, (0, Rt.flushSync)(F1);
+ }, (0, Rt.flushSync)(P1);
},
navChanged() {
- N1 = {
- ...N1,
- epoch: N1.epoch + 1
- }, (0, Rt.flushSync)(F1);
+ M1 = {
+ ...M1,
+ epoch: M1.epoch + 1
+ }, (0, Rt.flushSync)(P1);
}
};
-function Uje(e) {
- return M1 = e, N1 = {
- ...N1,
+function Gje(e) {
+ return j1 = e, M1 = {
+ ...M1,
props: {
content: null,
filters: {},
latest: null
}
- }, Hje;
+ }, Wje;
}
-function Wje() {
- let e = (0, F.useSyncExternalStore)(Vje, () => N1);
- return M1 ? /* @__PURE__ */ (0, I.jsx)(Gje, {
- host: M1,
+function Kje() {
+ let e = (0, F.useSyncExternalStore)(Uje, () => M1);
+ return j1 ? /* @__PURE__ */ (0, I.jsx)(qje, {
+ host: j1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Gje({ host: e, props: t, epoch: n }) {
+function qje({ 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)(Kje, {
+ /* @__PURE__ */ (0, I.jsx)(Jje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(Jje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(Xje, {
host: e,
content: t.content,
filters: t.filters,
@@ -72101,8 +72111,8 @@ function Gje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Kje({ host: e, epoch: t, version: n }) {
- let r = m1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = gL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Jje({ host: e, epoch: t, version: n }) {
+ let r = p1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = vL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || k1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -72121,7 +72131,7 @@ function Kje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = zje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = Vje(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,
@@ -72157,8 +72167,8 @@ function Kje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(HF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || A1);
+ }) : /* @__PURE__ */ (0, I.jsx)(WF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || k1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -72179,8 +72189,8 @@ function Kje({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var I1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function qje(e) {
+var F1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function Yje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72194,7 +72204,7 @@ function qje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Jje({ host: e, content: t, filters: n, latest: r }) {
+function Xje({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && ec(e.scroll, "drawer");
@@ -72203,8 +72213,8 @@ function Jje({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? Yje(e, t.facets, n, r, i) : Xje(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Zje, {
+ let a = t.kind === "catalog" ? Zje(e, t.facets, n, r, i) : Qje(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)($je, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72213,11 +72223,11 @@ function Jje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function Yje(e, t, n, r, i) {
- let a = qje(r), o = (t, r, i) => {
+function Zje(e, t, n, r, i) {
+ let a = Yje(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = I1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(z1, {
+ let o = F1(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(R1, {
rows: t,
filterKey: r,
multi: i,
@@ -72227,7 +72237,7 @@ function Yje(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = I1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = F1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -72239,12 +72249,12 @@ function Yje(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)($je, {
+ body: /* @__PURE__ */ (0, I.jsx)(tMe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Bje[d],
+ limit: Hje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72259,7 +72269,7 @@ function Yje(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(V1, {
host: e,
filters: n
})
@@ -72274,7 +72284,7 @@ function Yje(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(B1, {
+ body: /* @__PURE__ */ (0, I.jsx)(z1, {
rows: t.followTags,
host: e,
selected: null,
@@ -72283,14 +72293,14 @@ function Yje(e, t, n, r, i) {
} : null
];
}
-function Xje(e, t, n) {
- let r = t.providers || [], i = I1(n, "provider"), a = new Set(t.selected);
+function Qje(e, t, n) {
+ let r = t.providers || [], i = F1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(z1, {
+ body: /* @__PURE__ */ (0, I.jsx)(R1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -72304,7 +72314,7 @@ function Xje(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(V1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -72314,7 +72324,7 @@ function Xje(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(B1, {
+ body: /* @__PURE__ */ (0, I.jsx)(z1, {
rows: t.tags,
host: e,
selected: a,
@@ -72323,19 +72333,19 @@ function Xje(e, t, n) {
} : null
];
}
-function L1(e, t) {
+function I1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function Zje({ 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)(() => L1(e, n)), u = (0, F.useRef)(!1);
+function $je({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => I1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? L1(e, n) : c;
+ let i = u.current ? I1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -72356,7 +72366,7 @@ function Zje({ 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)(HF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72367,7 +72377,7 @@ function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(R1.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(L1.Provider, {
value: d,
children: a
})
@@ -72376,15 +72386,15 @@ function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var R1 = (0, F.createContext)(() => {});
-function Qje({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var L1 = (0, F.createContext)(() => {});
+function eMe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(WF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function R1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -72401,7 +72411,7 @@ function z1({ 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)(Qje, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(eMe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72416,8 +72426,8 @@ function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function $je({ 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)(R1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function tMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, F.useContext)(L1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, F.useLayoutEffect)(() => {
@@ -72432,7 +72442,7 @@ function $je({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Wo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(z1, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(R1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -72457,10 +72467,10 @@ function $je({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
}) : null] });
}
-function B1({ rows: e, host: t, selected: n, badges: r }) {
+function z1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -72482,10 +72492,10 @@ function B1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var V1 = (e, t) => e ? Math.min(j1, Number(e) / 60) : t;
-function H1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [V1(t.dur_min, 0), V1(t.dur_max, j1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([V1(t.dur_min, 0), V1(t.dur_max, j1)]));
+var B1 = (e, t) => e ? Math.min(A1, Number(e) / 60) : t;
+function V1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [B1(t.dur_min, 0), B1(t.dur_max, A1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([B1(t.dur_min, 0), B1(t.dur_max, A1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -72498,11 +72508,11 @@ function H1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / j1 * 100}%`), e.style.setProperty("--hi", `${d / j1 * 100}%`);
+ e.style.setProperty("--lo", `${u / A1 * 100}%`), e.style.setProperty("--hi", `${d / A1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / j1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / A1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -72512,7 +72522,7 @@ function H1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= j1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= A1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -72527,7 +72537,7 @@ function H1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: j1,
+ max: A1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -72538,7 +72548,7 @@ function H1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: j1,
+ max: A1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -72552,7 +72562,7 @@ function H1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function U1() {
+function H1() {
let e = (e) => Os({
label: e,
variant: "secondary",
@@ -72566,11 +72576,11 @@ function U1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", eMe = [
+var U1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", nMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], tMe = [
+], rMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72601,7 +72611,7 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], nMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", rMe = [
+], iMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", W1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", G1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", K1 = "只填域名,留空用默认地址", aMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72691,8 +72701,8 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", iMe = "peach.configuration.shape.v1";
-function Y1() {
+], q1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", oMe = "peach.configuration.shape.v1";
+function J1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -72700,31 +72710,31 @@ function Y1() {
return {};
}
}
-function aMe(e, t) {
+function sMe(e, t) {
try {
- let n = Y1();
+ let n = J1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(iMe, JSON.stringify({
+ localStorage.setItem(oMe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var X1 = (e) => Y1()[e], Z1 = (e) => e === !0, Q1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, $1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], e0 = "disabled data-skeleton-action", t0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, n0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, r0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, i0 = (e = "3em") => r0(e, "24px"), a0 = () => r0("var(--icon-inline)", "var(--icon-inline)"), o0 = (e, t = "primary", n = "medium") => Os({
+var Y1 = (e) => J1()[e], X1 = (e) => e === !0, Z1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, Q1 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], $1 = "disabled data-skeleton-action", e0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, t0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, n0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, r0 = (e = "3em") => n0(e, "24px"), i0 = () => n0("var(--icon-inline)", "var(--icon-inline)"), a0 = (e, t = "primary", n = "medium") => Os({
label: e,
variant: t,
size: n,
- attrs: e0
-}), s0 = (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>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, oMe = (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">${a0()}${e}</span>` : e}</p>`;
+ attrs: $1
+}), o0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, s0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, cMe = (e, t, n) => {
+ let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${i0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${oMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n, r = "") => {
+}, c0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${cMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? o0(n, i) : ""}</div></section>`, l0 = (e, t, n, r = "") => {
let i = `<div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>`;
return `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0">${r ? `<div class="flex min-w-0 items-center gap-3">${r}${i}</div>` : i}${n}</div>`;
-}, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (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>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${As(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, sMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (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">${sMe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, cMe = rMe;
-function lMe(e = X1("credentials")) {
- let t = new Set($1(e?.done, 64, String));
- return cMe.map((e) => {
+}, u0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => l0(e, t, `<span class="skeleton ${n}"></span>`), d0 = (e, t = "", n = "4em") => l0(e, t, e0(n)), f0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, p0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, m0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${t0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, h0 = (e) => `<div class="flex flex-col gap-1">${p0(e)}${As(e0("8em"))}</div>`, g0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${n0("16px", "16px")}${e}</span>`, _0 = (e) => `<span class="inline-flex items-center gap-1">${i0()}${e}</span>`, v0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, lMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), y0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${lMe.has(e) ? e0("100%") + e0("80%") + e0("6em") : e0("6em")}</dd></div>`).join("")}</dl>`, uMe = aMe;
+function dMe(e = Y1("credentials")) {
+ let t = new Set(Q1(e?.done, 64, String));
+ return uMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72733,141 +72743,141 @@ function lMe(e = X1("credentials")) {
};
});
}
-function uMe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = i0() + (n && !e.done ? t.map(() => i0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${r0("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 ? p0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + p0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? p0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => h0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${o0("保存配置")}</div>${y0("凭据文件")}</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>${y0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function fMe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = r0() + (n && !e.done ? t.map(() => r0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${n0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? f0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + f0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? f0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => m0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${a0("保存配置")}</div>${v0("凭据文件")}</div></div>` : "";
+ return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${v0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function x0() {
- let e = lMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return l0("来源凭据", c0(`<div class="flex flex-col gap-4">${[
+function b0() {
+ let e = dMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return c0("来源凭据", s0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(uMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("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(fMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? e0("5em") : "" });
}
-function S0() {
- let e = $1(X1("indexers")?.open, 20, Z1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${t0("6em")}${t0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${h0("名称")}${h0("Torznab 地址")}${h0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${_0("启用")}${o0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return l0("资源搜索", c0(`<div class="flex min-w-0 flex-col gap-4">${y0("索引器连接帮助")}${e}</div>`), o0("添加索引器", "secondary") + o0("保存配置"));
+function x0() {
+ let e = Q1(Y1("indexers")?.open, 20, X1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${e0("6em")}${e0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${m0("名称")}${m0("Torznab 地址")}${m0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${g0("启用")}${a0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return c0("资源搜索", s0(`<div class="flex min-w-0 flex-col gap-4">${v0("索引器连接帮助")}${e}</div>`), a0("添加索引器", "secondary") + a0("保存配置"));
}
-function C0() {
- let e = X1("javBrowser"), t = Z1(e?.enabled);
- return l0("浏览器添加 JAV", c0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${t0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${i0()}</div><p class="text-caption-1-regular text-text-secondary">${t0("70%")}</p><div class="flex flex-wrap items-center gap-2">${o0("重新检测", "secondary")}</div></div>`}${g0("浏览器添加的下载渠道")}${Z1(e?.ready) ? "" : p0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${h0("Peach 地址")}</div>`), (t ? o0("关闭浏览器添加", "secondary") : "") + o0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function S0() {
+ let e = Y1("javBrowser"), t = X1(e?.enabled);
+ return c0("浏览器添加 JAV", s0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${e0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${r0()}</div><p class="text-caption-1-regular text-text-secondary">${e0("70%")}</p><div class="flex flex-wrap items-center gap-2">${a0("重新检测", "secondary")}</div></div>`}${h0("浏览器添加的下载渠道")}${X1(e?.ready) ? "" : f0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${m0("Peach 地址")}</div>`), (t ? a0("关闭浏览器添加", "secondary") : "") + a0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var w0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${m0(e)}${As(t0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${h0(`${e}地址`)}</div><div class="w-full sm:w-28">${h0(`${e}端口`)}</div></div>${y0("代理认证")}` : "") + "</div>";
-function T0() {
- let e = X1("cloudProxy"), t = $1(e?.accounts, 12, (e) => Array.isArray(e) ? [Z1(e[0]), Z1(e[1])] : [!1, !1]), n = Q1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${m0(v0(t0("6em")))}${p0(t0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${m0(v0(t0("8em")))}${p0(t0("50%"))}${w0("数据代理", e)}${w0("API 代理", t)}<div class="flex justify-end">${o0("保存配置")}</div></div>`).join("") : p0(t0("60%"));
- return l0("CloudDrive 代理", c0(`${p0(J1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), o0("重新读取", "secondary"));
+var C0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${p0(e)}${As(e0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${m0(`${e}地址`)}</div><div class="w-full sm:w-28">${m0(`${e}端口`)}</div></div>${v0("代理认证")}` : "") + "</div>";
+function w0() {
+ let e = Y1("cloudProxy"), t = Q1(e?.accounts, 12, (e) => Array.isArray(e) ? [X1(e[0]), X1(e[1])] : [!1, !1]), n = Z1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${p0(_0(e0("6em")))}${f0(e0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${p0(_0(e0("8em")))}${f0(e0("50%"))}${C0("数据代理", e)}${C0("API 代理", t)}<div class="flex justify-end">${a0("保存配置")}</div></div>`).join("") : f0(e0("60%"));
+ return c0("CloudDrive 代理", s0(`${f0(q1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), a0("重新读取", "secondary"));
}
-var E0 = (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>`, dMe = (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">${n0()}</span>${Os({
+var T0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, pMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${t0()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
- attrs: e0
+ attrs: $1
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${E0("来源", As(t0("6em")), "w-full @lg:w-60")}${E0("读取策略", As(t0("4em")), "w-full @lg:w-32")}${e > 1 ? E0("移到媒体库", As(t0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, fMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${T0("来源", As(e0("6em")), "w-full @lg:w-60")}${T0("读取策略", As(e0("4em")), "w-full @lg:w-32")}${e > 1 ? T0("移到媒体库", As(e0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, mMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Os({
label: "自动识别",
variant: "secondary",
- attrs: e0
-})}${n0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(t0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${dMe(t).repeat(e)}<div class="flex">${Os({
+ attrs: $1
+})}${t0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(e0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${pMe(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
- attrs: e0
-})}</div></div></div>`, pMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, mMe = "<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 hMe(e = X1("media")) {
- let t = $1(e?.folders, 12, (e) => Q1(e, 50)).filter(Boolean);
+ attrs: $1
+})}</div></div></div>`, hMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${U1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, gMe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function _Me(e = Y1("media")) {
+ let t = Q1(e?.folders, 12, (e) => Z1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: Z1(e?.cloud)
+ cloud: X1(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function gMe() {
- let e = X1("discovery"), t = Z1(e?.enabled), n = t && Z1(e?.cloud), r = n && Z1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${As(t0("4em"), { prefix: "对应目录" })}${Os({
+function vMe() {
+ let e = Y1("discovery"), t = X1(e?.enabled), n = t && X1(e?.cloud), r = n && X1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${t0()}</span>${As(e0("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
- attrs: e0
+ attrs: $1
})}</div>`;
- return l0("自动发现新文件", c0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${i0()}</div>`) + d0("发现新文件后自动入库", t ? t0("10em") : "") + d0("监视本机文件夹", t && Z1(e?.watchLocal) ? t0("12em") : "") + d0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? u0("Webhook 配置", t0("20em"), "") : "") + (r ? c0(y0("查看配置"), !0) : "") + (n ? c0(`<div class="flex flex-col gap-3">${m0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Q1(e?.prefixes, 20))}</div><div>${o0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? o0("更换密钥", "secondary") : "") + o0("保存配置"));
-}
-var _Me = () => {
- let e = hMe();
- return l0("媒体库与目录", c0(`${pMe}<div class="flex flex-col gap-4">${e.folders.map((t) => fMe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${o0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${G1}</p>
- ${e.cloud ? mMe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + gMe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, vMe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<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>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), yMe = () => {
- let e = X1("downloads"), t = Z1(e?.pikpak), n = Z1(e?.pikpakRoots) ? g0(v0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${m0(v0("PikPak 根目录对应的媒体目录"))}${p0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Z1(e?.cloud) ? l0("云下载", c0(h0("CloudDrive2 地址") + h0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Z1(e?.has115) ? h0(v0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? h0(v0("PikPak 目标目录"), "目录要已经存在。") + n : "") + h0("等待上限(小时)", t0("14em"))), o0("检查连接", "secondary") + o0("保存配置")) : "", i = Z1(e?.pikpakLoggedIn);
- return r + (t ? l0("PikPak 账号", i ? b0(["账号", t0("4em")]) : c0(h0("账号") + h0("密码") + _0("保存密码,登录过期时自动重新登录")), i ? o0("登出", "secondary") : (Z1(e?.browserLogin) ? o0("用浏览器登录", "secondary") : "") + o0("登录"), {
- aside: i0(),
+ return c0("自动发现新文件", s0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${r0()}</div>`) + u0("发现新文件后自动入库", t ? e0("10em") : "") + u0("监视本机文件夹", t && X1(e?.watchLocal) ? e0("12em") : "") + u0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? l0("Webhook 配置", e0("20em"), "") : "") + (r ? s0(v0("查看配置"), !0) : "") + (n ? s0(`<div class="flex flex-col gap-3">${p0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Z1(e?.prefixes, 20))}</div><div>${a0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? a0("更换密钥", "secondary") : "") + a0("保存配置"));
+}
+var yMe = () => {
+ let e = _Me();
+ return c0("媒体库与目录", s0(`${hMe}<div class="flex flex-col gap-4">${e.folders.map((t) => mMe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${a0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${W1}</p>
+ ${e.cloud ? gMe : ""}<span class="text-body-medium text-text-primary">${e0("15em")}</span>`), a0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? w0() : "") + vMe() + c0("番号识别规则", s0(`${e0("90%")}${e0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), a0("保存配置")) + c0("视频预览", u0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + u0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + u0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, bMe = () => `<div>${a0("采集来源与登录状态", "secondary")}</div>` + b0() + c0("关注采集", l0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + d0("订阅源拉取") + u0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + d0("头像刷新", "重新获取关注创作者的头像。") + d0("favicon 刷新", "重新获取来源站点的图标。")) + x0() + c0("作品资料站点", s0(`<p class="text-body-2-regular text-text-secondary">${G1}</p>${m0(_0("JavDB 地址"), K1)}${m0(_0("MISSAV 地址"), K1)}`), a0("保存配置")), xMe = () => {
+ let e = Y1("downloads"), t = X1(e?.pikpak), n = X1(e?.pikpakRoots) ? h0(_0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${p0(_0("PikPak 根目录对应的媒体目录"))}${f0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = X1(e?.cloud) ? c0("云下载", s0(m0("CloudDrive2 地址") + m0("CloudDrive2 API 令牌", "需要离线任务权限。") + (X1(e?.has115) ? m0(_0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? m0(_0("PikPak 目标目录"), "目录要已经存在。") + n : "") + m0("等待上限(小时)", e0("14em"))), a0("检查连接", "secondary") + a0("保存配置")) : "", i = X1(e?.pikpakLoggedIn);
+ return r + (t ? c0("PikPak 账号", i ? y0(["账号", e0("4em")]) : s0(m0("账号") + m0("密码") + g0("保存密码,登录过期时自动重新登录")), i ? a0("登出", "secondary") : (X1(e?.browserLogin) ? a0("用浏览器登录", "secondary") : "") + a0("登录"), {
+ aside: r0(),
mark: !0
- }) : "") + C0();
-}, D0 = {
+ }) : "") + S0();
+}, E0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, O0 = {
+}, D0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function bMe(e) {
- let t = e === "locked" ? "" : h0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + h0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (D0[e] ? p0(D0[e]) : "") + (e === "open" ? r0("100%", "64px") : "") + (e === "password" || e === "legacy" ? _0("关闭访问密码") : "") + (e === "password" ? h0("当前访问密码 *") : "") + t;
+function SMe(e) {
+ let t = e === "locked" ? "" : m0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + m0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (E0[e] ? f0(E0[e]) : "") + (e === "open" ? n0("100%", "64px") : "") + (e === "password" || e === "legacy" ? g0("关闭访问密码") : "") + (e === "password" ? m0("当前访问密码 *") : "") + t;
}
-function k0() {
- let e = X1("devices");
- return l0("已登录的设备", Array.from({ length: Math.max(1, Q1(e?.rows, 8)) }, () => u0(t0("8em"), t0("14em"), t0("3em"), r0("20px", "20px"))).join(""), Z1(e?.manageable) ? o0("撤销其他设备", "secondary") : "", Z1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
+function O0() {
+ let e = Y1("devices");
+ return c0("已登录的设备", Array.from({ length: Math.max(1, Z1(e?.rows, 8)) }, () => l0(e0("8em"), e0("14em"), e0("3em"), n0("20px", "20px"))).join(""), X1(e?.manageable) ? a0("撤销其他设备", "secondary") : "", X1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var xMe = () => {
- let e = X1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Z1(e?.tunnelNamed), r = (n && Z1(e?.tunnelNamedMode) ? p0(O0.named) + h0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + h0("隧道令牌", t0("16em")) : p0(O0.quick)) + (Z1(e?.tunnelNote) ? r0("100%", "64px") : ""), i = Q1(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">${h0([
+var CMe = () => {
+ let e = Y1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = X1(e?.tunnelNamed), r = (n && X1(e?.tunnelNamedMode) ? f0(D0.named) + m0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + m0("隧道令牌", e0("16em")) : f0(D0.quick)) + (X1(e?.tunnelNote) ? n0("100%", "64px") : ""), i = Z1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${m0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${o0("复制地址", "secondary")}</div>`).join("");
- return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(bMe(t)), t === "locked" ? "" : o0("保存配置")) + (t === "password" || t === "legacy" ? k0() : "") + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
-}, SMe = [
+ ][t])}</div>${a0("复制地址", "secondary")}</div>`).join("");
+ return (i || X1(e?.port) ? c0("访问地址", s0(a + (i ? n0("100%", "40px") : "") + (X1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${p0("谁可以访问")}${n0("min(100%, 20em)", "36px")}</div>` + (X1(e?.lan) ? m0("局域网访问地址") : "") : "") + (X1(e?.port) ? m0("端口") : "")), X1(e?.port) ? a0("保存配置") : "", X1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + c0("访问密码", s0(SMe(t)), t === "locked" ? "" : a0("保存配置")) + (t === "password" || t === "legacy" ? O0() : "") + c0("Cloudflare 公网入口", s0((n ? n0("10.5em", "36px") : "") + r), a0("启动公网入口", n ? "secondary" : "primary") + (n ? a0("保存配置") : ""), { aside: r0() }) + c0("Peach 代理", u0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (X1(e?.proxyAddress) ? s0(m0("代理地址"), !0) : ""), a0("保存配置"));
+}, wMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], CMe = () => {
- let e = X1("maintenance"), t = [
+], TMe = () => {
+ let e = Y1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, Q1(e?.releaseFacts, 5))), n = Q1(e?.releaseNotes, 4), r = Q1(e?.storageRows, 12), i = Q1(e?.storageNotes, 3), a = $1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${i0("6em")}</span>`, s = (t) => !e || Z1(t), c = s(e?.reporting) ? d0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Z1(e?.reportingIdle) ? c0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${d0("上传馆藏与口味明细", Z1(e?.sharingNotice) ? t0("12em") : "")}${Z1(e?.sharingIdle) ? c0(o, !0) : ""}${s0(o0("预览上传内容", "secondary"))}</div>` : "";
- return l0("检查更新", b0(t) + (n ? c0(p0(t0("50%")).repeat(n), !0) : ""), o0("检查更新"), {
- aside: i0("4em"),
- status: t0("5em")
- }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : SMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
+ ].slice(0, Math.max(4, Z1(e?.releaseFacts, 5))), n = Z1(e?.releaseNotes, 4), r = Z1(e?.storageRows, 12), i = Z1(e?.storageNotes, 3), a = Q1(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${r0("6em")}</span>`, s = (t) => !e || X1(t), c = s(e?.reporting) ? u0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (X1(e?.reportingIdle) ? s0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${u0("上传馆藏与口味明细", X1(e?.sharingNotice) ? e0("12em") : "")}${X1(e?.sharingIdle) ? s0(o, !0) : ""}${o0(a0("预览上传内容", "secondary"))}</div>` : "";
+ return c0("检查更新", y0(t) + (n ? s0(f0(e0("50%")).repeat(n), !0) : ""), a0("检查更新"), {
+ aside: r0("4em"),
+ status: e0("5em")
+ }) + c0("自动更新", u0("自动检查新版本") + u0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + u0("检查频率", X1(e?.autoUpdateHelp) ? e0("12em") : "", "ui-configuration-skeleton-select"), a0("保存配置")) + c0("开机自启", u0("开机后启动 Peach") + u0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + u0("在桌面创建快捷方式", X1(e?.desktopNote) ? e0("12em") : "") + (X1(e?.startupNote) ? s0(f0(e0("60%")), !0) : ""), a0("保存配置")) + c0("视频播放", u0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + c0("存储空间", y0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => l0(e0("6em"), "", e0("4em"))).join("") : s0(f0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? s0(f0(e0("80%")).repeat(i), !0) : ""), a0("更改位置", "secondary") + a0(r ? "重新统计" : "统计占用")) + (c || l ? c0("数据上传", c + l) : "") + c0("运行信息", y0(a.length ? a : wMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${l0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", a0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? c0("卸载 Peach", (X1(e?.uninstallHelp) ? s0(f0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + u0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + s0(v0("数据目录"), !0), a0("卸载 Peach"), { status: e0("16em") }) : "");
};
-function wMe(e) {
+function EMe(e) {
switch (e) {
- case "系统诊断": return U1();
- case "来源与订阅": return vMe();
- case "下载渠道": return yMe();
- case "网络与访问": return xMe();
- case "应用与维护": return CMe();
- default: return _Me();
+ case "系统诊断": return H1();
+ case "来源与订阅": return bMe();
+ case "下载渠道": return xMe();
+ case "网络与访问": return CMe();
+ case "应用与维护": return TMe();
+ default: return yMe();
}
}
-function TMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${wMe(e)}</div></div></div>`;
+function DMe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${EMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var A0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), j0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", M0 = (e, t, n) => `<span data-entity-layout="" class="${aU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${oU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${j0}>${A0(r)}</span>`).join("")}</span>`;
-function N0(e, t, { folders: n = !0 } = {}) {
- let r = iG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? M0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${j0}>${A0("ri-folder-3-line")}</button>` : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${j0}>${A0("shuffle")}</button>${a}${M0("馆藏显示方式", r, [[
+var k0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), A0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", j0 = (e, t, n) => `<span data-entity-layout="" class="${iU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${aU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${A0}>${k0(r)}</span>`).join("")}</span>`;
+function M0(e, t, { folders: n = !0 } = {}) {
+ let r = rG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? j0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${A0}>${k0("ri-folder-3-line")}</button>` : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${A0}>${k0("shuffle")}</button>${a}${j0("馆藏显示方式", r, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -72875,21 +72885,21 @@ function N0(e, t, { folders: n = !0 } = {}) {
"list",
"列表",
"ri-list-unordered"
- ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${j0}>${z(e.label)}${e.dir ? A0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${A0}>${z(e.label)}${e.dir ? k0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
// src/catalog-filter-skeleton.ts
-var P0 = 64, F0 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var N0 = 64, P0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), EMe = (e) => e.repeat(P0), I0 = (e) => EMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function DMe(e, t, n) {
- let r = e.map((e) => `<a href="${F0(e.href)}" data-catalog-view="${F0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${F0(e.label)}</a>`).join(""), i = NG();
- 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">${I0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${I0("studio")}</div>` : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(P0) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Es()}</span>` + (n ? N0(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), OMe = (e) => e.repeat(N0), F0 = (e) => OMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function kMe(e, t, n) {
+ let r = e.map((e) => `<a href="${P0(e.href)}" data-catalog-view="${P0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${P0(e.label)}</a>`).join(""), i = MG();
+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${F0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${F0("studio")}</div>` : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(N0) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Es()}</span>` + (n ? M0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.visibility.v1", OMe = {
+var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.visibility.v1", AMe = {
name: {
width: 300,
min: 240,
@@ -72935,7 +72945,7 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, kMe = {
+}, jMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72945,12 +72955,12 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, AMe = {
+}, MMe = {
code: "code",
dur: "duration",
score: "source_score",
release: "release_date"
-}, z0 = [
+}, R0 = [
"name",
"people",
"studio",
@@ -72962,18 +72972,18 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: kMe[e],
- ...OMe[e],
+ label: jMe[e],
+ ...AMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function jMe() {
- return MJ(z0, L0, R0);
+function NMe() {
+ return jJ(R0, I0, L0);
}
// src/jav-skeleton.ts
-var B0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, MMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, V0 = "w-full min-w-0";
-function H0() {
+var z0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, PMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, B0 = "w-full min-w-0";
+function V0() {
return [
"w-20",
"w-16",
@@ -72983,83 +72993,83 @@ function H0() {
"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 U0(e, t = fM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${B0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${MMe("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">${B0("80%")}${B0("60%")}${B0("40%")}</div></div>`).join("")}</div>`;
- let n = bM({
- ...yM({
+function H0(e, t = mM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${z0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${PMe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${z0("80%")}${z0("60%")}${z0("40%")}</div></div>`).join("")}</div>`;
+ let n = SM({
+ ...xM({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${V0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${B0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${B0("85%")}${B0("65%")}</div><div data-media-byline>${B0("55%")}</div>
+ <div data-media-title>${z0("85%")}${z0("65%")}</div><div data-media-byline>${z0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-var NMe = {
+var FMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function PMe(e) {
- let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${B0("100%")}</div>${U0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${FMe()}${iG() === "list" ? `<div data-catalog-table>${IJ(jMe())}</div>` : U0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${IMe()}${U0(e)}</section>`;
+function IMe(e) {
+ let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${z0("100%")}</div>${H0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${LMe()}${rG() === "list" ? `<div data-catalog-table>${FJ(NMe())}</div>` : H0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${RMe()}${H0(e)}</section>`;
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, NMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, FMe[e] || "筛选")}</div>${Os({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${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">${oU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
${n}</div></div>`;
}
-function FMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = lW.map(([e, r, i]) => ({
+function LMe() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = cW.map(([e, r, i]) => ({
key: e,
label: r,
ariaLabel: i,
pressed: e === t,
dir: e === t ? n : ""
}));
- return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${I0("performer")}</div><div data-catalog-tier="studios">${I0("studio")}</div></div>
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${F0("performer")}</div><div data-catalog-tier="studios">${F0("studio")}</div></div>
<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
- <div data-catalog-scroll><div data-catalog-tags>${H0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-tags>${V0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
- ${N0(r, {
+ ${M0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
+ value: mM(),
+ options: lM
}, { folders: !1 })}
</div>
</div>`;
}
-function IMe() {
- 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="" ${fM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
+function RMe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${mM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
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>${H0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${V0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Es()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${cW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${sW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
-var W0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", G0 = (e = "60%") => `<span class="${W0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, K0 = "disabled data-skeleton-action", q0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function LMe() {
+var U0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", W0 = (e = "60%") => `<span class="${U0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, G0 = "disabled data-skeleton-action", K0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function zMe() {
let e = [
"馆藏视频",
"看过",
@@ -73067,27 +73077,27 @@ function LMe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${W0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${G0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${G0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${q0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${G0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${U0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${W0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${W0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${K0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${W0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${G0()}</span><b class="text-title-2-medium">${G0("3em")}</b><small class="text-caption-1-regular">${G0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${W0()}</span><b class="text-title-2-medium">${W0("3em")}</b><small class="text-caption-1-regular">${W0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${G0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${W0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${q0}"><h3 class="text-title-2-medium">${e}</h3><div class="${W0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${K0}"><h3 class="text-title-2-medium">${e}</h3><div class="${U0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -73096,11 +73106,11 @@ function LMe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${W0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${U0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function RMe() {
+function BMe() {
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 = [
"浏览记录",
"口味维度",
@@ -73108,20 +73118,20 @@ function RMe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${W0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${G0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${G0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${W0} h-6"></div>`).join(""), r = (e) => `<section class="${q0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${W0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${U0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${W0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${W0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${U0} h-6"></div>`).join(""), r = (e) => `<section class="${K0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${U0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${As("全部时间")}<span data-button-group data-split-button data-variant="primary">${Os({
glyph: "compass",
label: "读取浏览器历史",
- attrs: K0
+ attrs: G0
})}${Os({
glyph: "chevron-down",
- attrs: K0
+ attrs: G0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -73139,11 +73149,11 @@ function RMe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${G0("8em")}</small></div>
+ <small class="text-caption-1-regular">${W0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${q0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${W0} h-72 max-sm:h-48"></div></section>
+ <section class="${K0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${U0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -73151,20 +73161,20 @@ function RMe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${W0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${U0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function zMe() {
+function VMe() {
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="${W0} 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">${G0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${G0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${G0("75%")}</span>
+ <span class="${U0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${W0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${W0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${W0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${G0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${G0("8em")}</span>
+ <b class="text-title-2-medium">${W0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${W0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -73173,27 +73183,27 @@ function zMe() {
variant: "secondary",
size: "small",
label: e,
- attrs: K0
+ attrs: G0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${G0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${G0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${W0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${W0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${K0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${G0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function BMe() {
+function HMe() {
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="${W0} 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">${G0("80%")}</h3><p class="text-body-2-regular">${G0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${U0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${W0("80%")}</h3><p class="text-body-2-regular">${W0("60%")}</p></div>
</div>
<footer class="flex justify-end">${Os({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: K0
+ attrs: G0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@ -73202,20 +73212,20 @@ function BMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe = () => `${J0("80%")}${J0("48%")}`, Y0 = (e, t) => e.repeat(t), X0 = "disabled data-skeleton-action", Z0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, HMe = "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", $0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe = () => `${q0("80%")}${q0("48%")}`, J0 = (e, t) => e.repeat(t), Y0 = "disabled data-skeleton-action", X0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, WMe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", Q0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${HMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z0("3em")}</b></div>`).join("")}</div>`, UMe = (e = "") => kZ.some(([t]) => t === e) ? e : "list", e2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${kZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, t2 = (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>`, WMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${WMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X0("3em")}</b></div>`).join("")}</div>`, GMe = (e = "") => kZ.some(([t]) => t === e) ? e : "list", $0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${kZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, e2 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, KMe = ({ table: e, sort: t, dir: n }) => {
let r = ur.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${Z0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${X0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: X0
+ attrs: Y0
})}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Os({
variant: "ghost",
glyph: "layout-grid",
@@ -73232,42 +73242,42 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: X0
+ attrs: Y0
})}</span></div></div>`;
-}, n2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
+}, t2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: X0
+ attrs: Y0
})}${Os({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: X0
-})}</span>`, GMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${t2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Z0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q0(14, 14)}</span>${Q0(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">${Z0("113px")}</span>${n2()}</span></div>`, r2 = (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>${Q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Z0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+ attrs: Y0
+})}</span>`, qMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${e2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${X0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z0(14, 14)}</span>${Z0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${X0("113px")}</span>${t2()}</span></div>`, n2 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${Z0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${X0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: X0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${Q0(14, 14)}${Q0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
+ attrs: Y0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${Z0(14, 14)}${Z0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: X0
+ attrs: Y0
})}${Os({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: X0
-})}</span></span></div><div data-source-divider>${Y0(GMe(), e)}</div></section>`, KMe = () => {
+ attrs: Y0
+})}</span></span></div><div data-source-divider>${J0(qMe(), e)}</div></section>`, JMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, qMe = [
+}, YMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73275,92 +73285,92 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], JMe = {
+], XMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, i2 = "<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>", YMe = (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>${qMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${JMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${i2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y0(`<tr>${[
- t2(),
- `<span class="flex min-w-0 items-center gap-2">${Q0(32, 32, !0)}${Z0("5em")}</span>`,
- Z0("10em"),
- `<span class="flex items-center gap-1.5">${Q0(14, 14)}${Z0("4em")}</span>`,
- Q0(48, 24),
- Z0("113px"),
- n2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, XMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Z0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q0(204, 32)}</div></div>`, ZMe = () => `<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">${Z0("120px")}</h3>${[
+}, r2 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", ZMe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${YMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${XMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${r2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J0(`<tr>${[
+ e2(),
+ `<span class="flex min-w-0 items-center gap-2">${Z0(32, 32, !0)}${X0("5em")}</span>`,
+ X0("10em"),
+ `<span class="flex items-center gap-1.5">${Z0(14, 14)}${X0("4em")}</span>`,
+ Z0(48, 24),
+ X0("113px"),
+ t2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, QMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${X0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z0(204, 32)}</div></div>`, $Me = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${X0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${Z0(e)}</span>`).join("")}</div>`, QMe = (e) => {
- let t = UMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<div class="flex flex-col gap-4">${ZMe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || KMe(), a = n ? YMe(i, r) : `${t2("全选本页")}<div class="flex flex-col gap-3">${r2(3)}${r2(4)}${r2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(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"}">${WMe({
+].map((e) => `<span class="text-body-medium">${X0(e)}</span>`).join("")}</div>`, eNe = (e) => {
+ let t = GMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(t)}<div class="flex flex-col gap-4">${$Me()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || JMe(), a = n ? ZMe(i, r) : `${e2("全选本页")}<div class="flex flex-col gap-3">${n2(3)}${n2(4)}${n2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${KMe({
table: n,
...r
- })}${a}${XMe(n, i)}</div></div></div></div></div>`;
+ })}${a}${QMe(n, i)}</div></div></div></div></div>`;
};
-function $Me() {
- 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">${J0("85%")}${J0("65%")}${Y0(VMe(), 4)}</div></aside></div>`;
+function tNe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${q0("85%")}${q0("65%")}${J0(UMe(), 4)}</div></aside></div>`;
}
-function eNe(e, t = {}) {
+function nNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = LMe();
+ if (e === "/stats") n = zMe();
else if (e === "/jav") {
- let e = cU(new URLSearchParams(location.search).get("tab"));
- n = PMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = RMe();
- else if (e === "/subscriptions") n = QMe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = TMe(kf[e.split("/")[2]]);
+ let e = sU(new URLSearchParams(location.search).get("tab"));
+ n = IMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = BMe();
+ else if (e === "/subscriptions") n = eNe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = DMe(kf[e.split("/")[2]]);
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">${Z0("8em")}</span><span class="text-caption-1-regular">${Z0("14em")}</span>${Z0("60%")}${Z0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Z0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = zMe();
- else if (e === "/quality-goals") n = BMe();
+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${X0("8em")}</span><span class="text-caption-1-regular">${X0("14em")}</span>${X0("60%")}${X0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${X0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = VMe();
+ else if (e === "/quality-goals") n = HMe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Os({
label: "新建",
- attrs: X0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${Y0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: Y0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${J0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function tNe(e) {
+function rNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function a2(e) {
+function i2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return tNe(n ?? t.body);
+ return rNe(n ?? t.body);
}
-var o2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function nNe(e) {
+var a2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function iNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(o2) ? e : e.querySelector(o2);
+ let t = e.matches(a2) ? e : e.querySelector(a2);
if (t) return t;
}
return null;
}
-function s2(e) {
+function o2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var c2 = (e) => ["follow-item", e], rNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, iNe = "/api/follow/save", aNe = "/api/follow/media/hide", l2 = class extends Error {
+var s2 = (e) => ["follow-item", e], aNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, oNe = "/api/follow/save", sNe = "/api/follow/media/hide", c2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function u2(e, t) {
- let n = await B(rNe(e), t);
+async function l2(e, t) {
+ let n = await B(aNe(e), t);
for (let t of n.groups || []) {
let r = la(t).find((t) => t.id === e);
if (r) return {
@@ -73370,9 +73380,9 @@ async function u2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new l2();
+ throw new c2();
}
-function oNe(e) {
+function cNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = la(t.group).find((t) => t.id === e);
@@ -73383,20 +73393,20 @@ function oNe(e) {
}
return null;
}
-async function d2(e, t) {
- let n = c2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
+async function u2(e, t) {
+ let n = s2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
queryKey: ia,
queryFn: () => aa(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? oNe(e.id);
+ } : H.getQueryData(n) ?? cNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => u2(e.id, t)
+ queryFn: () => l2(e.id, t)
}), await i;
}
-function sNe(e, t, n, r) {
+function lNe(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && va(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -73411,32 +73421,32 @@ function sNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var cNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), lNe = {
+var uNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), dNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, uNe = {
+}, fNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function dNe(e) {
+function pNe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return lNe[t] || t;
+ return dNe[t] || t;
} catch {
return "外部文件页";
}
}
-function f2(e, t) {
- return uNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function d2(e, t) {
+ return fNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function fNe(e, t, n = "") {
+function mNe(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;
@@ -73445,54 +73455,54 @@ function fNe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var pNe = (e) => String(e.name || "").trim(), p2 = (e, t) => e.tag_types?.[t] || "unknown", mNe = /* @__PURE__ */ new Set([
+var hNe = (e) => String(e.name || "").trim(), f2 = (e, t) => e.tag_types?.[t] || "unknown", gNe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function hNe(e, t) {
- let n = p2(e, t);
- return `r34-${mNe.has(n) ? n : "general"}`;
+function _Ne(e, t) {
+ let n = f2(e, t);
+ return `r34-${gNe.has(n) ? n : "general"}`;
}
-var m2 = [
+var p2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function gNe(e, t) {
+function vNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = m2.indexOf(p2(e, t));
- return n < 0 ? m2.length : n;
+ let n = p2.indexOf(f2(e, t));
+ return n < 0 ? p2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function h2(e, t) {
+function m2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var _Ne = (e, t) => ({
+var yNe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), g2 = (e) => e?.size ? { size: e.size } : {};
-function vNe(e, t) {
+}), h2 = (e) => e?.size ? { size: e.size } : {};
+function bNe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: f2(t, e),
- ...g2(t)
+ source: d2(t, e),
+ ...h2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: f2(a, e),
- ...g2(a)
+ source: d2(a, e),
+ ...h2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -73500,7 +73510,7 @@ function vNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", v2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", y2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", b2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", x2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", S2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", C2 = "disabled data-skeleton-action", w2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, T2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, E2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, D2 = (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>`, bNe = [
+var xNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", _2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", v2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", y2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", b2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", x2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", S2 = "disabled data-skeleton-action", C2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, w2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, T2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, E2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, SNe = [
"3em",
"5em",
"5em",
@@ -73510,7 +73520,7 @@ var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2
"8em",
"8em",
"10em"
-], xNe = [
+], CNe = [
"5.8em",
"6.4em",
"7em",
@@ -73520,70 +73530,70 @@ var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2
"5.8em",
"9em",
"9em"
-], O2 = (e, t) => Os({
+], D2 = (e, t) => Os({
variant: e,
size: "small",
- label: w2(t)
+ label: C2(t)
});
-function SNe() {
- return `<section class="${a$("stack")}">
- <div class="${r$.stack}">${E2("整理", "mb-3")}
- <p class="text-body-regular text-text-secondary">${_2}</p>
+function wNe() {
+ return `<section class="${i$("stack")}">
+ <div class="${n$.stack}">${T2("整理", "mb-3")}
+ <p class="text-body-regular text-text-secondary">${g2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${As(w2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${As(C2("3em"), {
prefix: "来源",
className: "w-fit min-w-25",
attrs: "aria-disabled=\"true\""
})}
- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${D2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${E2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
</div>
- <p class="text-caption-1-regular text-text-secondary">${v2}</p>
- ${D2(w2("12em"), { label: "文件名模板" })}${D2(w2("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">${bNe.map((e) => O2("secondary", e)).join("")}</div></div>
- <p class="text-caption-1-regular text-text-secondary">路径示例:${w2("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">${xNe.map((e) => O2("ghost", e)).join("")}</div></div>
- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${y2}</p>
+ <p class="text-caption-1-regular text-text-secondary">${_2}</p>
+ ${E2(C2("12em"), { label: "文件名模板" })}${E2(C2("8em"), { label: "目录模板" })}
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${SNe.map((e) => D2("secondary", e)).join("")}</div></div>
+ <p class="text-caption-1-regular text-text-secondary">路径示例:${C2("16em")}</p>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${CNe.map((e) => D2("ghost", e)).join("")}</div></div>
+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${v2}</p>
</div>
</div>
- <footer class="${i$.stack}">${Os({
+ <footer class="${r$.stack}">${Os({
label: "预览",
- attrs: C2
+ attrs: S2
})}</footer>
</section>`;
}
-var CNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${a$("split")}"><div class="${r$.split}">${E2("资源同步", "mb-2")}
- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${b2}</p></div>
- <footer class="${i$.split}">${Os({
+var TNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${i$("split")}"><div class="${n$.split}">${T2("资源同步", "mb-2")}
+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${y2}</p></div>
+ <footer class="${r$.split}">${Os({
glyph: "git-compare",
label: "检查文件",
- attrs: C2
+ attrs: S2
})}</footer></section>
-</section>`, k2 = (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">${w2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${w2("14em")}</small>` : ""}</div>`, wNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${a$("stack")}"><div class="${r$.stack}">${E2("链接管理", "mb-2")}
- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${k2("链接总数", !0)}${[
+</section>`, O2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${C2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${C2("14em")}</small>` : ""}</div>`, ENe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${i$("stack")}"><div class="${n$.stack}">${T2("链接管理", "mb-2")}
+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${O2("链接总数", !0)}${[
0,
1,
2
-].map(() => k2(w2("5em"))).join("")}</div>
+].map(() => O2(C2("5em"))).join("")}</div>
<div class="mt-4 flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span><div class="flex min-w-0 flex-wrap gap-x-5 gap-y-2">${[
"7em",
"10em",
"8em"
-].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${T2(16, 16)}${w2(e)}${T2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${i$.stack}">${Os({
+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${w2(16, 16)}${C2(e)}${w2(28, 24)}</span>`).join("")}</div></div></div>
+ <footer class="${r$.stack}">${Os({
glyph: "link",
label: "检查死链",
- attrs: C2
+ attrs: S2
})}</footer></section>
</section>`;
-function A2({ 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">${t2()}</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>${i2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${t2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${SU({
+function k2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
+ let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${e2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${r2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${e2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
+ return `<div data-data-table-panel class="${xU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
- <div data-responsive-toolbar><div data-toolbar-heading>${E2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${w2("4em")}</span></div>
+ <div data-responsive-toolbar><div data-toolbar-heading>${T2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${C2("4em")}</span></div>
<div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Os({
variant: "secondary",
label: "显示列"
@@ -73594,38 +73604,38 @@ function A2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<span class="flex flex-none items-center gap-2">${As("默认顺序", { prefix: "排序" })}${Os({
variant: "secondary",
glyph: "arrow-up",
- attrs: C2
+ attrs: S2
})}</span></div></div>
<p class="text-body-2-regular text-text-secondary">${t}</p>
<div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>
- <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${w2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
+ <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${C2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${w2(e)}</span><small class="text-caption-1-regular">${w2(t)}</small></span>`, ENe = {
+var DNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${C2(e)}</span><small class="text-caption-1-regular">${C2(t)}</small></span>`, ONe = {
organize: {
label: "正在读取整理配置",
- body: SNe
+ body: wNe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: CNe
+ body: TNe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${A2({
+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${k2({
title: "文件已丢失的记录",
- description: x2,
+ description: b2,
rows: 4,
columns: [
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${TNe("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>${DNe("70%", "40%")}</span>`
},
{
label: "个人记录",
width: 176,
- cell: w2("6em")
+ cell: C2("6em")
},
{
label: "操作",
@@ -73634,7 +73644,7 @@ var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
variant: "secondary",
size: "small",
label: "删除记录",
- attrs: C2
+ attrs: S2
})
}
]
@@ -73642,50 +73652,50 @@ var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: cAe
+ body: uAe
},
links: {
label: "正在读取链接统计",
- body: wNe
+ body: ENe
},
"batch-delete": {
label: "正在读取女优列表",
- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${A2({
+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${k2({
title: "批量删除",
- description: S2,
+ description: x2,
search: "搜索女优姓名或别名",
rows: 12,
columns: [
{
label: "女优",
width: 280,
- cell: `<span class="flex min-w-0 items-center gap-3">${T2(32, 32, !0)}${w2("5em")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3">${w2(32, 32, !0)}${C2("5em")}</span>`
},
{
label: "影片",
width: 104,
- cell: w2("3em")
+ cell: C2("3em")
},
{
label: "文件",
width: 104,
- cell: w2("3em")
+ cell: C2("3em")
},
{
label: "登记大小",
width: 136,
- cell: w2("4em")
+ cell: C2("4em")
}
]
})}</section>`
}
};
-function j2(e) {
- let { label: t, body: n } = ENe[e];
+function A2(e) {
+ let { label: t, body: n } = ONe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
-var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
+var j2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -73693,7 +73703,7 @@ var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), DNe = [
+}), kNe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73703,39 +73713,39 @@ var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], ONe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], ANe = (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>${DNe.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>${kNe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="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>`, kNe = {
- "/data-cleanup": () => lAe(),
- ...Object.fromEntries(Yf.map((e) => [e.path, () => j2(e.key)])),
- "/resource-sync": () => j2("resource-sync"),
- "/review": () => ONe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, jNe = {
+ "/data-cleanup": () => dAe(),
+ ...Object.fromEntries(Yf.map((e) => [e.path, () => A2(e.key)])),
+ "/resource-sync": () => A2("resource-sync"),
+ "/review": () => ANe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${M2("正在读取采集来源", {
+ ${j2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function N2(e, { followLayout: t, followSort: n, followDir: r }) {
- return eNe(e, {
+function M2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return nNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (kNe[e] ?? (() => M2("正在读取页面")))();
+ }) || (jNe[e] ?? (() => j2("正在读取页面")))();
}
-var P2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function F2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = P2(t);
+var N2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function P2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = N2(t);
r && r === n || (e.innerHTML = t, pc(e));
}
// src/react/components/related-section.tsx
-function I2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function F2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
e && (pc(e), t(e));
}, [t]);
@@ -73748,17 +73758,17 @@ function I2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: /* @__PURE__ */ (0, I.jsx)(lV, {
size: "compact",
- icon: QB,
+ icon: ZB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73774,7 +73784,7 @@ function I2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function L2({ queue: e, children: t, queueCards: n }) {
+function I2({ queue: e, children: t, queueCards: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
@@ -73782,7 +73792,7 @@ function L2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function R2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function L2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@ -73862,7 +73872,7 @@ function R2({ 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)(ANe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(MNe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73881,7 +73891,7 @@ function R2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function ANe({ item: e, selected: t, onSelect: n, render: r }) {
+function MNe({ 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;
@@ -73907,14 +73917,14 @@ function ANe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var jNe = (e, t, n) => [
+var NNe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function z2(e, t, n, r) {
+function R2(e, t, n, r) {
let i = new Set((t.group ? la(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = la(e);
@@ -73929,19 +73939,19 @@ function z2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-var MNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function NNe(e, t, n) {
+var PNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function FNe(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !MNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !PNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
return {
reasons: a && c?.author_key === a ? ["同创作者"] : [],
tags: l
};
};
}
-async function PNe(e, t, n, r) {
+async function INe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
..._a(i),
status: "new",
@@ -73955,22 +73965,22 @@ async function PNe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return z2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && z2(o, e, t, n).length < n && await s("", 0), {
+ return R2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && R2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
// src/react/components/detail-tags.tsx
-var B2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var z2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), FNe = 20;
-function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+}), LNe = 20;
+function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Ft({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = mH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = pH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73981,7 +73991,7 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}, (e) => d(e));
}, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)([]), S = (e) => {
x((t) => [...t, Un(e)]), s(e);
- }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < FNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < LNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -74005,9 +74015,9 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...mV(!!g.busy),
+ ...pV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74016,7 +74026,7 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "x" })
})
]
}, e.k)),
@@ -74025,11 +74035,11 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? bB : _B,
+ trailingIcon: v ? yB : gB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(INe, {
+ /* @__PURE__ */ (0, I.jsx)(RNe, {
tags: e,
candidates: h,
label: a,
@@ -74041,11 +74051,11 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74063,8 +74073,8 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function INe({ 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 = zV(), 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 RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = RV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -74109,7 +74119,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? ide(_, t, FP()) : {
+ let w = p ? nde(_, t, LP()) : {
recent: [],
results: [],
create: ""
@@ -74123,7 +74133,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!eW(t.nativeEvent)) {
+ if (!$U(t.nativeEvent)) {
if (t.key === "Escape") t.preventDefault(), t.stopPropagation(), C(), c.current?.focus();
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
if (t.preventDefault(), !T.length) return;
@@ -74152,7 +74162,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(B2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(z2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -74172,8 +74182,8 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...mV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "plus" })
+ ...pV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -74186,7 +74196,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: Bs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(B2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : /* @__PURE__ */ (0, I.jsx)(z2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -74230,7 +74240,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(B2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(z2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -74247,8 +74257,8 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function LNe({ item: e, label: t, actions: n }) {
- let r = mH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function zNe({ item: e, label: t, actions: n }) {
+ let r = pH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -74271,7 +74281,7 @@ function LNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && IP(s);
+ o === "add" && RP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -74287,10 +74297,10 @@ function LNe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(V2, {
- tags: gNe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(B2, {
+ tags: vNe(e, t).map((t) => ({
k: t,
- cat: hNe(e, t)
+ cat: _Ne(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74299,30 +74309,30 @@ function LNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => mV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ busyAttrs: () => pV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var H2 = (e) => Number(e) > 0, RNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var V2 = (e) => Number(e) > 0, BNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), U2 = R("external-link", "ui-externalmark");
-function zNe(e) {
+}), H2 = R("external-link", "ui-externalmark");
+function VNe(e) {
let { id: t, actions: n } = e, r = Ft({
- queryKey: c2(t),
- queryFn: ({ signal: e }) => u2(t, e)
+ queryKey: s2(t),
+ queryFn: ({ signal: e }) => l2(t, e)
}), i = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(HNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(WNe, {
...e,
data: r.data,
- context: _Ne(r.data, a),
+ context: yNe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74331,9 +74341,9 @@ function zNe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(W2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(U2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? BNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(VNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: r.isError ? HNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(UNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74341,8 +74351,8 @@ function zNe(e) {
})
});
}
-var BNe = (e) => e instanceof l2 || e instanceof sr && e.status === 404;
-function VNe({ onBack: e }) {
+var HNe = (e) => e instanceof c2 || e instanceof sr && e.status === 404;
+function UNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74351,7 +74361,7 @@ function VNe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: zs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var W2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var U2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -74360,8 +74370,8 @@ var W2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = sNe(c, l, n, i), d = JNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = lNe(c, l, n, i), d = XNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74381,20 +74391,20 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? cNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(J2, {
+ let g = !u.embedded.length && u.collection ? uNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(q2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(J2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(q2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(GNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(qNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74404,14 +74414,14 @@ function HNe({ 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)(WNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(KNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(KNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(JNe, {
item: c,
data: e,
context: t,
@@ -74421,9 +74431,9 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(L2, {
+ }), /* @__PURE__ */ (0, I.jsx)(I2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(UNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(GNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74433,23 +74443,23 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function GNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: jNe(e.item.id, t, n),
- queryFn: ({ signal: r }) => PNe(e, t, n, r)
- }), [s] = (0, F.useState)(() => M2("正在读取推荐", {
+ queryKey: NNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => INe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => j2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = z2(o.data?.pages || [], e, t, n), u = NNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = R2(o.data?.pages || [], e, t, n), u = FNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
...r,
sources: d,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, I.jsx)(I2, {
+ return /* @__PURE__ */ (0, I.jsx)(F2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -74463,7 +74473,7 @@ function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
variant: "next",
group: e,
media: t,
- authorSources: h2(e.primary, d),
+ authorSources: m2(e.primary, d),
context: f,
selected: !1,
selectMode: !1,
@@ -74477,8 +74487,8 @@ function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function WNe({ 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 = vNe(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 KNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = bNe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -74492,7 +74502,7 @@ function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, I.jsx)(W2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(U2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
@@ -74507,10 +74517,10 @@ function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: dG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: uG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(R2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(L2, {
items: c,
position: l,
onSelect: r,
@@ -74527,11 +74537,11 @@ function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var G2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var W2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function K2({ src: e }) {
+function G2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -74541,27 +74551,27 @@ function K2({ src: e }) {
onError: () => n(!0)
});
}
-function q2(e) {
+function K2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function GNe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = va(e), a = q2(n);
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+function qNe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = va(e), a = K2(n);
+ return /* @__PURE__ */ (0, I.jsx)(yK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${pG(e.primary)} · ${i.length} 个视频`,
+ summary: `${fG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = fNe(e, n, i ? n.provider_label : ""), o = i ? dG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(xK, {
+ let i = e.duplicates.includes(n), a = mNe(e, n, i ? n.provider_label : ""), o = i ? uG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(bK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(G2, { kind: "video" }), H2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(W2, { kind: "video" }), V2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(n.duration)
@@ -74579,15 +74589,15 @@ function GNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: SG(n)
+ children: xG(n)
})]
})]
}, n.id);
})
});
}
-function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = q2(r), c = [];
+function q2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = K2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -74597,26 +74607,26 @@ function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ return /* @__PURE__ */ (0, I.jsx)(yK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${pG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Bxe, {
+ summary: `${fG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Hxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(xK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(bK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(G2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(W2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: pNe(n)
+ children: hNe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74624,13 +74634,13 @@ function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function JNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = yG(d, e), p = _G(e, h2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = bG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = vG(d, e), p = gG(e, m2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = yG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74646,7 +74656,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: vG(d, e) + z(pG(e)) }
+ dangerouslySetInnerHTML: { __html: _G(d, e) + z(fG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74654,7 +74664,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: U2 }
+ dangerouslySetInnerHTML: { __html: H2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -74662,8 +74672,8 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: SG(e) }),
- H2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: xG(e) }),
+ V2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -74712,7 +74722,7 @@ function KNe({ 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)(qNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(YNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74735,9 +74745,9 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [dNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [pNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: U2 }
+ dangerouslySetInnerHTML: { __html: H2 }
})]
}, e))
}) : null,
@@ -74837,7 +74847,7 @@ function KNe({ 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)(K2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(RNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(BNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74846,7 +74856,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(LNe, {
+ /* @__PURE__ */ (0, I.jsx)(zNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74855,7 +74865,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function qNe({ text: e }) {
+function YNe({ 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;
@@ -74868,7 +74878,7 @@ function qNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: zI(e),
+ lang: VI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74880,8 +74890,8 @@ function qNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function JNe(e, t, n) {
- let r = e.id, i = c2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function XNe(e, t, n) {
+ let r = e.id, i = s2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -74900,7 +74910,7 @@ function JNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && sW(), t.toast(yNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && oW(), t.toast(xNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74910,7 +74920,7 @@ function JNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(iNe, { item: r }),
+ mutationFn: () => V(oNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74918,7 +74928,7 @@ function JNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(aNe, {
+ await V(sNe, {
item: r,
media: e,
hidden: t
@@ -74934,12 +74944,12 @@ function JNe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: Mye(r),
- queryFn: ({ signal: e }) => Fye(r, e)
+ queryKey: Pye(r),
+ queryFn: ({ signal: e }) => Lye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await oW([e.id]) : await aW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await aW([e.id]) : await iW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), sW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), oW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74978,8 +74988,8 @@ function JNe(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function Y2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- rL();
+function J2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ aL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
@@ -75025,7 +75035,7 @@ function Y2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function X2({ people: e, onOpen: t }) {
+function Y2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
@@ -75058,7 +75068,7 @@ function X2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function Z2(e) {
+function X2(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;
@@ -75075,7 +75085,7 @@ function Z2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function Z2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(cQ, {
item: {
@@ -75091,7 +75101,7 @@ function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -75109,34 +75119,34 @@ function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var $2 = (e) => ["jav-detail", e], e4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), YNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), t4 = (e, t) => H.ensureQueryData({
- queryKey: $2(e.code),
- queryFn: () => e4(e.code, t),
+var Q2 = (e) => ["jav-detail", e], $2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), ZNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), e4 = (e, t) => H.ensureQueryData({
+ queryKey: Q2(e.code),
+ queryFn: () => $2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function XNe(e, t) {
+function QNe(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 n4 = "peach.playback-target.v1", r4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function ZNe() {
+var t4 = "peach.playback-target.v1", n4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function $Ne() {
try {
- return localStorage.getItem(n4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(t4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function i4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(ZNe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = mH();
+function r4({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)($Ne), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = pH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || r4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || n4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => r4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => n4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -75160,29 +75170,29 @@ function i4({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)($$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Q$, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...r4],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...n4],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(n4, e);
+ localStorage.setItem(t4, e);
} catch {}
}
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...mV(f.busy === "open"),
+ ...pV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(IH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(FH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -75191,16 +75201,16 @@ function i4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(oV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(FH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(PH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var QNe = NI({
+var ePe = FI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75262,8 +75272,8 @@ var QNe = NI({
}
}
});
-function $Ne({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = QNe[t];
+function tPe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = ePe[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"),
@@ -75273,12 +75283,12 @@ function $Ne({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function a4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(ehe, {
+function i4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(the, {
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)($Ne, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tPe, {
state: e,
size: n,
shape: r
@@ -75289,12 +75299,12 @@ function a4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var ePe = "/api/cover-crop", tPe = (e, t) => V(ePe, {
+var nPe = "/api/cover-crop", rPe = (e, t) => V(nPe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function o4({ className: e }) {
+function a4({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -75307,7 +75317,7 @@ function o4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function iPe({ 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",
@@ -75317,13 +75327,13 @@ function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(oV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(rPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(aPe, {
code: e,
coverUrl: t,
box: n,
@@ -75332,9 +75342,9 @@ function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function rPe({ 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 = zV(), f = It({
- mutationFn: (t) => tPe(e, t),
+function aPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = RV(), f = It({
+ mutationFn: (t) => rPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75346,7 +75356,7 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : mOe(e, no);
+ } : hOe(e, no);
c(WZ(t, e, null));
}
let m = f.isPending;
@@ -75354,11 +75364,11 @@ function rPe({ 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)(cV, { children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(sV, { children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(BL, {
+ /* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75367,14 +75377,14 @@ function rPe({ 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)(lV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: CB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75398,7 +75408,7 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(a4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(i4, {
isSelected: l,
onChange: (e) => {
u(e), e && s && a && c(WZ(s, a, no));
@@ -75411,14 +75421,14 @@ function rPe({ 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",
- ...mV(m),
+ ...pV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...mV(m),
+ ...pV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75429,21 +75439,21 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var s4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var o4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), c4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), s4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), l4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function iPe(e) {
+}), c4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
+function oPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? gP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => TP(t, e.helpers, n),
+ queryKey: t ? vP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => DP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? OP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: hP(a ?? 0),
- queryFn: ({ signal: e }) => wP(a, e),
+ }), i = t && r.data || null, a = i ? AP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: _P(a ?? 0),
+ queryFn: ({ signal: e }) => EP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75454,9 +75464,9 @@ function iPe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(u4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75466,13 +75476,13 @@ function iPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(aPe, {
+ return /* @__PURE__ */ (0, I.jsx)(sPe, {
...e,
- item: tde(o.data, i),
+ item: $ue(o.data, i),
queue: i
}, o.data.id);
}
-var u4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var l4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -75481,23 +75491,23 @@ var u4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function aPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = bPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function sPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = SPe(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(_P, {
+ n?.kind === "playlist" && V(yP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = YN() ? "" : dde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = kP(n, t.id);
+ let s = ZN() ? "" : lde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = jP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cPe, {
item: t,
gate: s,
helpers: i,
@@ -75510,22 +75520,22 @@ function aPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(dPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(pPe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(L2, {
+ }), /* @__PURE__ */ (0, I.jsx)(I2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(cPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(uPe, {
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)(yPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(xPe, {
...e,
item: n ? {
...t,
@@ -75534,12 +75544,12 @@ function aPe(e) {
}) : null
})] });
}
-function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function cPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Ft({
- queryKey: $2(e.code || ""),
+ queryKey: Q2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, e4(e.code, t, n);
+ return d.current = !1, $2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -75584,7 +75594,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, I.jsx)(u4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(l4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -75594,21 +75604,21 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", { "data-player-net-slot": "" })
]
}),
- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(Q2, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(Z2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(R2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(L2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(Q2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(Z2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -75624,7 +75634,7 @@ function oPe({ 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",
- ...mV(f.isFetching),
+ ...pV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75633,7 +75643,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(sPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(lPe, {
item: e,
badge: y,
helpers: n,
@@ -75644,7 +75654,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(i4, {
+ /* @__PURE__ */ (0, I.jsx)(r4, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -75654,7 +75664,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(c4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(s4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75669,12 +75679,12 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", l4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(s4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", c4(e.size)] })]
}) : null
]
});
}
-function sPe({ item: e, badge: t, helpers: n, actions: r }) {
+function lPe({ 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);
@@ -75685,7 +75695,7 @@ function sPe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(c4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(s4, { html: t }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75699,8 +75709,8 @@ function sPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = sde(e), a = (0, F.useRef)(null), o = uPe(e, t, r), s = (0, F.useRef)(o);
+function uPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = ade(e), a = (0, F.useRef)(null), o = fPe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -75708,7 +75718,7 @@ function cPe({ 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 = lPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = dPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75727,7 +75737,7 @@ function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ return /* @__PURE__ */ (0, I.jsx)(yK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75736,11 +75746,11 @@ function cPe({ 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 ${ade[i.edition_label] || "censored"}`,
+ className: `javedition ${rde[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && DP(i);
- return /* @__PURE__ */ (0, I.jsxs)(xK, {
+ }) : null, s = e.kind === "playlist" && kP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(bK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75750,25 +75760,25 @@ function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(c4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(s4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(c4, { html: jo(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(s4, { html: jo(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, I.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -75779,14 +75789,14 @@ function cPe({ 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 ? LP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? zP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function lPe(e, t) {
- let n = It({ mutationFn: (t) => V(_P, {
+function dPe(e, t) {
+ let n = It({ mutationFn: (t) => V(yP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75799,11 +75809,11 @@ function lPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function uPe(e, t, n) {
- let r = gP({
+function fPe(e, t, n) {
+ let r = vP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, EP(e)), e), a = (t) => V(_P, {
+ }), i = (e) => (H.setQueryData(r, OP(e)), e), a = (t) => V(yP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75819,8 +75829,8 @@ function uPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = lde(s, t, r, c);
- if (ude(l, s)) return;
+ let l = sde(s, t, r, c);
+ if (cde(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75862,7 +75872,7 @@ function uPe(e, t, n) {
}
};
}
-function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function pPe({ 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": "",
@@ -75870,7 +75880,7 @@ function dPe({ 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)(fPe, {
+ /* @__PURE__ */ (0, I.jsx)(mPe, {
item: e,
queue: t,
helpers: r,
@@ -75882,7 +75892,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(mPe, {
+ /* @__PURE__ */ (0, I.jsx)(gPe, {
item: e,
write: n
}),
@@ -75893,7 +75903,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -75901,11 +75911,11 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: l4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: c4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -75913,32 +75923,32 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(i4, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(r4, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(hPe, {
+ /* @__PURE__ */ (0, I.jsx)(_Pe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(gPe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(MK, {
- assetIds: jK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(jK, {
+ assetIds: AK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: hP(e.id) });
+ H.invalidateQueries({ queryKey: _P(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(_Pe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(yPe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75952,7 +75962,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75964,7 +75974,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75975,7 +75985,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75986,7 +75996,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75997,7 +76007,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76006,7 +76016,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76017,7 +76027,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76028,11 +76038,11 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(vPe, {
+ /* @__PURE__ */ (0, I.jsx)(bPe, {
item: e,
open: s,
write: n
@@ -76043,7 +76053,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(s4, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)(o4, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -76056,8 +76066,8 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = Z2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + cde(e, t);
+function mPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = X2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ode(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76084,23 +76094,23 @@ function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(MH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(nPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(iPe, {
code: e.cover_key || e.code || "",
coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: hP(e.id),
+ queryKey: _P(e.id),
exact: !0
- }), dP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), pP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(pPe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(hPe, {
id: e.id,
actions: r,
onStatus: i
@@ -76110,7 +76120,7 @@ function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function pPe({ id: e, actions: t, onStatus: n }) {
+function hPe({ 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 () => {
@@ -76140,18 +76150,18 @@ function pPe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "folder-sync" })
})] });
}
-function mPe({ item: e, write: t }) {
- let n = pP(e.rating);
+function gPe({ item: e, write: t }) {
+ let n = hP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": fP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
+ "data-value": mP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(KJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76165,14 +76175,14 @@ function mPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Zue(e.rating)
+ children: Yue(e.rating)
})]
});
}
-function hPe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => nde(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function _Pe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => ede(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, I.jsx)(Y2, {
+ return /* @__PURE__ */ (0, I.jsx)(J2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -76204,7 +76214,7 @@ function hPe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -76216,7 +76226,7 @@ function hPe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: _B,
+ trailingIcon: gB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76235,18 +76245,18 @@ function hPe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(X2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Y2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function gPe({ item: e, write: t, helpers: n, actions: r }) {
+function vPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(V2, {
+ children: /* @__PURE__ */ (0, I.jsx)(B2, {
id: "detailTags",
- tags: rde(e, n),
+ tags: tde(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76257,8 +76267,8 @@ function gPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function _Pe({ item: e }) {
- let t = fde(e);
+function yPe({ item: e }) {
+ let t = ude(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76292,7 +76302,7 @@ function _Pe({ item: e }) {
})]
});
}
-function vPe({ item: e, open: t, write: n }) {
+function bPe({ 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();
@@ -76331,12 +76341,12 @@ function vPe({ item: e, open: t, write: n }) {
})]
});
}
-function yPe(e) {
+function xPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: Que(t.id, n),
- queryFn: async ({ signal: e }) => (await B(ede(t.id, n), e)).items || []
+ queryKey: Xue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Que(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(I2, {
+ return /* @__PURE__ */ (0, I.jsx)(F2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -76344,7 +76354,7 @@ function yPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(nY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76357,11 +76367,11 @@ function yPe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(c4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(s4, { html: o })
});
}
-function bPe(e, t, n) {
- let r = e.id, i = hP(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 SPe(e, t, n) {
+ let r = e.id, i = _P(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76377,7 +76387,7 @@ function bPe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return uP(r, n), t;
+ return fP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76392,7 +76402,7 @@ function bPe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(vP, t === void 0 ? { kind: e } : {
+ let n = await m(bP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76412,21 +76422,21 @@ function bPe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = mP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${pP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = gP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${hP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(RP(e, r), { undo: async () => {
+ t.toast(BP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(bP, {});
+ let e = await m(SP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(bP, {})).watch_later });
+ p({ watch_later: (await m(SP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76436,9 +76446,9 @@ function bPe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(xP, { wanted: !e.wanted });
+ }), r = await m(CP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(xP, e));
+ n(await m(CP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76452,7 +76462,7 @@ function bPe(e, t, n) {
});
u("保存中…");
try {
- o(await m(SP, {
+ o(await m(wP, {
liked: a,
reason: i
}));
@@ -76462,7 +76472,7 @@ function bPe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(SP, r));
+ o(await m(wP, r));
} });
});
},
@@ -76471,41 +76481,41 @@ function bPe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => MP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(yP, {
+ p((t) => PP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(xP, {
operation: "add",
tag: e.k
- }), p((t) => NP(t, e));
+ }), p((t) => FP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(yP, {
+ let e = await m(xP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- jP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => NP(e, {
+ NP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => FP(e, {
k: i,
cat: "general"
- })), IP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(yP, {
+ })), RP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(xP, {
operation: "remove",
tag: i
- }), p((e) => MP(e, i));
+ }), p((e) => PP(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var d4 = 864e5, f4 = (e) => {
+var u4 = 864e5, d4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function p4(e) {
+function f4(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -76513,25 +76523,25 @@ function p4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function xPe(e, t = Date.now()) {
- let n = p4(e);
- return n !== void 0 && f4(t) > n ? Infinity : d4;
+function CPe(e, t = Date.now()) {
+ let n = f4(e);
+ return n !== void 0 && d4(t) > n ? Infinity : u4;
}
-function m4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : xPe(t, n) === Infinity ? f4(e) > p4(t) : n - e < d4;
+function p4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : CPe(t, n) === Infinity ? d4(e) > f4(t) : n - e < u4;
}
// src/react/wants/resource-cache.ts
-var h4 = "peach.want-resources.v2";
-function g4(e) {
+var m4 = "peach.want-resources.v2";
+function h4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function _4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !g4(e) ? Date.now() - t < 6e4 : m4(t, n));
+function g4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !h4(e) ? Date.now() - t < 6e4 : p4(t, n));
}
-function v4() {
+function _4() {
try {
- let e = JSON.parse(localStorage.getItem(h4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && g4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(m4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && h4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -76540,23 +76550,23 @@ function v4() {
return [];
}
}
-function SPe(e, t) {
- let n = v4().find((t) => t.code === e);
- return n && m4(n.saved, t) ? n : void 0;
+function wPe(e, t) {
+ let n = _4().find((t) => t.code === e);
+ return n && p4(n.saved, t) ? n : void 0;
}
-function CPe(e) {
- let t = new Map(v4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function TPe(e) {
+ let t = new Map(_4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && m4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && p4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function wPe(e, t) {
- if (t.state === "ready" && g4(t)) try {
- let n = v4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(h4, JSON.stringify([{
+function EPe(e, t) {
+ if (t.state === "ready" && h4(t)) try {
+ let n = _4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(m4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -76564,15 +76574,15 @@ function wPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function TPe(e) {
+function DPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function EPe(e) {
+function OPe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function y4({ icon: e, children: t, title: n }) {
+function v4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -76582,8 +76592,8 @@ function y4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function b4({ 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 = mH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => SPe(h, e.release_date), [h, e.release_date]);
+function y4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = pH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => wPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76603,22 +76613,22 @@ function b4({ 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", wPe(h, i), i;
+ return m.current = n && i.state === "busy", EPe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => _4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => g4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !_4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !g4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Pye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Iye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76626,7 +76636,7 @@ function b4({ 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(qU, {
+ let n = await V(KU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76637,7 +76647,7 @@ function b4({ 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: JU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: qU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76655,39 +76665,39 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: UB,
- ...mV(x),
+ leadingIcon: HB,
+ ...pV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(EH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(TH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(lV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
- children: EPe(e)
+ children: OPe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: OB,
+ trailingIcon: DB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76702,7 +76712,7 @@ function b4({ 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)(GU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76716,26 +76726,26 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: Lge,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: Rge,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: FB,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: PB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: TPe(e.size)
+ children: DPe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: Ege,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: Dge,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: fge,
+ /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: pge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: HB,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(v4, {
+ icon: VB,
children: e
}, e))
]
@@ -76744,11 +76754,11 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(vL, {
+ /* @__PURE__ */ (0, I.jsx)(bL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: OB,
+ trailingIcon: DB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76757,18 +76767,18 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: wge,
- ...mV(f.busy === `copy:${e.id}`),
+ leadingIcon: Tge,
+ ...pV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? VH(v.key) : _ge,
+ leadingIcon: v ? BH(v.key) : vge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...mV(f.busy === e.id),
+ ...pV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76779,7 +76789,7 @@ function b4({ 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)(RH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(LH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76791,10 +76801,10 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var x4 = "peach.jav-reviews.v2";
-function S4() {
+var b4 = "peach.jav-reviews.v2";
+function x4() {
try {
- let e = localStorage.getItem(x4) || "[]";
+ let e = localStorage.getItem(b4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -76802,21 +76812,21 @@ function S4() {
return [];
}
}
-function DPe(e, t) {
+function kPe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...S4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(x4, i);
+ }, ...x4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(b4, i);
} catch {}
}
-function OPe(e, t) {
- let n = S4(), r = [], i = Infinity;
+function APe(e, t) {
+ let n = x4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !m4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !p4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -76824,16 +76834,16 @@ function OPe(e, t) {
saved: i
} : void 0;
}
-function kPe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && m4(Date.parse(e.checked_at || "") || t, n));
+function jPe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && p4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function APe(e) {
+function MPe(e) {
let t = (0, F.useRef)(!1), n = Ft({
- queryKey: $2(e.code),
+ queryKey: Q2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, e4(e.code, n, r);
+ return t.current = !1, $2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -76843,21 +76853,21 @@ function APe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(jPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(NPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(C4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(S4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(IG, {
message: lr(n.error),
onRetry: r
}) : null]
})
});
}
-var C4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var S4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76866,7 +76876,7 @@ var C4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function NPe({ 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)(() => {
@@ -76886,13 +76896,13 @@ function jPe({ 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 = mH(), m = () => {
- p.run("want", async (e) => d ? (await oW([d], e), null) : (await aW({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData($2(e), (e) => e && {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = pH(), m = () => {
+ p.run("want", async (e) => d ? (await aW([d], e), null) : (await iW({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData(Q2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), sW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), oW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76901,19 +76911,19 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(C4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(S4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(PPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(cQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(IPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(cQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(R2, {
+ /* @__PURE__ */ (0, I.jsx)(L2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
@@ -76932,33 +76942,33 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(MPe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(E4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(PPe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(T4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(T4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(T4, {
+ }), /* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(NPe, {
+ /* @__PURE__ */ (0, I.jsx)(FPe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(T4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(T4, {
+ }), /* @__PURE__ */ (0, I.jsx)(w4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -76987,14 +76997,14 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: zI(t.summary),
+ lang: VI(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(a),
+ ...pV(a),
onClick: i,
children: "立即重试"
}),
@@ -77003,10 +77013,10 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(bL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: OB,
+ trailingIcon: DB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77016,7 +77026,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...mV(!!p.busy),
+ ...pV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77034,16 +77044,16 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(FPe, {
+ /* @__PURE__ */ (0, I.jsx)(LPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(IPe, {
+ /* @__PURE__ */ (0, I.jsx)(RPe, {
item: t,
actions: n,
readOnly: r
@@ -77051,24 +77061,24 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(tW, {
+ /* @__PURE__ */ (0, I.jsx)(eW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var w4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var C4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), T4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), w4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function MPe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = Z2(e.title), a = e.title === e.code ? "" : e.title;
+function PPe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = X2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -77084,7 +77094,7 @@ function MPe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(a),
+ lang: VI(a),
children: a
})] }) : null]
})
@@ -77098,25 +77108,25 @@ function MPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(MH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jH, {})
})
})]
});
}
-function E4({ score: e, review: t = !1 }) {
+function T4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(KJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function NPe({ item: e, navigate: t }) {
+function FPe({ item: e, navigate: t }) {
let n = (e, n) => t(Pn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -77125,7 +77135,7 @@ function NPe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(Y2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(J2, {
kind: t,
person: {
...r,
@@ -77149,7 +77159,7 @@ function NPe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, I.jsx)(X2, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -77158,18 +77168,18 @@ function NPe({ item: e, navigate: t }) {
})]
});
}
-function PPe({ src: e }) {
+function IPe({ 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), Rue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Iue(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)(lV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -77182,8 +77192,8 @@ function PPe({ src: e }) {
}) : null
});
}
-function FPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => OPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function LPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => APe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77192,12 +77202,12 @@ function FPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => kPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => jPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await YNe(e, n, t, s.current);
- if (DPe(e, i), !i.ok || i.cache_stale) {
+ let i = await ZNe(e, n, t, s.current);
+ if (kPe(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,
@@ -77207,7 +77217,7 @@ function FPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: XNe
+ getNextPageParam: QNe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77215,10 +77225,10 @@ function FPe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? lr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(RH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(LH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(pge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(mge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77255,7 +77265,7 @@ function FPe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(E4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(T4, {
score: Number(e.score),
review: !0
}) : null,
@@ -77267,28 +77277,28 @@ function FPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: zI(e.content),
+ lang: VI(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetching),
+ ...pV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetching),
+ ...pV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77296,13 +77306,13 @@ function FPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetchingNextPage),
+ ...pV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(cV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77314,21 +77324,21 @@ function FPe({ code: e, count: t, released: n }) {
})
});
}
-function IPe({ item: e, actions: t, readOnly: n }) {
+function RPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: JU,
+ queryKey: qU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${KU}?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)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(LH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(b4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(y4, {
want: {
id: 0,
code: e.code,
@@ -77345,31 +77355,31 @@ function IPe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var D4 = null, O4 = null, k4 = null, A4 = null, j4 = null, M4 = !1, N4 = 0, P4 = null, F4 = () => !1, I4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function LPe(e, t) {
- D4 = e, F4 = () => t.isOpen(), P4 = () => t.requestClose(), Xle({
+var E4 = null, D4 = null, O4 = null, k4 = null, A4 = null, j4 = !1, M4 = 0, N4 = null, P4 = () => !1, F4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function zPe(e, t) {
+ E4 = e, P4 = () => t.isOpen(), N4 = () => t.requestClose(), Jle({
...e.player,
stage: () => document.getElementById("stage")
- }), Zle({
- inMiniplayer: (e) => O4?.player === e,
- kind: (e) => O4?.player === e ? O4.kind : k4?.kind ?? A4?.kind ?? "item",
- expand: () => n3(),
- toMiniplayer: () => r3()
- }), L4 || (L4 = !0, addEventListener("pagehide", () => WN()));
-}
-var L4 = !1;
-function R4() {
- if (!D4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return D4;
-}
-function z4(e) {
- A4 = e;
-}
-var RPe = () => A4;
-function B4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = I4(n, r.id, i?.index ?? null);
- if (O4 && O4.key === a) return BPe(e, O4);
- O4 && t3();
+ }), Yle({
+ inMiniplayer: (e) => D4?.player === e,
+ kind: (e) => D4?.player === e ? D4.kind : O4?.kind ?? k4?.kind ?? "item",
+ expand: () => t3(),
+ toMiniplayer: () => n3()
+ }), I4 || (I4 = !0, addEventListener("pagehide", () => KN()));
+}
+var I4 = !1;
+function L4() {
+ if (!E4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return E4;
+}
+function R4(e) {
+ k4 = e;
+}
+var BPe = () => k4;
+function z4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = F4(n, r.id, i?.index ?? null);
+ if (D4 && D4.key === a) return HPe(e, D4);
+ D4 && e3();
let o = {
player: null,
kind: n,
@@ -77377,52 +77387,52 @@ function B4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- k4 = o;
+ O4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = rP(s, {
+ let c = aP(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- k4 === o && (o.player = e);
+ O4 === o && (o.player = e);
},
- handedOff: (e) => O4?.player === e
+ handedOff: (e) => D4?.player === e
});
return () => {
- let e = !!o.player && O4?.player === o.player;
- k4 === o && (k4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), WN());
+ let e = !!o.player && D4?.player === o.player;
+ O4 === o && (O4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), KN());
};
}
-async function zPe(e, t, n) {
+async function VPe(e, t, n) {
let r = await Tn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await R4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(R4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await L4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(L4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- z4(a);
- let o = B4(t, {
+ R4(a);
+ let o = z4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && A4 === a && H4(!0), o(), A4 === a && z4(null));
+ s || (s = !0, e && k4 === a && V4(!0), o(), k4 === a && R4(null));
};
}
-function BPe(e, t) {
+function HPe(e, t) {
let { player: n } = t;
- $4(t), O4 = null, e3(), n.el().classList.remove("vjs-peach-mini"), tP(e), e.append(n.el()), qM(n);
+ Q4(t), D4 = null, $4(), n.el().classList.remove("vjs-peach-mini"), rP(e), e.append(n.el()), YM(n);
let r = {
player: n,
kind: t.kind,
@@ -77430,23 +77440,23 @@ function BPe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- k4 = r;
- let i = nP(n, e);
- return JM(n), () => {
- k4 === r && (k4 = null), i(), O4?.player !== n && (KM() === n && qM(null), FN(n), WN());
+ O4 = r;
+ let i = iP(n, e);
+ return XM(n), () => {
+ O4 === r && (O4 = null), i(), D4?.player !== n && (JM() === n && YM(null), LN(n), KN());
};
}
-var V4 = () => {
- let e = k4?.player;
+var B4 = () => {
+ let e = O4?.player;
return e && !e.isDisposed() ? e : null;
};
-function H4(e) {
- let t = M4;
- M4 = !1, O4?.pending && t3();
- let n = k4, r = n?.player, i = A4;
- if (!n || !r || r.isDisposed() || !i || !j4) return;
- let a = R4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && WPe({
+function V4(e) {
+ let t = j4;
+ j4 = !1, D4?.pending && e3();
+ let n = O4, r = n?.player, i = k4;
+ if (!n || !r || r.isDisposed() || !i || !A4) return;
+ let a = L4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && KPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77454,46 +77464,46 @@ function H4(e) {
key: n.key
}, i);
}
-function U4(e, t) {
- M4 = !1, O4 && (O4.kind === e && O4.item.id === t ? (O4.pending = !0, e3()) : t3());
+function H4(e, t) {
+ j4 = !1, D4 && (D4.kind === e && D4.item.id === t ? (D4.pending = !0, $4()) : e3());
}
-function W4(e) {
- j4 = e, j4 && Z4();
+function U4(e) {
+ A4 = e, A4 && X4();
}
-var G4 = () => !!O4 && !O4.pending && !O4.player.isDisposed();
-function VPe() {
- return G4() ? j4?.frame.querySelector("video") ?? null : null;
+var W4 = () => !!D4 && !D4.pending && !D4.player.isDisposed();
+function UPe() {
+ return W4() ? A4?.frame.querySelector("video") ?? null : null;
}
-function HPe() {
- return F4() ? document.getElementById("stage")?.querySelector("video") ?? null : V4()?.el().querySelector("video") ?? VPe();
+function WPe() {
+ return P4() ? document.getElementById("stage")?.querySelector("video") ?? null : B4()?.el().querySelector("video") ?? UPe();
}
-function K4(e) {
- j4 && (j4.title.textContent = e.title || "", j4.sub.textContent = e.sub || "", j4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function G4(e) {
+ A4 && (A4.title.textContent = e.title || "", A4.sub.textContent = e.sub || "", A4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function q4(e = O4?.item) {
- if (!j4) return;
- let t = j4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- j4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function K4(e = D4?.item) {
+ if (!A4) return;
+ let t = A4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ A4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function J4() {
- let e = O4?.player;
- if (!e || e.isDisposed() || !j4) return;
+function q4() {
+ let e = D4?.player;
+ if (!e || e.isDisposed() || !A4) return;
let t = e.paused();
- j4.play.setAttribute("aria-label", t ? "播放" : "暂停"), j4.play.querySelector("[data-icon-swap]") || (j4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(j4.play, t ? "b" : "a");
-}
-function Y4() {
- let e = O4?.player;
- if (!e || e.isDisposed() || !j4) return;
- let t = qn(O4?.item.duration) || qn(e.duration());
- j4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
+ A4.play.setAttribute("aria-label", t ? "播放" : "暂停"), A4.play.querySelector("[data-icon-swap]") || (A4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(A4.play, t ? "b" : "a");
}
-var X4 = () => Math.max(1, Number(R4().player.settings().seekSeconds) || 10);
-function Z4() {
- if (!j4 || !D4) return;
- let e = X4();
- for (let [t, n] of [[j4.back, `后退 ${e} 秒`], [j4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function Q4(e) {
+function J4() {
+ let e = D4?.player;
+ if (!e || e.isDisposed() || !A4) return;
+ let t = qn(D4?.item.duration) || qn(e.duration());
+ A4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
+}
+var Y4 = () => Math.max(1, Number(L4().player.settings().seekSeconds) || 10);
+function X4() {
+ if (!A4 || !E4) return;
+ let e = Y4();
+ for (let [t, n] of [[A4.back, `后退 ${e} 秒`], [A4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function Z4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -77505,17 +77515,17 @@ function Q4(e) {
"play",
"pause",
"ended"
- ], J4), t([
+ ], q4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], Y4), t("loadedmetadata", () => q4()), J4(), Y4(), q4(), Z4();
+ ], J4), t("loadedmetadata", () => K4()), q4(), J4(), K4(), X4();
}
-function $4(e) {
+function Q4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function UPe() {
- let e = j4?.root;
+function GPe() {
+ let e = A4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -77523,8 +77533,8 @@ function UPe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function e3() {
- let e = j4?.root;
+function $4() {
+ let e = A4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -77535,73 +77545,73 @@ function e3() {
e.style.transform = "";
}
}
-function WPe(e, t) {
- if (!j4) return;
+function KPe(e, t) {
+ if (!A4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- O4 = n, N4++, e.player.el().classList.add("vjs-peach-mini"), j4.frame.prepend(e.player.el()), K4(t), Q4(n), UPe(), JM(e.player);
+ D4 = n, M4++, e.player.el().classList.add("vjs-peach-mini"), A4.frame.prepend(e.player.el()), G4(t), Z4(n), GPe(), XM(e.player);
}
-function t3() {
- let e = O4;
- e && $4(e), O4 = null, N4++;
+function e3() {
+ let e = D4;
+ e && Q4(e), D4 = null, M4++;
let t = e?.player ?? null;
- t && KM() === t && qM(null), FN(t), t && WN(), j4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), WM(), e3();
+ t && JM() === t && YM(null), LN(t), t && KN(), A4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KM(), $4();
}
-function n3() {
- if (!G4() || !O4) return;
- let { kind: e, item: t, mediaIndex: n } = O4;
- R4().expand(e, t.id, n);
+function t3() {
+ if (!W4() || !D4) return;
+ let { kind: e, item: t, mediaIndex: n } = D4;
+ L4().expand(e, t.id, n);
}
-function r3() {
- G4() && !F4() ? n3() : F4() && V4() && P4 && (M4 = !0, P4());
+function n3() {
+ W4() && !P4() ? t3() : P4() && B4() && N4 && (j4 = !0, N4());
}
-function GPe() {
- let e = O4?.player;
+function qPe() {
+ let e = D4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function i3(e) {
- let t = O4?.player;
+function r3(e) {
+ let t = D4?.player;
if (!t || t.isDisposed()) return;
- let n = qn(t.duration()) || qn(O4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + X4() * e);
+ let n = qn(t.duration()) || qn(D4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Y4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function a3(e) {
- return !(!G4() || !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 || R4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function KPe(e) {
- if (!G4() || !O4 || !j4) return;
- let t = ++N4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
- if (t !== N4 || !G4() || !O4 || !j4 || !n || n.error) return;
- if (!a3(n)) {
- R4().openItem(e);
+function i3(e) {
+ return !(!W4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || L4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function JPe(e) {
+ if (!W4() || !D4 || !A4) return;
+ let t = ++M4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== M4 || !W4() || !D4 || !A4 || !n || n.error) return;
+ if (!i3(n)) {
+ L4().openItem(e);
return;
}
- let r = O4;
- $4(r), KM() === r.player && qM(null), FN(r.player), WN(), j4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = D4;
+ Q4(r), JM() === r.player && YM(null), LN(r.player), KN(), A4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", j4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", A4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- K4(a), rP(i, {
+ G4(a), aP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== N4) {
- r && KM() === r && qM(null), FN(r);
+ if (t !== M4) {
+ r && JM() === r && YM(null), LN(r);
return;
}
if (!r) {
- t3(), R4().openItem(e);
+ e3(), L4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -77610,25 +77620,25 @@ async function KPe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: I4("item", n.id, null),
+ key: F4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- O4 = i, Q4(i);
+ D4 = i, Z4(i);
}
- }), q4(n);
+ }), K4(n);
}
// src/react/stage/miniplayer.tsx
-var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), qPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, s3 = (e) => (t) => {
+}), YPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, o3 = (e) => (t) => {
t.stopPropagation(), e();
-}, JPe = (0, F.memo)(function() {
+}, XPe = (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)(() => (W4({
+ return (0, F.useLayoutEffect)(() => (U4({
root: e.current,
frame: n.current,
play: r.current,
@@ -77638,7 +77648,7 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => W4(null)), []), (0, F.useEffect)(() => ZPe(e.current, t.current), []), (0, F.useEffect)(() => YPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => U4(null)), []), (0, F.useEffect)(() => $Pe(e.current, t.current), []), (0, F.useEffect)(() => ZPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77662,24 +77672,24 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: s3(n3),
- children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "maximize-2" })
+ onClick: o3(t3),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: s3(t3),
- children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "x" })
+ onClick: o3(e3),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: s3(() => i3(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "rotate-ccw" })
+ onClick: o3(() => r3(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -77688,16 +77698,16 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: s3(GPe),
- dangerouslySetInnerHTML: qPe
+ onClick: o3(qPe),
+ dangerouslySetInnerHTML: YPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: s3(() => i3(1)),
- children: /* @__PURE__ */ (0, I.jsx)(o3, { name: "rotate-cw" })
+ onClick: o3(() => r3(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(a3, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -77714,7 +77724,7 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => n3(),
+ onClick: () => t3(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -77728,7 +77738,7 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function YPe(e) {
+function ZPe(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");
@@ -77742,7 +77752,7 @@ function YPe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function XPe(e, t, n) {
+function QPe(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
@@ -77764,7 +77774,7 @@ function XPe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function ZPe(e, t) {
+function $Pe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -77790,7 +77800,7 @@ function ZPe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), XPe(e, i.dx, i.dy));
+ }, 0), QPe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77801,57 +77811,57 @@ function ZPe(e, t) {
};
}
// src/react/stage/stage.tsx
-var c3 = null, l3 = null, u3 = null, d3 = /* @__PURE__ */ new Set(), f3 = 0, p3 = null, m3 = !1, h3 = !1, g3 = () => {
+var s3 = null, c3 = null, l3 = null, u3 = /* @__PURE__ */ new Set(), d3 = 0, f3 = null, p3 = !1, m3 = !1, h3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function _3() {
- if (!c3) throw Error("舞台还没有接上宿主(configureStage)");
- return c3;
+function g3() {
+ if (!s3) throw Error("舞台还没有接上宿主(configureStage)");
+ return s3;
}
-function QPe(e) {
- return d3.add(e), () => {
- d3.delete(e);
+function eFe(e) {
+ return u3.add(e), () => {
+ u3.delete(e);
};
}
-function $Pe() {
- for (let e of [...d3]) e();
+function tFe() {
+ for (let e of [...u3]) e();
}
-function v3() {
- (0, Rt.flushSync)($Pe);
+function _3() {
+ (0, Rt.flushSync)(tFe);
}
-function eFe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(tFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(JPe, {})] });
+function nFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(rFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(XPe, {})] });
}
-var y3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var v3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: $Me() }
+ dangerouslySetInnerHTML: { __html: tNe() }
});
-function b3(e) {
+function y3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function x3() {
- let e = g3(), t = e && nNe(e);
+function b3() {
+ let e = h3(), t = e && iNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : S3();
+ }))) : x3();
}
-function tFe({ view: e }) {
+function rFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), x3());
+ t.target === e && (t.preventDefault(), b3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(iPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(APe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(zNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(oPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(MPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(VNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77859,27 +77869,27 @@ function tFe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), x3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), b3());
},
onPointerDown: (e) => {
- h3 = b3(e);
+ m3 = y3(e);
},
onClick: (e) => {
- h3 && b3(e) && S3();
+ m3 && y3(e) && x3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(y3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(v3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(y3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(v3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(wD, {
- getContainer: () => a2(t.current),
+ children: /* @__PURE__ */ (0, I.jsx)(CD, {
+ getContainer: () => i2(t.current),
children: i
})
})
@@ -77887,14 +77897,14 @@ function tFe({ view: e }) {
]
});
}
-function S3() {
- l3 && !m3 && (m3 = !0, l3.request.actions.close());
+function x3() {
+ c3 && !p3 && (p3 = !0, c3.request.actions.close());
}
-function C3(e, t) {
- let n = g3();
+function S3(e, t) {
+ let n = h3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function w3(e) {
+function C3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -77902,30 +77912,30 @@ function w3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: S3
+ close: x3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => _3().player.settings(), i = () => l3?.request === e;
+ }, r = () => g3().player.settings(), i = () => c3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: S3,
+ close: x3,
present: (e, t) => {
let n = e.performers;
- z4({
+ R4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), C3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), S3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => B4(e, {
+ mountPlayer: (e, t, r, i) => z4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -77943,18 +77953,18 @@ function w3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: S3,
+ close: x3,
present: (e, t) => {
- z4({
+ R4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), C3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), S3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => B4(e, {
+ mountPlayer: (e, t, r, i) => z4(e, {
kind: "follow",
item: t,
media: r,
@@ -77971,106 +77981,106 @@ function w3(e) {
}
};
}
-function nFe(e, t) {
+function iFe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), l3?.generation === t && l3.phase === "reveal" && (l3 = {
- ...l3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), c3?.generation === t && c3.phase === "reveal" && (c3 = {
+ ...c3,
phase: "content"
- }, v3());
+ }, _3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function T3(e) {
- let t = g3();
- return !l3 || l3.content.kind !== e || m3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function w3(e) {
+ let t = h3();
+ return !c3 || c3.content.kind !== e || p3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function rFe(e) {
- !u3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (u3 = {
+async function aFe(e) {
+ !l3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (l3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = T3(e.kind);
+ let t = w3(e.kind);
if (t) {
- await aFe(e, t);
+ await sFe(e, t);
return;
}
- l3 && E3({ miniplayer: !1 });
- let n = ++f3, r = new AbortController();
- p3 = r, m3 = !1, h3 = !1, e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN);
- let i = w3(e);
- l3 = {
+ c3 && T3({ miniplayer: !1 });
+ let n = ++d3, r = new AbortController();
+ f3 = r, p3 = !1, m3 = !1, e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN);
+ let i = C3(e);
+ c3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? AP(i.props, r.signal) : i.kind === "jav" ? t4(i.props, r.signal) : d2(i.props, r.signal);
- if (n !== f3 || l3?.request !== e) {
+ let a = i.kind === "item" ? MP(i.props, r.signal) : i.kind === "jav" ? e4(i.props, r.signal) : u2(i.props, r.signal);
+ if (n !== d3 || c3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = iFe(i);
- l3 = {
- ...l3,
+ let o = oFe(i);
+ c3 = {
+ ...c3,
phase: o ? "content" : "skeleton"
- }, v3();
- let s = g3();
+ }, _3();
+ let s = h3();
if (!s) {
await a.catch(() => {});
return;
}
- o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), s2(s);
+ o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), o2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== f3 || !l3 || o) return;
+ if (n !== d3 || !c3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- l3 = {
- ...l3,
+ c3 = {
+ ...c3,
phase: c ? "content" : "reveal"
- }, v3(), c || nFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, _3(), c || iFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function iFe(e) {
- if (e.kind === "jav") return !!H.getQueryData($2(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(c2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(gP(t)) : null;
+function oFe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(Q2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(s2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(vP(t)) : null;
if (t && !r) return !1;
- let i = r ? OP(r, n) : n;
- return i != null && !!H.getQueryData(hP(i));
+ let i = r ? AP(r, n) : n;
+ return i != null && !!H.getQueryData(_P(i));
}
-async function aFe(e, t) {
- let n = ++f3;
- p3?.abort();
+async function sFe(e, t) {
+ let n = ++d3;
+ f3?.abort();
let r = new AbortController();
- p3 = r, h3 = !1;
- let i = w3(e);
+ f3 = r, m3 = !1;
+ let i = C3(e);
try {
- i.kind === "item" ? await AP(i.props, r.signal) : i.kind === "jav" ? await t4(i.props, r.signal) : await d2(i.props, r.signal);
+ i.kind === "item" ? await MP(i.props, r.signal) : i.kind === "jav" ? await e4(i.props, r.signal) : await u2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== f3 || !l3 || T3(e.kind) !== t) return;
- e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN), Nl(t), WM(), l3 = {
- ...l3,
+ if (n !== d3 || !c3 || w3(e.kind) !== t) return;
+ e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN), Nl(t), KM(), c3 = {
+ ...c3,
request: e,
content: i,
phase: "content"
- }, v3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, _3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function oFe() {
- s2(null);
- let e = g3();
+function cFe() {
+ o2(null);
+ let e = h3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -78080,14 +78090,14 @@ function oFe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function E3({ miniplayer: e = !0 } = {}) {
- if (f3++, p3?.abort(), p3 = null, H4(e), !l3) return;
- let t = g3();
- t && Nl(t), WM(), s2(null), t?.open && t.close(), l3 = null, m3 = !1, h3 = !1, v3(), z4(null), document.body.removeAttribute("data-detail-open");
- let n = u3;
- u3 = null;
+function T3({ miniplayer: e = !0 } = {}) {
+ if (d3++, f3?.abort(), f3 = null, V4(e), !c3) return;
+ let t = h3();
+ t && Nl(t), KM(), o2(null), t?.open && t.close(), c3 = null, p3 = !1, m3 = !1, _3(), R4(null), document.body.removeAttribute("data-detail-open");
+ let n = l3;
+ l3 = null;
let r = () => {
- !l3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !c3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -78095,80 +78105,80 @@ function E3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function sFe(e) {
- l3 && (l3 = {
- ...l3,
- content: l3.content.kind === "item" ? {
+function lFe(e) {
+ c3 && (c3 = {
+ ...c3,
+ content: c3.content.kind === "item" ? {
kind: "item",
props: {
- ...l3.content.props,
+ ...c3.content.props,
...e
}
- } : l3.content.kind === "jav" ? l3.content : {
+ } : c3.content.kind === "jav" ? c3.content : {
kind: "follow",
props: {
- ...l3.content.props,
+ ...c3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, v3());
+ }, _3());
}
-function cFe() {
- let e = RPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, _3().player.settings().javImage) : "";
+function uFe() {
+ let e = BPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, g3().player.settings().javImage) : "";
if (!n) return;
- let r = V4();
+ let r = B4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var lFe = {
- open: rFe,
- update: sFe,
- exit: oFe,
- dispose: E3,
- requestClose: S3,
- requestEscape: x3,
- repaintPoster: cFe,
- isOpen: () => !!l3,
- showing: () => l3 && T3(l3.content.kind) ? l3.content.kind : null,
- activeVideo: () => HPe(),
- mountWallPlayer: zPe,
+var dFe = {
+ open: aFe,
+ update: lFe,
+ exit: cFe,
+ dispose: T3,
+ requestClose: x3,
+ requestEscape: b3,
+ repaintPoster: uFe,
+ isOpen: () => !!c3,
+ showing: () => c3 && w3(c3.content.kind) ? c3.content.kind : null,
+ activeVideo: () => WPe(),
+ mountWallPlayer: VPe,
toggleTheater: () => {
- l3 && SN(!_3().player.settings().theaterMode);
+ c3 && wN(!g3().player.settings().theaterMode);
},
- toggleMiniplayer: () => r3(),
- closeMiniplayer: () => t3(),
- miniplayerActive: () => G4(),
- miniplayerTakesCard: (e) => a3(e),
+ toggleMiniplayer: () => n3(),
+ closeMiniplayer: () => e3(),
+ miniplayerActive: () => W4(),
+ miniplayerTakesCard: (e) => i3(e),
miniplayerPlay: (e) => {
- KPe(e);
+ JPe(e);
}
};
-function uFe(e) {
- return c3 = e, LPe(e, {
- isOpen: () => !!l3,
- requestClose: S3
- }), lFe;
+function fFe(e) {
+ return s3 = e, zPe(e, {
+ isOpen: () => !!c3,
+ requestClose: x3
+ }), dFe;
}
-function dFe() {
- let e = (0, F.useSyncExternalStore)(QPe, () => l3);
- return c3 ? /* @__PURE__ */ (0, I.jsx)(eFe, { view: e }) : null;
+function pFe() {
+ let e = (0, F.useSyncExternalStore)(eFe, () => c3);
+ return s3 ? /* @__PURE__ */ (0, I.jsx)(nFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var fFe = "/api/stats", D3 = ["stats"], O3 = (e) => B(fFe, e);
-async function pFe(e) {
+var mFe = "/api/stats", E3 = ["stats"], D3 = (e) => B(mFe, e);
+async function hFe(e) {
await H.fetchQuery({
- queryKey: D3,
- queryFn: () => O3(e)
+ queryKey: E3,
+ queryFn: () => D3(e)
});
}
-var k3 = (e) => e != null && Number.isFinite(e), mFe = (e) => k3(e) ? e.toLocaleString() : "未取得", hFe = (e, t) => k3(e) && k3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, gFe = (e, t) => {
- let n = hFe(e, t);
- return !n && k3(e) && e > 0 && k3(t) && t > 0 ? "<1%" : `${n}%`;
-}, A3 = (e) => {
- if (!k3(e)) return "未取得";
+var O3 = (e) => e != null && Number.isFinite(e), gFe = (e) => O3(e) ? e.toLocaleString() : "未取得", _Fe = (e, t) => O3(e) && O3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, vFe = (e, t) => {
+ let n = _Fe(e, t);
+ return !n && O3(e) && e > 0 && O3(t) && t > 0 ? "<1%" : `${n}%`;
+}, k3 = (e) => {
+ if (!O3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, j3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, M3 = (e) => (e.max_reached || 0) * 100, _Fe = (e) => e.kind === "online" ? "在线直接观看" : j3(e) < M3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", vFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function yFe(e, t = 6) {
+}, A3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, j3 = (e) => (e.max_reached || 0) * 100, yFe = (e) => e.kind === "online" ? "在线直接观看" : A3(e) < j3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", bFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function xFe(e, t = 6) {
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);
@@ -78178,7 +78188,7 @@ function yFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, SFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), CFe = {
+var SFe = (e) => Math.max(1, ...e) * 1.1, CFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, wFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), TFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78186,18 +78196,18 @@ var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, wFe = (e) => e.map((e) => ({
- name: CFe[e.k] ?? e.k,
+}, EFe = (e) => e.map((e) => ({
+ name: TFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), TFe = {
+})).sort((e, t) => t.value - e.value), DFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, N3 = (e, t = {}) => e.map((e) => ({
+}, M3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), EFe = (e) => N3(e, TFe), DFe = [
+})), OFe = (e) => M3(e, DFe), kFe = [
[
1,
1,
@@ -78233,12 +78243,12 @@ var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], OFe = (e) => DFe.map(([t, n, r]) => ({
+], AFe = (e) => kFe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
// node_modules/d3-array/src/max.js
-function P3(e, t) {
+function N3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -78248,7 +78258,7 @@ function P3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function F3(e, t) {
+function P3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -78258,7 +78268,7 @@ function F3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function I3(e, t) {
+function F3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -78268,64 +78278,64 @@ function I3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function kFe(e, t) {
+function jFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function L3(e) {
+function I3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
+function L3(e, t) {
+ return z3(e.source, t.source) || e.index - t.index;
+}
function R3(e, t) {
- return B3(e.source, t.source) || e.index - t.index;
+ return z3(e.target, t.target) || e.index - t.index;
}
function z3(e, t) {
- return B3(e.target, t.target) || e.index - t.index;
-}
-function B3(e, t) {
return e.y0 - t.y0;
}
-function V3(e) {
+function B3(e) {
return e.value;
}
-function AFe(e) {
+function MFe(e) {
return e.index;
}
-function jFe(e) {
+function NFe(e) {
return e.nodes;
}
-function MFe(e) {
+function PFe(e) {
return e.links;
}
-function H3(e, t) {
+function V3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function U3({ nodes: e }) {
+function H3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function NFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = AFe, c = kFe, l, u, d = jFe, f = MFe, p = 6;
+function FFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = MFe, c = jFe, l, u, d = NFe, f = PFe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), U3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), H3(e), e;
}
m.update = function(e) {
- return U3(e), e;
+ return H3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : L3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : I3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : L3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : I3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -78333,9 +78343,9 @@ function NFe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : L3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : I3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : L3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : I3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -78351,12 +78361,12 @@ function NFe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = H3(n, t)), typeof i != "object" && (i = r.target = H3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = V3(n, t)), typeof i != "object" && (i = r.target = V3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(I3(t.sourceLinks, V3), I3(t.targetLinks, V3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(F3(t.sourceLinks, B3), F3(t.targetLinks, B3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -78381,7 +78391,7 @@ function NFe() {
}
}
function y({ nodes: t }) {
- let r = P3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = N3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -78390,7 +78400,7 @@ function NFe() {
return o;
}
function b(e) {
- let n = F3(e, (e) => (r - t - (e.length - 1) * o) / I3(e, V3));
+ let n = P3(e, (e) => (r - t - (e.length - 1) * o) / F3(e, B3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -78407,7 +78417,7 @@ function NFe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (P3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (N3(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -78426,7 +78436,7 @@ function NFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(B3), w(i, n);
+ l === void 0 && i.sort(z3), w(i, n);
}
}
function C(e, t, n) {
@@ -78442,7 +78452,7 @@ function NFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(B3), w(i, n);
+ l === void 0 && i.sort(z3), w(i, n);
}
}
function w(e, n) {
@@ -78463,12 +78473,12 @@ function NFe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(z3);
- for (let { target: { targetLinks: t } } of e) t.sort(R3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(R3);
+ for (let { target: { targetLinks: t } } of e) t.sort(L3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(z3), n.sort(R3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(R3), n.sort(L3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -78497,15 +78507,15 @@ function NFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var W3 = Math.PI, G3 = 2 * W3, K3 = 1e-6, PFe = G3 - K3;
-function q3() {
+var U3 = Math.PI, W3 = 2 * U3, G3 = 1e-6, IFe = W3 - G3;
+function K3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function J3() {
- return new q3();
+function q3() {
+ return new K3();
}
-q3.prototype = J3.prototype = {
- constructor: q3,
+K3.prototype = q3.prototype = {
+ constructor: K3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -78526,11 +78536,11 @@ q3.prototype = J3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > K3) {
- if (!(Math.abs(u * s - c * l) > K3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > G3) {
+ if (!(Math.abs(u * s - c * l) > G3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((W3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > K3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((U3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > G3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -78538,7 +78548,7 @@ q3.prototype = J3.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) > K3 || Math.abs(this._y1 - l) > K3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G3 + G3), d > PFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K3 && (this._ += "A" + n + "," + n + ",0," + +(d >= W3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > G3 || Math.abs(this._y1 - l) > G3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % W3 + W3), d > IFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > G3 && (this._ += "A" + n + "," + n + ",0," + +(d >= U3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
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";
@@ -78548,93 +78558,93 @@ q3.prototype = J3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function Y3(e) {
+function J3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function FFe(e) {
+function LFe(e) {
return e[0];
}
-function IFe(e) {
+function RFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var LFe = Array.prototype.slice;
+var zFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function RFe(e) {
+function BFe(e) {
return e.source;
}
-function zFe(e) {
+function VFe(e) {
return e.target;
}
-function BFe(e) {
- var t = RFe, n = zFe, r = FFe, i = IFe, a = null;
+function HFe(e) {
+ var t = BFe, n = VFe, r = LFe, i = RFe, a = null;
function o() {
- var o, s = LFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = J3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = zFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = q3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : Y3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : J3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : Y3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : J3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function VFe(e, t, n, r, i) {
+function UFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function HFe() {
- return BFe(VFe);
+function WFe() {
+ return HFe(UFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function UFe(e) {
+function GFe(e) {
return [e.source.x1, e.y0];
}
-function WFe(e) {
+function KFe(e) {
return [e.target.x0, e.y1];
}
-function GFe() {
- return HFe().source(UFe).target(WFe);
+function qFe() {
+ return WFe().source(GFe).target(KFe);
}
// src/react/taste/taste.ts
-var KFe = "/api/taste", X3 = "/api/taste/refresh", qFe = "/api/taste/import", Z3 = "/api/taste/source", Q3 = (e) => ["taste", e], JFe = ["taste", "refresh"], YFe = [
+var JFe = "/api/taste", Y3 = "/api/taste/refresh", YFe = "/api/taste/import", X3 = "/api/taste/source", Z3 = (e) => ["taste", e], XFe = ["taste", "refresh"], ZFe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], XFe = 2e3, ZFe = (e) => e?.stale && !e.error ? XFe : !1, QFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], QFe = 2e3, $Fe = (e) => e?.stale && !e.error ? QFe : !1, eIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", $Fe = (e, t) => V(Z3, {
+}) : "—", tIe = (e, t) => V(X3, {
...e,
window: t
-}), $3 = (e, t, n = !1) => B(`${KFe}?window=${e}${n ? "&retry=1" : ""}`, t), eIe = (e) => B(X3, e);
-async function tIe(e, t) {
+}), Q3 = (e, t, n = !1) => B(`${JFe}?window=${e}${n ? "&retry=1" : ""}`, t), nIe = (e) => B(Y3, e);
+async function rIe(e, t) {
await H.fetchQuery({
- queryKey: Q3(e),
- queryFn: () => $3(e, t)
+ queryKey: Z3(e),
+ queryFn: () => Q3(e, t)
});
}
-var nIe = (e) => V(X3, {
+var iIe = (e) => V(Y3, {
window: e,
background: !0
-}), rIe = (e, t) => V(Z3, {
+}), aIe = (e, t) => V(X3, {
operation: "remove",
source_key: e,
window: t
});
-async function iIe(e) {
- let t = await fetch(qFe, {
+async function oIe(e) {
+ let t = await fetch(YFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78652,52 +78662,52 @@ async function iIe(e) {
}
return n;
}
-var aIe = 1e4, e6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function oIe(e) {
+var sIe = 1e4, $3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function cIe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : e6(e);
+ }) : $3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var sIe = A3, cIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), lIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function uIe(e) {
+var lIe = k3, uIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), dIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function fIe(e) {
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 dIe(e) {
- let t = e.map(lIe), n = Math.max(1, ...t);
+function pIe(e) {
+ let t = e.map(dIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var t6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var e6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function fIe(e) {
- let t = t6(e, 6);
+function mIe(e) {
+ let t = e6(e, 6);
return t.length < 3 ? [] : t;
}
-var n6 = {
+var t6 = {
width: 720,
height: 435
-}, pIe = {
+}, hIe = {
source: 145,
target: 545
-}, r6 = 30, mIe = 240;
-function i6(e, t, n) {
+}, n6 = 30, gIe = 240;
+function r6(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function hIe(e = []) {
+function _Ie(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = i6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = i6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = r6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = r6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -78706,7 +78716,7 @@ function hIe(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) * r6 + mIe), u = NFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(r6).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * n6 + gIe), u = FFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(n6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78721,7 +78731,7 @@ function hIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = GFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = qFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78749,17 +78759,17 @@ function hIe(e = []) {
};
}),
total: d,
- height: l + n6.height - 404
+ height: l + t6.height - 404
};
}
-var gIe = (e) => tr(e, 17), a6 = {
+var vIe = (e) => tr(e, 17), i6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, _Ie = [[
+}, yIe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78767,7 +78777,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], vIe = [[
+]], bIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78775,7 +78785,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], yIe = [[
+]], xIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78783,7 +78793,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], bIe = [
+]], SIe = [
[
"studios",
"厂牌",
@@ -78799,7 +78809,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"系列",
"file-stack"
]
-], xIe = [[
+], CIe = [[
"local",
"本地",
"hard-drive"
@@ -78807,7 +78817,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"online",
"在线",
"rss"
-]], SIe = [
+]], wIe = [
[
"performers",
"艺人",
@@ -78823,7 +78833,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"在线",
"rss"
]
-], CIe = [[
+], TIe = [[
"cloud",
"标签云",
"tags"
@@ -78831,8 +78841,8 @@ var gIe = (e) => tr(e, 17), a6 = {
"alphabet",
"字母表",
"text-aa"
-]], o6 = (e) => e === "compact" ? "compact" : "big";
-function s6(e, t) {
+]], a6 = (e) => e === "compact" ? "compact" : "big";
+function o6(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -78842,7 +78852,7 @@ function s6(e, t) {
category: n.get("category") || "all"
};
}
-var c6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
+var s6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78850,12 +78860,12 @@ var c6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), wIe = (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">
+}), EIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", CIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function TIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = a6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? yIe : c ? vIe : _Ie, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", TIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function DIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = i6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? xIe : c ? bIe : yIe, a) : "";
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}
@@ -78867,24 +78877,24 @@ function TIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? c6(xIe, n, "词表") : e === "performers" || e === "creators" ? c6(SIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? c6(bIe, e, "资料类型") : ""}
- ${e === "tags" ? wIe(r) : ""}
- ${e === "performers" && n !== "online" ? tDe(i) : ""}
+ ${e === "tags" ? s6(CIe, n, "词表") : e === "performers" || e === "creators" ? s6(wIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? s6(SIe, e, "资料类型") : ""}
+ ${e === "tags" ? EIe(r) : ""}
+ ${e === "performers" && n !== "online" ? nDe(i) : ""}
${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var EIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function l6(e, t, n) {
- let r = TIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== EIe(r) && (e.innerHTML = r, pc(e));
+var OIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function c6(e, t, n) {
+ let r = DIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== OIe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var DIe = () => pu, OIe = () => Ql, u6 = () => document.getElementById("index");
-function d6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, DIe);
+var kIe = () => pu, AIe = () => Ql, l6 = () => document.getElementById("index");
+function u6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(Cu, kIe);
ef();
let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78932,11 +78942,11 @@ function d6(e, t, n = {}) {
i
]);
}
-async function kIe(e, t, n, r) {
- let i = u6();
+async function jIe(e, t, n, r) {
+ let i = l6();
if (!i) return;
- let a = `/${t}`, o = s6(t, n), s = o6(tM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), l6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
+ let a = `/${t}`, o = o6(t, n), s = a6(rM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), c6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
...o,
layout: s,
selectMode: Ql,
@@ -78947,23 +78957,23 @@ async function kIe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), vm(r, i));
}
-function AIe(e) {
- let t = u6(), n = t ? mp(t) : null;
+function MIe(e) {
+ let t = l6(), n = t ? mp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function jIe({ epoch: e }) {
- let t = (0, F.useContext)(YW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
- return d6(e, (e, i) => {
- t && kIe(t, r, n.search, i);
- }, { shown: () => AIe(`/${r}`) }), null;
+function NIe({ epoch: e }) {
+ let t = (0, F.useContext)(JW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+ return u6(e, (e, i) => {
+ t && jIe(t, r, n.search, i);
+ }, { shown: () => MIe(`/${r}`) }), null;
}
-function MIe() {
- let e = JW(), t = (0, F.useSyncExternalStore)(Cu, OIe), n = (0, F.useRef)(t);
+function PIe() {
+ let e = qW(), t = (0, F.useSyncExternalStore)(Cu, AIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(u6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(jIe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(l6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(NIe, { epoch: e }, e);
}
-function NIe(e) {
+function FIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78977,9 +78987,9 @@ function NIe(e) {
name: a
} : null;
}
-var f6 = /* @__PURE__ */ new WeakMap();
-function PIe(e) {
- let t = f6.get(e);
+var d6 = /* @__PURE__ */ new WeakMap();
+function IIe(e) {
+ let t = d6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -78989,14 +78999,14 @@ function PIe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, f6.set(e, t)), t;
+ }, d6.set(e, t)), t;
}
-function p6() {
- let e = u6(), t = e ? mp(e) : null;
+function f6() {
+ let e = l6(), t = e ? mp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function FIe(e, t, n, r, i, a, o) {
- let s = u6();
+async function LIe(e, t, n, r, i, a, o) {
+ let s = l6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -79019,7 +79029,7 @@ async function FIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: PIe(e),
+ card: IIe(e),
resolvedEntity: o,
restoreNavigation: gm(),
actions: {
@@ -79034,16 +79044,16 @@ async function FIe(e, t, n, r, i, a, o) {
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && p6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
+ }) && a() && f6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
}
-function IIe({ target: e }) {
- let t = (0, F.useContext)(YW), n = JW(), r = ef();
- return d6(n, (n, i) => {
+function RIe({ target: e }) {
+ let t = (0, F.useContext)(JW), n = qW(), r = ef();
+ return u6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !p6()) {
+ if (n || !f6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- vm(i, u6(), { pending: !0 });
+ vm(i, l6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -79069,7 +79079,7 @@ function IIe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, u6()?.querySelector("[data-entity-filter]")) : FIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, l6()?.querySelector("[data-entity-filter]")) : LIe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
@@ -79077,16 +79087,16 @@ function IIe({ target: e }) {
state: Np.navigation.location.state
});
})();
- }, { shown: () => p6() && !u6()?.hidden }), null;
+ }, { shown: () => f6() && !l6()?.hidden }), null;
}
-function LIe() {
- let e = NIe(ef().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(IIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function zIe() {
+ let e = FIe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(RIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var m6 = () => document.getElementById("stats"), RIe = () => yu;
-async function zIe(e, t) {
- let n = m6(), r = e.follow;
+var p6 = () => document.getElementById("stats"), BIe = () => yu;
+async function VIe(e, t) {
+ let n = p6(), r = e.follow;
if (!n || !r) return;
let i = hm("follow"), a = r.refresh(i), o = r.props();
if (mm("follow", {
@@ -79095,34 +79105,34 @@ async function zIe(e, t) {
revision: o.revision
}), a) return;
let s = H.getQueryData(ra(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), F2(n, r.skeleton()), vm(t, n, { pending: !0 })), await yp("/follow", o, {
+ s || (e.surfaceChanged("follow", "/follow"), P2(n, r.skeleton()), vm(t, n, { pending: !0 })), await yp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && vm(t, n.querySelector("[data-filter-frame]"));
}
-function BIe() {
- let e = m6(), t = e ? mp(e) : null;
+function HIe() {
+ let e = p6(), t = e ? mp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function VIe() {
- let e = (0, F.useContext)(YW);
- return d6(JW(), (t, n) => {
- e && zIe(e, n);
+function UIe() {
+ let e = (0, F.useContext)(JW);
+ return u6(qW(), (t, n) => {
+ e && VIe(e, n);
}, {
- shown: BIe,
+ shown: HIe,
onCovered: () => {
Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function h6(e) {
+function m6(e) {
let t = e ? mp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function HIe(e, t) {
- let n = m6();
- n && (e.surfaceChanged("playlists", "/playlists"), F2(n, N2("/playlists", {
+async function WIe(e, t) {
+ let n = p6();
+ n && (e.surfaceChanged("playlists", "/playlists"), P2(n, M2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
@@ -79131,54 +79141,54 @@ async function HIe(e, t) {
isCurrent: t
}), t() && vm(t));
}
-function UIe() {
- let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, RIe), n = (0, F.useRef)(t);
+function GIe() {
+ let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Cu, BIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = m6();
- h6(e) && xp(e, { revision: t });
- }, [t]), d6(JW(), (t, n) => {
- e && HIe(e, n);
+ let e = p6();
+ m6(e) && xp(e, { revision: t });
+ }, [t]), u6(qW(), (t, n) => {
+ e && WIe(e, n);
}, { shown: () => {
- let e = m6();
- return h6(e) && !e.hidden;
+ let e = p6();
+ return m6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function WIe() {
+function KIe() {
let e = new URLSearchParams(Np.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function GIe() {
- let e = (0, F.useContext)(YW);
- return KW(() => {
- e?.openImmerse(WIe());
+function qIe() {
+ let e = (0, F.useContext)(JW);
+ return GW(() => {
+ e?.openImmerse(KIe());
}, !0), null;
}
-function KIe() {
- return /* @__PURE__ */ (0, I.jsx)(GIe, {}, JW());
+function JIe() {
+ return /* @__PURE__ */ (0, I.jsx)(qIe, {}, qW());
}
// src/react/router/pages/managed.tsx
-var qIe = () => pu > 0, g6 = () => (0, F.useSyncExternalStore)(Cu, qIe), _6 = () => tM().value.followLayout === "table" ? "table" : "default", v6 = () => new URLSearchParams(window.location.search);
-function y6(e) {
+var YIe = () => pu > 0, h6 = () => (0, F.useSyncExternalStore)(Cu, YIe), g6 = () => rM().value.followLayout === "table" ? "table" : "default", _6 = () => new URLSearchParams(window.location.search);
+function v6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
throw e;
});
}
-function b6(e, t) {
+function y6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function JIe(e, t) {
+async function XIe(e, t) {
if (e === "/jav") {
- let e = await y6(t);
+ let e = await v6(t);
return t.live ? {
- tab: cU(v6().get("tab")),
+ tab: sU(_6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -79189,50 +79199,50 @@ async function JIe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && W({ configurationRequestedSection: "网络与访问" });
- let t = v6().get("section") || uu || Af(e);
+ let t = _6().get("section") || uu || Af(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = v6().get("category") || "", n = await y6(t);
+ let e = _6().get("category") || "", n = await v6(t);
return t.live ? {
- category: CY(e) ? e : "",
- queue: EY(v6().get("queue")),
- ...b6(n, "/review")
+ category: SY(e) ? e : "",
+ queue: TY(_6().get("queue")),
+ ...y6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = jZ("?" + v6().toString()), n = await y6(t);
+ let e = jZ("?" + _6().toString()), n = await v6(t);
if (!t.live) return null;
- let r = tM().value;
+ let r = rM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: _6(),
- ...b6(n, "/subscriptions")
+ layout: g6(),
+ ...y6(n, "/subscriptions")
};
}
return {};
}
-async function YIe(e, t, n) {
+async function ZIe(e, t, n) {
let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
- if (e === "/jav" && cU(v6().get("tab")) === "library") {
- Np.replace(Rve(window.location.search));
+ if (e === "/jav" && sU(_6().get("tab")) === "library") {
+ Np.replace(Bve(window.location.search));
return;
}
- if (e === "/subscriptions" && v6().get("tab") === "wants") {
+ if (e === "/subscriptions" && _6().get("tab") === "wants") {
Pp("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && v6().get("tab") === "source") {
+ if (e === "/subscriptions" && _6().get("tab") === "source") {
Pp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), F2(a, N2(e, {
- followLayout: _6(),
- followSort: v6().get("sort") || "",
- followDir: v6().get("dir") || ""
+ t.surfaceChanged("management", e), P2(a, M2(e, {
+ followLayout: g6(),
+ followSort: _6().get("sort") || "",
+ followDir: _6().get("dir") || ""
})), vm(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
...U,
creator: "",
@@ -79248,7 +79258,7 @@ async function YIe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await JIe(e, n);
+ let o = await XIe(e, n);
if (!o) return;
let s = await yp(e, o, {
container: a,
@@ -79264,19 +79274,19 @@ async function YIe(e, t, n) {
}) : vm(i);
}
}
-function x6({ path: e }) {
- let t = JW();
+function b6({ path: e }) {
+ let t = qW();
ef();
let n = Bf(Np.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(XIe, {
+ return /* @__PURE__ */ (0, I.jsx)(QIe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function XIe({ path: e, covered: t }) {
- let n = (0, F.useContext)(YW), r = g6(), i = (0, F.useRef)(null);
+function QIe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(JW), r = h6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -79287,15 +79297,15 @@ function XIe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && YIe(e, n, a);
+ a.live && ZIe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function ZIe() {
- let e = g6(), t = (0, F.useRef)(!1);
+function $Ie() {
+ let e = h6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
t.current = !0;
@@ -79308,24 +79318,24 @@ function ZIe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var S6 = [], C6 = "peach.chunkReloadAt", QIe = 3e4;
-async function $Ie() {
+var x6 = [], S6 = "peach.chunkReloadAt", eLe = 3e4;
+async function tLe() {
try {
- let e = Number(sessionStorage.getItem(C6) || 0);
- if (Date.now() - e < QIe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(S6) || 0);
+ if (Date.now() - e < eLe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(C6, String(Date.now())), location.reload();
+ sessionStorage.setItem(S6, String(Date.now())), location.reload();
} catch {}
}
-function w6(e) {
+function C6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return S6.push(r), {
+ return x6.push(r), {
preload: () => r().catch(async (e) => {
- throw await $Ie(), e;
+ throw await tLe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79333,10 +79343,10 @@ function w6(e) {
}
};
}
-function eLe() {
+function nLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...S6], n = () => {
+ let t = [...x6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -79345,31 +79355,31 @@ function eLe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function T6(e, t) {
+async function w6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), P6 = w6(async () => {
- let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-ubxQHJd0.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
+var T6 = C6(() => import("./peach-app.jav-page-CvsnSwyE.js")), E6 = C6(() => import("./peach-app.stats-page-Domc7MK7.js")), D6 = C6(() => import("./peach-app.taste-page-DBsNS6-3.js")), O6 = C6(() => import("./peach-app.review-page-DL1KGdJQ.js")), k6 = C6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), A6 = C6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), j6 = C6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), M6 = C6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), N6 = C6(async () => {
+ let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-tx87-zps.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), F6 = w6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), I6 = w6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), L6 = w6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function tLe(e, t, n) {
+}), P6 = C6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), F6 = C6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), I6 = C6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function rLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- B6(r) ? n(r) : t.openManage(e);
+ z6(r) ? n(r) : t.openManage(e);
}
-var R6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: e }),
- prefetch: (t, n) => T6(P6, Promise.all([QAe(n), ...e === "/settings/diagnostics" ? [xke(n)] : []]).then(() => {})),
+var L6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: e }),
+ prefetch: (t, n) => w6(N6, Promise.all([eje(n), ...e === "/settings/diagnostics" ? [Ske(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = P6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -79380,12 +79390,12 @@ var R6 = (e) => ({
})
});
}
-}), z6 = {
+}), R6 = {
...Yf.reduce((e, t) => (e[t.path] = {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: t.path }),
- prefetch: (e, n) => T6(A6, GEe(t.key, n)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: t.path }),
+ prefetch: (e, n) => w6(k6, KEe(t.key, n)),
page: (e, n) => {
- let { DataCleanupToolPage: r } = A6.get();
+ let { DataCleanupToolPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
tool: t.key,
failure: n.failure,
@@ -79394,10 +79404,10 @@ var R6 = (e) => ({
}
}, e), {}),
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/jav" }),
- prefetch: (e, t) => T6(E6, Uye(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/jav" }),
+ prefetch: (e, t) => w6(T6, Gye(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = E6.get();
+ let { JavPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -79406,10 +79416,10 @@ var R6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/stats" }),
- prefetch: (e, t) => T6(D6, pFe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/stats" }),
+ prefetch: (e, t) => w6(E6, hFe(t)),
page: (e, t) => {
- let { StatsPage: n } = D6.get();
+ let { StatsPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
tagLabel: Ll,
onTag: t.openTag
@@ -79417,10 +79427,10 @@ var R6 = (e) => ({
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/taste" }),
- prefetch: (e, t) => T6(O6, tIe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/taste" }),
+ prefetch: (e, t) => w6(D6, rIe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = O6.get();
+ let { TastePage: r } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -79430,10 +79440,10 @@ var R6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/review" }),
- prefetch: (e, t) => T6(k6, PTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/review" }),
+ prefetch: (e, t) => w6(O6, ITe(t)),
page: (e, t) => {
- let { ReviewPage: n } = k6.get();
+ let { ReviewPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -79445,23 +79455,23 @@ var R6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/data-cleanup" }),
- prefetch: (e, t) => T6(A6, WEe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => w6(k6, GEe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = A6.get();
+ let { DataCleanupPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => tLe(e, t, n),
+ open: (e) => rLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/duplicates" }),
- prefetch: (e, t) => T6(j6, Xwe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/duplicates" }),
+ prefetch: (e, t) => w6(A6, Qwe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = j6.get();
+ let { DuplicatesPage: n } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -79470,46 +79480,46 @@ var R6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/quality-goals" }),
- prefetch: (e, t) => T6(M6, cTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/quality-goals" }),
+ prefetch: (e, t) => w6(j6, uTe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = M6.get();
+ let { QualityGoalsPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: HI,
- javDisplayName: VI,
+ javTitleHtml: WI,
+ javDisplayName: UI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/sources" }),
- prefetch: (e, t) => T6(N6, zAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/sources" }),
+ prefetch: (e, t) => w6(M6, VAe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = N6.get();
+ let { ScrapingPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": R6("/settings/library"),
- "/settings/subscriptions": R6("/settings/subscriptions"),
- "/settings/downloads": R6("/settings/downloads"),
- "/settings/network": R6("/settings/network"),
- "/settings/maintenance": R6("/settings/maintenance"),
- "/settings/diagnostics": R6("/settings/diagnostics"),
+ "/settings/library": L6("/settings/library"),
+ "/settings/subscriptions": L6("/settings/subscriptions"),
+ "/settings/downloads": L6("/settings/downloads"),
+ "/settings/network": L6("/settings/network"),
+ "/settings/maintenance": L6("/settings/maintenance"),
+ "/settings/diagnostics": L6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/tasks" }),
- prefetch: (e, t) => T6(F6, vpe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/tasks" }),
+ prefetch: (e, t) => w6(P6, gpe(t)),
page: () => {
- let { ActivityPage: e } = F6.get();
+ let { ActivityPage: e } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/subscriptions" }),
- prefetch: (e, t) => T6(I6, Ri(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/subscriptions" }),
+ prefetch: (e, t) => w6(F6, Ri(t)),
page: (e, t) => {
- let { FollowManagePage: n } = I6.get();
+ let { FollowManagePage: n } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -79519,12 +79529,12 @@ var R6 = (e) => ({
});
}
}
-}, B6 = (e) => Object.hasOwn(z6, e), nLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(ZIe, {}) } }, rLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(KIe, {}) } }, V6 = {
+}, z6 = (e) => Object.hasOwn(R6, e), iLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)($Ie, {}) } }, aLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(JIe, {}) } }, B6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
- prefetch: (e, t) => T6(L6, CAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(GIe, {}),
+ prefetch: (e, t) => w6(I6, TAe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = L6.get();
+ let { PlaylistsPage: n } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -79535,14 +79545,14 @@ var R6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(VIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
prefetch: (e, t) => oa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)($De, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(eOe, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
- element: /* @__PURE__ */ (0, I.jsx)(MIe, {}),
- prefetch: (e, t) => fDe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Fke, {
+}, V6 = (e) => Object.hasOwn(B6, e), H6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(PIe, {}),
+ prefetch: (e, t) => pDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Ike, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79555,82 +79565,82 @@ var R6 = (e) => ({
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, U6 = {
+ "/performers": H6,
+ "/creators": H6,
+ "/studios": H6,
+ "/agencies": H6,
+ "/tags": H6,
+ "/series": H6
}, W6 = {
- "/performers": U6,
- "/creators": U6,
- "/studios": U6,
- "/agencies": U6,
- "/tags": U6,
- "/series": U6
+ element: /* @__PURE__ */ (0, I.jsx)(zIe, {}),
+ prefetch: (e) => tDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(_ke, { ...e })
}, G6 = {
- element: /* @__PURE__ */ (0, I.jsx)(LIe, {}),
- prefetch: (e) => eDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(gke, { ...e })
+ "/performers/*": W6,
+ "/studios/*": W6,
+ "/creators/*": W6,
+ "/series/*": W6,
+ "/agencies/*": W6,
+ "/tags/*": W6
}, K6 = {
- "/performers/*": G6,
- "/studios/*": G6,
- "/creators/*": G6,
- "/series/*": G6,
- "/agencies/*": G6,
- "/tags/*": G6
-}, q6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(UW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(rY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(UW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Jke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Xke, { ...e })
}
-}, J6 = (e) => Object.hasOwn(q6, e), iLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Ove, { ...e }) : /* @__PURE__ */ (0, I.jsx)(S$, { ...e }), Y6 = {
+}, q6 = (e) => Object.hasOwn(K6, e), oLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Ave, { ...e }) : /* @__PURE__ */ (0, I.jsx)(x$, { ...e }), J6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)($be, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(txe, { ...e })
},
"feed-new": {
- prefetch: (e) => XEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Ske, { ...e })
+ prefetch: (e) => ZEe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Cke, { ...e })
},
"library-processing": {
- prefetch: (e, t) => oH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(iLe, { ...e })
+ prefetch: (e, t) => aH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(oLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(qAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(YAe, { ...e })
}
-}, X6 = (e) => Object.hasOwn(Y6, e), Z6 = {
+}, Y6 = (e) => Object.hasOwn(J6, e), X6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(fle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(ule, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Kle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Zfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Yfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(qde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Gde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Oje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Aje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Wje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Kje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(dFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(pFe, {})
}
-}, Q6 = (e) => Object.hasOwn(Z6, e), $6 = [
+}, Z6 = (e) => Object.hasOwn(X6, e), Q6 = [
"/",
"/wall",
"/unseen",
@@ -79640,99 +79650,99 @@ var R6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(z6),
- ...Object.keys(V6),
- ...Object.keys(W6),
- ...Object.keys(K6),
- ...$6
+ ...Object.keys(R6),
+ ...Object.keys(B6),
+ ...Object.keys(U6),
+ ...Object.keys(G6),
+ ...Q6
];
-var e8 = (e) => B6(e) || H6(e) || Object.hasOwn(W6, e) || Object.hasOwn(K6, e) || J6(e) || X6(e) || Q6(e);
-function t8(e) {
- return B6(e) ? z6[e] : H6(e) ? V6[e] : J6(e) ? q6[e] : X6(e) ? Y6[e] : Q6(e) ? Z6[e] : Object.hasOwn(W6, e) ? W6[e] : K6[e];
+var $6 = (e) => z6(e) || V6(e) || Object.hasOwn(U6, e) || Object.hasOwn(G6, e) || q6(e) || Y6(e) || Z6(e);
+function e8(e) {
+ return z6(e) ? R6[e] : V6(e) ? B6[e] : q6(e) ? K6[e] : Y6(e) ? J6[e] : Z6(e) ? X6[e] : Object.hasOwn(U6, e) ? U6[e] : G6[e];
}
-function aLe(e, t, n) {
- return e8(e) ? t8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function sLe(e, t, n) {
+ return $6(e) ? e8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function oLe(e, t, n, r) {
- return t8(e).page(t, n, r);
+function cLe(e, t, n, r) {
+ return e8(e).page(t, n, r);
}
// src/react/application-residents.ts
-var n8 = null, r8 = null, i8 = 0, a8 = /* @__PURE__ */ new Set();
-function sLe(e) {
- return n8 = e, r8 && e(r8), () => {
- n8 === e && (n8 = null);
+var t8 = null, n8 = null, r8 = 0, i8 = /* @__PURE__ */ new Set();
+function lLe(e) {
+ return t8 = e, n8 && e(n8), () => {
+ t8 === e && (t8 = null);
};
}
-function cLe(e) {
- return n8 && (r8 = e, n8(e), pp(Promise.resolve(aLe)), eLe()), Promise.resolve();
+function uLe(e) {
+ return t8 && (n8 = e, t8(e), pp(Promise.resolve(sLe)), nLe()), Promise.resolve();
}
-async function o8(e, t, n = (e) => e) {
- let r = i8;
- if (t.isConnected || a8.add(t), !await yp(e, {}, {
+async function a8(e, t, n = (e) => e) {
+ let r = r8;
+ if (t.isConnected || i8.add(t), !await yp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!n8 && r === i8,
+ isCurrent: () => !!t8 && r === r8,
place: () => n(t)
- }) || r !== i8 || !n8) throw new DOMException("应用已卸载", "AbortError");
+ }) || r !== r8 || !t8) throw new DOMException("应用已卸载", "AbortError");
}
-function lLe() {
- i8 += 1, n8 = null, r8 = null, s8 = null, c8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null, x8 = null, C8 = null, w8 = null, E8 = null;
- for (let e of a8) e.remove();
- a8.clear(), VQ();
+function dLe() {
+ r8 += 1, t8 = null, n8 = null, o8 = null, s8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null, b8 = null, S8 = null, C8 = null, T8 = null;
+ for (let e of i8) e.remove();
+ i8.clear(), VQ();
}
-var s8 = null, c8 = null;
-function l8(e) {
- return s8 ??= (async () => {
- let t = uFe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await o8("stage", n, (e) => (document.body.append(e), e)), c8 = t, t;
- })(), s8;
+var o8 = null, s8 = null;
+function c8(e) {
+ return o8 ??= (async () => {
+ let t = fFe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await a8("stage", n, (e) => (document.body.append(e), e)), s8 = t, t;
+ })(), o8;
}
-var u8 = () => c8, d8 = null, f8 = null;
-function uLe(e) {
- return d8 ??= (async () => {
- let t = Kde(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await o8("immerse", n, (e) => (document.body.append(e), e)), f8 = t, t;
- })(), d8;
-}
-var p8 = () => f8, m8 = null, h8 = null;
-function dLe(e) {
- return m8 ??= (async () => {
- let t = Dje(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await o8("settings-panel", n, (e) => (document.body.append(e), e)), h8 = t, t;
- })(), m8;
-}
-var g8 = () => h8, _8 = null, v8 = null;
+var l8 = () => s8, u8 = null, d8 = null;
function fLe(e) {
- return _8 ??= (async () => {
- let t = Uje(e);
- return await o8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), v8 = t, t;
- })(), _8;
+ return u8 ??= (async () => {
+ let t = Wde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await a8("immerse", n, (e) => (document.body.append(e), e)), d8 = t, t;
+ })(), u8;
}
-var y8 = () => v8, b8 = null, x8 = null;
+var f8 = () => d8, p8 = null, m8 = null;
function pLe(e) {
- return b8 ??= (async () => {
- let t = Xfe(e);
- return await o8("manage-header", e.root, (e) => (e.replaceChildren(), e)), x8 = t, t;
- })(), b8;
+ return p8 ??= (async () => {
+ let t = kje(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await a8("settings-panel", n, (e) => (document.body.append(e), e)), m8 = t, t;
+ })(), p8;
}
-var S8 = () => x8, C8 = null, w8 = null;
+var h8 = () => m8, g8 = null, _8 = null;
function mLe(e) {
- return C8 ??= (async () => {
- let t = dle(e);
- return await o8("batch-dock", e.root), w8 = t, t;
- })(), C8;
+ return g8 ??= (async () => {
+ let t = Gje(e);
+ return await a8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), _8 = t, t;
+ })(), g8;
}
-var T8 = () => w8, E8 = null;
+var v8 = () => _8, y8 = null, b8 = null;
function hLe(e) {
- return E8 ??= (async () => {
- qle(e), await o8("glow-picker", e.root);
- })(), E8;
-}
-function D8(e, t, n, r) {
+ return y8 ??= (async () => {
+ let t = Jfe(e);
+ return await a8("manage-header", e.root, (e) => (e.replaceChildren(), e)), b8 = t, t;
+ })(), y8;
+}
+var x8 = () => b8, S8 = null, C8 = null;
+function gLe(e) {
+ return S8 ??= (async () => {
+ let t = lle(e);
+ return await a8("batch-dock", e.root), C8 = t, t;
+ })(), S8;
+}
+var w8 = () => C8, T8 = null;
+function _Le(e) {
+ return T8 ??= (async () => {
+ Gle(e), await a8("glow-picker", e.root);
+ })(), T8;
+}
+function E8(e, t, n, r) {
HQ(e, t), UQ(n, r);
}
// src/application/receipts.js
-var O8 = {
+var D8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -79741,13 +79751,13 @@ var O8 = {
rollSeed: void 0,
seededSample: void 0
};
-function gLe() {
+function vLe() {
HQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), O8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), O8.toastSeq = 0, O8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++O8.toastSeq}`, o = (e, t, n, r) => {
- Qo(i || (t ? "error" : "success")), D8(L("#toasts"), {
+ }), D8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), D8.toastSeq = 0, D8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++D8.toastSeq}`, o = (e, t, n, r) => {
+ Qo(i || (t ? "error" : "success")), E8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -79762,10 +79772,10 @@ function gLe() {
} : null
});
};
- return o(O8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(O8.toastBody(e), t, n, null) };
- }, O8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ return o(D8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(D8.toastBody(e), t, n, null) };
+ }, D8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = O8.toast({ text: e }, {
+ return r = D8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -79778,14 +79788,14 @@ function gLe() {
}
} : null
}), r;
- }, O8.actionFailure = (e, t) => O8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), O8.rollSeed = () => ir(), O8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, D8.actionFailure = (e, t) => D8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), D8.rollSeed = () => ir(), D8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => rr(n, r(e)) - rr(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
// src/react/catalog-grid/catalog-state.ts
-var _Le = [
+var yLe = [
"loc",
"creator",
"studio",
@@ -79806,10 +79816,10 @@ var _Le = [
"folder",
"folder_recursive"
];
-function k8(e, t, n, r = n.defaultSort) {
- return Ij(e, t, n.defaultSort, n.defaultSortDirection, r);
+function O8(e, t, n, r = n.defaultSort) {
+ return Rj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function vLe(e, t, n) {
+function bLe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = jn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -79825,7 +79835,7 @@ function vLe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: kn[r] || o("state") || "",
- ...k8(o("sort"), o("dir"), t),
+ ...O8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -79835,18 +79845,18 @@ function vLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function yLe(e, t) {
+function xLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function bLe(e) {
+function SLe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of _Le) {
+ for (let t of yLe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Nj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Fj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function xLe(e, t, n) {
+function CLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79862,7 +79872,7 @@ function xLe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Fj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Lj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79872,7 +79882,7 @@ function xLe(e, t, n) {
folder_recursive: ""
};
}
-function A8(e) {
+function k8(e) {
return {
state: e,
barsContext: {
@@ -79883,7 +79893,7 @@ function A8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var SLe = class {
+var wLe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79928,44 +79938,44 @@ var SLe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, j8 = Infinity, M8 = 0, CLe = (e, t = M8) => [
+}, A8 = Infinity, j8 = 0, TLe = (e, t = j8) => [
"facets",
e,
t
-], wLe = (e, t, n = M8) => [
+], ELe = (e, t, n = j8) => [
"tops",
e,
t,
n
-], TLe = (e, t = M8) => [
+], DLe = (e, t = j8) => [
"tops",
e,
t
];
-async function N8(e) {
+async function M8(e) {
let t = String(e), n = await Tn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Tn(`/api/tops?${r}`));
}
-function ELe(e, t) {
+function OLe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: CLe(e),
+ queryKey: TLe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: j8
+ staleTime: A8
}), H.fetchQuery({
- queryKey: wLe(t, e),
- queryFn: () => N8(t),
- staleTime: j8
+ queryKey: ELe(t, e),
+ queryFn: () => M8(t),
+ staleTime: A8
})]);
}
-function DLe(e) {
+function kLe(e) {
return H.fetchQuery({
- queryKey: TLe(e),
- queryFn: () => N8(e),
- staleTime: j8
+ queryKey: DLe(e),
+ queryFn: () => M8(e),
+ staleTime: A8
});
}
-function P8() {
- M8 += 1;
+function N8() {
+ j8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -79976,7 +79986,7 @@ function P8() {
});
}
// src/application/navigation-items.ts
-var F8 = [
+var P8 = [
[
"",
"首页",
@@ -80027,7 +80037,7 @@ var F8 = [
"管理",
"wrench"
]
-], I8 = [
+], F8 = [
[
"stats",
"统计",
@@ -80073,18 +80083,18 @@ var F8 = [
"Peach 配置",
"folder-cog"
]
-], L8 = [
+], I8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], OLe = (e) => I8.filter(([t]) => L8.includes(t) && (t !== "configuration" || e)), R8 = I8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], ALe = (e) => F8.filter(([t]) => I8.includes(t) && (t !== "configuration" || e)), L8 = F8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), kLe = [...F8, ...R8], ALe = {
+]]), jLe = [...P8, ...L8], MLe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80092,18 +80102,18 @@ var F8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, z8 = [
+}, R8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function B8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function z8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function V8(e, t, n) {
+function B8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: _o(e.k, r ? {
@@ -80116,20 +80126,20 @@ function V8(e, t, n) {
face: yo(e.avatar_focus)
};
}
-function H8(e) {
+function V8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Va({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function jLe(e) {
+function NLe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(B8(t), n);
+ e.route(z8(t), n);
},
- personAvatar: V8,
- authorAvatar: H8,
+ personAvatar: B8,
+ authorAvatar: V8,
openFollowAuthor(n) {
t(Aa(e.followView(), n));
},
@@ -80139,7 +80149,7 @@ function jLe(e) {
};
}
// src/application/effects.ts
-var U8 = class {
+var H8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -80220,12 +80230,12 @@ var U8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, W8 = new U8();
-function MLe() {
- return W8.dispose(), W8 = new U8(), W8;
+}, U8 = new H8();
+function PLe() {
+ return U8.dispose(), U8 = new H8(), U8;
}
// src/application/source-action.ts
-function NLe(e) {
+function FLe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -80240,36 +80250,36 @@ function NLe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var G8 = () => Object.fromEntries(AX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function K8(e, t) {
- let n = new URLSearchParams(e), r = G8();
+var W8 = () => Object.fromEntries(AX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function G8(e, t) {
+ let n = new URLSearchParams(e), r = W8();
for (let e of AX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Ij(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Rj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function q8(e) {
+function K8(e) {
let t = new URLSearchParams();
- for (let n of AX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Nj(e.sort || "") || t.set(n, e[n]);
+ for (let n of AX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Fj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function J8(e) {
+function q8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function Y8(e, t) {
- let n = new URLSearchParams(q8(e));
+function J8(e, t) {
+ let n = new URLSearchParams(K8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function PLe(e, t, n, r) {
- let i = Y8(n, r);
+function ILe(e, t, n, r) {
+ let i = J8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function FLe() {
+function LLe() {
let e = "";
return {
fresh(t, n) {
@@ -80278,22 +80288,22 @@ function FLe() {
read(t, n, r, i) {
let a = e === Pn(t, n) && !r;
e = "";
- let o = a ? G8() : { ...K8(r, i) };
+ let o = a ? W8() : { ...G8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : J8(r)
+ } : q8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function ILe(e, t) {
+function RLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function LLe(e) {
+function zLe(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);
@@ -80315,12 +80325,12 @@ function LLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function RLe(e, t, n) {
+function BLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(PLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(ILe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80334,7 +80344,7 @@ function RLe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : G8();
+ return n?.kind === t && n.name === a ? n.filters : W8();
}, l = {
...n,
route: (e, n) => {
@@ -80347,7 +80357,7 @@ function RLe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Pj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Ij(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80398,7 +80408,7 @@ function RLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function zLe(e) {
+function VLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80408,7 +80418,7 @@ function zLe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function BLe(e, t) {
+function HLe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
@@ -80430,11 +80440,11 @@ function BLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function VLe(e) {
- let t = FLe(), n = {
+function ULe(e) {
+ let t = LLe(), n = {
...e.helpers,
- portraitImg: BLe
- }, r = RLe(e.controller, n, e.actions);
+ portraitImg: HLe
+ }, r = BLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80443,12 +80453,12 @@ function VLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: zLe(e.loading),
- photos: LLe(e.photos)
+ loading: VLe(e.loading),
+ photos: zLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function HLe(e) {
+function WLe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -80456,7 +80466,7 @@ function HLe(e) {
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var X8 = {
+var Y8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -80472,56 +80482,56 @@ var X8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function Z8(e) {
+function X8(e) {
return e.has_cover ? So(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Hs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : So(e, "big").replace(/ src="[^"]*"/, ` src="${z(fo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function ULe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Z8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? HI({
+function GLe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = X8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? WI({
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:${uM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${fM}">${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">${HLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${WLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function WLe() {
+function KLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- X8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
+ Y8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
} catch {}
}
-async function Q8() {
- let e = W8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (X8.entityShapesComplete = !0, X8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && e5(t.home.feed), i5(location.pathname) && t5(L("#feedNew"))), X8.entityShapes;
+async function Z8() {
+ let e = U8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (Y8.entityShapesComplete = !0, Y8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && $8(t.home.feed), r5(location.pathname) && e5(L("#feedNew"))), Y8.entityShapes;
}
-var $8 = "peach.home-feed.v1";
-function e5(e) {
+var Q8 = "peach.home-feed.v1";
+function $8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem($8, e ? "1" : "0");
+ localStorage.setItem(Q8, e ? "1" : "0");
} catch {}
}
-function GLe() {
+function qLe() {
try {
- let e = localStorage.getItem($8);
+ let e = localStorage.getItem(Q8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function t5(e) {
- !e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = X8.feedNewSkeletonHtml())));
+function e5(e) {
+ !e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Y8.feedNewSkeletonHtml())));
}
-function KLe(e, t) {
+function JLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80529,55 +80539,55 @@ function KLe(e, t) {
actionHref: "/sources"
});
}
-function n5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${uM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return KLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(ULe).join("")}${r}</div>`;
+function t5(e, t = "") {
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${fM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return JLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(GLe).join("")}${r}</div>`;
}
-function r5(e) {
- e && (s9(e), Z.appSettings.feedAutoScroll && Bc(e));
+function n5(e) {
+ e && (o9(e), Z.appSettings.feedAutoScroll && Bc(e));
}
-function i5(e) {
+function r5(e) {
return jn(e) && e !== "/junk-files";
}
-function qLe() {
+function YLe() {
let e = L("#feedNew");
- hp(e) ? e.hidden = X.homeHasFeed !== !0 : (t5(e), yp("feed-new", {
+ hp(e) ? e.hidden = X.homeHasFeed !== !0 : (e5(e), yp("feed-new", {
host: e,
- revision: X8.feedRevision,
- helpers: X8.feedNewHelpers,
- actions: X8.feedNewActions
+ revision: Y8.feedRevision,
+ helpers: Y8.feedNewHelpers,
+ actions: Y8.feedNewActions
}, {
container: e,
- isCurrent: () => i5(location.pathname)
+ isCurrent: () => r5(location.pathname)
}));
}
-function a5() {
+function i5() {
let e = L("#feedNew");
e.querySelectorAll(".feednewrow").forEach(Vc), e.hidden = !0;
}
-function o5() {
- X8.feedRevision += 1, xp(L("#feedNew"), { revision: X8.feedRevision }), l5({ feedRevision: X8.feedRevision });
+function a5() {
+ Y8.feedRevision += 1, xp(L("#feedNew"), { revision: Y8.feedRevision }), c5({ feedRevision: Y8.feedRevision });
}
-function JLe() {
+function XLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
-var s5 = 0;
-function YLe([e]) {
- let t = e.contentRect.width >= X8.HERO_WIDE_PX;
- cancelAnimationFrame(s5), s5 = requestAnimationFrame(() => {
- s5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var o5 = 0;
+function ZLe([e]) {
+ let t = e.contentRect.width >= Y8.HERO_WIDE_PX;
+ cancelAnimationFrame(o5), o5 = requestAnimationFrame(() => {
+ o5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function XLe() {
- X8.FEED_SKELETON_CARDS = 8, X8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${uM}"></div>
+function QLe() {
+ Y8.FEED_SKELETON_CARDS = 8, Y8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${fM}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(X8.FEED_SKELETON_CARDS)}</div>`, X8.entityShapes = null, X8.entityShapesComplete = !1, X8.hasEntityShape = (e, t) => X8.entityShapesComplete || !!X8.entityShapes?.has(`${e}/${Un(t)}`), X8.hasEntityPart = (e, t, n) => !!t && !!X8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), X8.feedNewSkeletonSection = () => `<section class="feednew">${X8.feedNewSkeletonHtml()}</section>`, X8.COSTAR_SKELETON_PEOPLE = 12, X8.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(X8.COSTAR_SKELETON_PEOPLE)}</div></div>`, X8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, X8.feedRevision = 0, X8.feedNewHelpers = {
- feedRowHtml: n5,
- wireFeedRow: (e) => r5(e)
- }, X8.feedNewActions = { settled: (e) => e5(e) }, X8.HERO_WIDE_PX = 900, W8.resize(YLe).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(Y8.FEED_SKELETON_CARDS)}</div>`, Y8.entityShapes = null, Y8.entityShapesComplete = !1, Y8.hasEntityShape = (e, t) => Y8.entityShapesComplete || !!Y8.entityShapes?.has(`${e}/${Un(t)}`), Y8.hasEntityPart = (e, t, n) => !!t && !!Y8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Y8.feedNewSkeletonSection = () => `<section class="feednew">${Y8.feedNewSkeletonHtml()}</section>`, Y8.COSTAR_SKELETON_PEOPLE = 12, Y8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(Y8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Y8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Y8.feedRevision = 0, Y8.feedNewHelpers = {
+ feedRowHtml: t5,
+ wireFeedRow: (e) => n5(e)
+ }, Y8.feedNewActions = { settled: (e) => $8(e) }, Y8.HERO_WIDE_PX = 900, U8.resize(ZLe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function ZLe(e, t, n, r = "") {
+function $Le(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -80616,16 +80626,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function c5() {
+function s5() {
let e = mp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function l5(e) {
+function c5(e) {
Y.entityPageCurrent() && xp(L("#index"), e);
}
-function u5() {
+function l5() {
if (Jl.type === "item") return Jl;
- let e = c5();
+ let e = s5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -80637,23 +80647,23 @@ function u5() {
}
return Jl;
}
-function d5(e, t, n = c7()) {
- return WRe(n).map(([n, r]) => {
- let i = e === n, a = Pj(n, e, t);
+function u5(e, t, n = s7()) {
+ return KRe(n).map(([n, r]) => {
+ let i = e === n, a = Ij(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Mj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Mj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Pj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Pj(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function f5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function d5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function p5() {
- return ILe({
+function f5() {
+ return RLe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -80662,37 +80672,37 @@ function p5() {
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function m5() {
+function p5() {
Y.photos.sync();
}
-function h5() {
- p5() ? Ble(gM()) : kM();
+function m5() {
+ f5() ? Rle(vM()) : jM();
}
-function QLe(e) {
+function eRe(e) {
Y.photos.setSize(e);
}
-var g5 = NLe({
+var h5 = FLe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => O8.toast({ text: "已在资源管理器中显示" }),
+ success: () => D8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function _5(e) {
+async function g5(e) {
let t = { textContent: "" };
- return await g5(e, t), t.textContent;
+ return await h5(e, t), t.textContent;
}
-async function $Le(e) {
+async function tRe(e) {
let t = { textContent: "" }, n = [];
- return await v5(e, t, (e) => {
+ return await _5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function v5(e, t, n) {
+async function _5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await Tn("/api/purge-missing", {
@@ -80705,7 +80715,7 @@ async function v5(e, t, n) {
}
if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), O8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), D8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80717,22 +80727,22 @@ async function v5(e, t, n) {
restored: e.length
});
} : null });
- } else O8.actionReceipt("目录核对完成,无需改动");
+ } else D8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), O8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), D8.actionFailure("核对目录", e);
}
}
-function eRe(e) {
+function nRe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function tRe(e, t) {
+function rRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && W8.handler(r, "onclick", () => g5(Number(r.dataset.reveal), n, { button: r })), i && W8.handler(i, "onclick", () => v5(Number(i.dataset.sync), n, t));
+ r && U8.handler(r, "onclick", () => h5(Number(r.dataset.reveal), n, { button: r })), i && U8.handler(i, "onclick", () => _5(Number(i.dataset.sync), n, t));
}
-async function nRe(e, t) {
+async function iRe(e, t) {
let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80744,9 +80754,9 @@ async function nRe(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- W8.handler(r, "oninput", () => {
+ U8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => W8.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => U8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -80755,53 +80765,53 @@ async function nRe(e, t) {
remove: !0
});
} catch (e) {
- O8.actionFailure("撤销别名", e);
+ D8.actionFailure("撤销别名", e);
return;
}
- O8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ D8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? O8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? D8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : O8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : D8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function y5(e, t) {
- let n = ["performer", "studio"].includes(e) && X8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Es()}${e === "agency" ? "" : N0(d5(U.sort, U.dir, n), n ? {
+function v5(e, t) {
+ let n = ["performer", "studio"].includes(e) && Y8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Es()}${e === "agency" ? "" : M0(u5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${j0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${j0}>${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}" ${j0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = ZLe(e, r, e === "agency" ? oc({
+ value: mM(),
+ options: lM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${A0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${A0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${A0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = $Le(e, r, e === "agency" ? oc({
kind: "performers",
- layout: F5.peopleIndexLayout()
- }) : LJ("正在读取作品", bM(yM({
+ layout: P5.peopleIndexLayout()
+ }) : IJ("正在读取作品", SM(xM({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? b5(e, t) : (L("#index").innerHTML = a, b5(e, t), pc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? y5(e, t) : (L("#index").innerHTML = a, y5(e, t), pc(L("#index")));
}
-function b5(e, t) {
+function y5(e, t) {
let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && X8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", X8.costarSkeletonFoot())), r(n.querySelector(".feednew"), X8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", X8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && X8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", X8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && Y8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Y8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Y8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Y8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Y8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Y8.factsSkeleton()));
}
-function x5(e) {
- let t = Mn[e] || e, n = a6[t] || "条目", r = a6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function b5(e) {
+ let t = Mn[e] || e, n = i6[t] || "条目", r = i6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function S5(e, t) {
- T9(Y.application.fresh(e, t));
+function x5(e, t) {
+ w9(Y.application.fresh(e, t));
}
-function rRe() {
+function aRe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -80813,40 +80823,40 @@ function rRe() {
"year",
"sort",
"dir"
- ], Y.emptyEntityFilters = G8, Y.parseEntityFilters = (e) => K8(e, {
+ ], Y.emptyEntityFilters = W8, Y.parseEntityFilters = (e) => G8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = q8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = K8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = u5();
+ let e = l5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function iRe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!c5(), Y.entityPageLive = (e, t) => {
- let n = c5();
+function oRe() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!s5(), Y.entityPageLive = (e, t) => {
+ let n = s5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = J8, Y.entityViewSearch = Y8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Z7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = q8, Y.entityViewSearch = J8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => X7(), Y.entityPageHelpers = {
wireDrag: (e) => {
- e && s9(e);
+ e && o9(e);
},
wireScroller: (e) => {
e && Ac(e);
},
- wireFeedRow: (e) => r5(e),
- feedRowHtml: n5,
- receipt: (e, t) => O8.actionReceipt(e, t),
- failure: (e, t) => O8.actionFailure(e, t),
- aliasForm: (e, t) => nRe(e, t),
- sourceToolsHtml: (e) => eRe(e),
- wireSourceTools: (e, t) => tRe(e, t),
- comboItems: (e) => B7(e),
- sortKeys: (e, t, n) => d5(e, t, n)
+ wireFeedRow: (e) => n5(e),
+ feedRowHtml: t5,
+ receipt: (e, t) => D8.actionReceipt(e, t),
+ failure: (e, t) => D8.actionFailure(e, t),
+ aliasForm: (e, t) => iRe(e, t),
+ sourceToolsHtml: (e) => nRe(e),
+ wireSourceTools: (e, t) => rRe(e, t),
+ comboItems: (e) => z7(e),
+ sortKeys: (e, t, n) => u5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -80869,11 +80879,11 @@ function iRe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function aRe() {
- Y.application = VLe({
+function sRe() {
+ Y.application = ULe({
controller: {
context: () => {
- let e = u5();
+ let e = l5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
@@ -80885,28 +80895,28 @@ function aRe() {
filters: U
} }),
releaseBodyPreviews: () => Nl(L("#index [data-entity-body]")),
- push: l5,
+ push: c5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: X8.feedRevision,
- photoSize: gM(),
- photoLayout: _M(),
- photoLayouts: lM,
+ feedRevision: Y8.feedRevision,
+ photoSize: vM(),
+ photoLayout: yM(),
+ photoLayouts: dM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: fM(),
- javLayouts: sM,
+ javLayout: mM(),
+ javLayouts: lM,
states: X.VIEW_PILLS,
- peopleLayout: F5.peopleIndexLayout(),
- layout: X7(),
+ peopleLayout: P5.peopleIndexLayout(),
+ layout: Y7(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: s9,
+ wireDrag: o9,
skeletonHtml: Y.entityBodySkeleton,
canLoadMore: Y.entityBodyCanLoadMore,
follow: {
@@ -80914,52 +80924,52 @@ function aRe() {
actions: Y.entityFollowActions
}
}),
- changeFilter: D7,
- rollSeed: () => O8.rollSeed(),
+ changeFilter: E7,
+ rollSeed: () => D8.rollSeed(),
writeSeed: (e) => {
U.seed = e, Su();
},
- setJavLayout: d7,
- javLayout: fM,
- setPhotoLayout: SM,
- syncPhotoWalls: m5,
- openEntity: S5,
- photoViewActive: p5,
+ setJavLayout: u7,
+ javLayout: mM,
+ setPhotoLayout: wM,
+ syncPhotoWalls: p5,
+ openEntity: x5,
+ photoViewActive: f5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: h5,
- scheduleSticky: v7,
+ syncDensity: m5,
+ scheduleSticky: _7,
releasePage: () => Sp(L("#index")),
- showMissing: x5,
- dropBars: P8
+ showMissing: b5,
+ dropBars: N8
},
loading: {
- shapesReady: (e, t) => X8.hasEntityShape(e, t),
- waitShapes: H5,
- paintSkeleton: y5,
+ shapesReady: (e, t) => Y8.hasEntityShape(e, t),
+ waitShapes: V5,
+ paintSkeleton: v5,
resetView: () => {
W({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: Q8,
- syncParts: b5
+ loadShapes: Z8,
+ syncParts: y5
},
photos: {
preferences: () => ({
- size: gM(),
- layout: _M(),
+ size: vM(),
+ layout: yM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: l5,
- pushFollow: A9,
- syncDensity: h5,
- storeSize: Rle
+ pushEntity: c5,
+ pushFollow: k9,
+ syncDensity: m5,
+ storeSize: Ile
},
helpers: Y.entityPageHelpers,
actions: {
- toggleTag: z7,
- openFollowAuthor: R5,
+ toggleTag: R7,
+ openFollowAuthor: L5,
javContext: (e) => W({ entityJavLayout: !!e })
},
sortPreference: () => ({
@@ -80969,8 +80979,8 @@ function aRe() {
}), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
}
// src/application/playlists.js
-var C5 = { playlistWrite: void 0 };
-function oRe(e, t) {
+var S5 = { playlistWrite: void 0 };
+function cRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -80980,17 +80990,17 @@ function oRe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(b7()), q5(), L7()) : S5(e, t);
+ } }), X.clearSearchField(), Q.route(y7()), K5(), I7()) : x5(e, t);
}
-function w5(e = "") {
+function C5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function sRe({ title: e, count: t, save: n }) {
+async function lRe({ title: e, count: t, save: n }) {
let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: w5(e),
+ body: C5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -81000,28 +81010,28 @@ async function sRe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await p9(a.id, a.current_asset_id, !0), O8.actionReceipt("已保存为播放列表", { undo: async () => {
- await C5.playlistWrite({
+ i && (await f9(a.id, a.current_asset_id, !0), D8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await S5.playlistWrite({
action: "delete",
id: a.id
- }), T9("/playlists");
+ }), w9("/playlists");
} }));
}
-async function cRe(e) {
+async function uRe(e) {
let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Gs(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = sl({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: w5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: C5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await C5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await S5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await C5.playlistWrite({
+ for (let t of r) await S5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -81035,46 +81045,46 @@ async function cRe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- W8.listen(n.dialog, "input", r), W8.listen(n.dialog, "change", r);
+ U8.listen(n.dialog, "input", r), U8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- O8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await C5.playlistWrite({
+ D8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await S5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await C5.playlistWrite({
+ a.created && await S5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function T5() {
- Nl(), d9(!1), K5();
+function w5() {
+ Nl(), u9(!1), G5();
let e = mp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (G5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
+ e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (W5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function lRe(e) {
+function dRe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
}
-function E5(e) {
+function T5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function uRe() {
- C5.playlistWrite = (e) => Tn("/api/playlist", {
+function fRe() {
+ S5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function D5(e) {
+function E5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function O5(e, t, n, r, i = !1) {
+function D5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -81082,23 +81092,23 @@ function O5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function k5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = bY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function O5(e, t, n, r, i, a = !1) {
+ let o = n === "follow", s = yY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...O5(e, t, n, !0),
+ ...D5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function dRe(e, t, n, r) {
- let i = D5(t);
+function pRe(e, t, n, r) {
+ let i = E5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: IU(n).view === "dismissed"
+ junkDismissed: FU(n).view === "dismissed"
};
}
// src/application/selection.js
-var A5 = {
+var k5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -81106,43 +81116,43 @@ var A5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function j5() {
- J7({
+function A5() {
+ q7({
selected: new Set(Xl),
selectMode: Ql
- }), l5({
+ }), c5({
selected: new Set(Xl),
selectMode: Ql
- }), A9({
+ }), k9({
selected: new Set(Zl),
selectMode: Ql
- }), A5.batchDockProps = xRe(), T8() && (T8().render(A5.batchDockProps), Z.syncGlassOptics());
+ }), k5.batchDockProps = CRe(), w8() && (w8().render(k5.batchDockProps), Z.syncGlassOptics());
}
-function M5(e, t = !1) {
- W(O5({
+function j5(e, t = !1) {
+ W(D5({
selected: Xl,
followSelected: Zl
- }, P5(), D5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), j5();
+ }, N5(), E5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), A5();
}
-function fRe() {
- return [...z5.gridCards()].map((e) => +e.dataset.id);
+function mRe() {
+ return [...R5.gridCards()].map((e) => +e.dataset.id);
}
-function N5(e, t = !1) {
- W(k5({
+function M5(e, t = !1) {
+ W(O5({
selected: Xl,
followSelected: Zl
- }, P5(), D5(location.pathname), fRe(), e, t)), M5(!0);
+ }, N5(), E5(location.pathname), mRe(), e, t)), j5(!0);
}
-function pRe() {
+function hRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function mRe(e, t = !1) {
- W(k5({
+function gRe(e, t = !1) {
+ W(O5({
selected: Xl,
followSelected: Zl
- }, P5(), "follow", pRe(), e, t)), M5(!0);
+ }, N5(), "follow", hRe(), e, t)), j5(!0);
}
-async function hRe(e, t) {
+async function _Re(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81174,9 +81184,9 @@ async function hRe(e, t) {
})
});
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- M5(!1, !0), await p7();
+ j5(!1, !0), await f7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- O8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ D8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -81201,23 +81211,23 @@ async function hRe(e, t) {
operation: r
})
});
- await p7();
+ await f7();
} : null });
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), j5();
+ Xc(t, !1), A5();
}
}
});
}
-async function gRe() {
+async function vRe() {
let e = [...Xl];
if (!e.length) return;
let t = sl({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + A5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + k5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
@@ -81237,13 +81247,13 @@ async function gRe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => W8.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => U8.handler(e, "onclick", () => {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (M5(!1, !0), await p7(), O8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (j5(!1, !0), await f7(), D8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function _Re(e, t) {
+async function yRe(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -81269,16 +81279,16 @@ async function _Re(e, t) {
items: n,
to: e
})
- }), M5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), O8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), j5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), D8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), j5();
+ Xc(t, !1), A5();
}
}
});
}
-async function vRe(e, t) {
+async function bRe(e, t) {
let n = [...Xl];
if (!n.length) return;
let r = {
@@ -81305,68 +81315,68 @@ async function vRe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), M5(!1, !0), await H7();
+ }), j5(!1, !0), await V7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- O8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ D8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await H7();
+ }), await V7();
} : null });
} catch (e) {
throw Xc(t, !1), e;
} finally {
- Xc(t, !1), j5();
+ Xc(t, !1), A5();
}
}
});
}
-function yRe() {
- mLe({
+function xRe() {
+ gLe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- A5.BATCH_RUNNERS[e]?.(t, n);
+ k5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(A5.batchDockProps), Z.syncGlassOptics();
+ e.render(k5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function bRe() {
- A5.batchDockProps = {
+function SRe() {
+ k5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, A5.trashCount = null, A5.currentSelectSurface = () => D5(location.pathname), W8.handler(L("#selectMode"), "onclick", () => M5(!Ql, !!Ql)), A5.REGION_CHOICES = [
+ }, k5.trashCount = null, k5.currentSelectSurface = () => E5(location.pathname), U8.handler(L("#selectMode"), "onclick", () => j5(!Ql, !!Ql)), k5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], A5.BATCH_RUNNERS = {
- batch: hRe,
- region: gRe,
- follow: _Re,
- junk: vRe,
- clear: () => M5(!1, !0)
- }, W8.handler(L("#density"), "onclick", () => {
- p5() ? QLe(gM() === "big" ? "small" : "big") : zle();
- }), kM(), jl({
+ ], k5.BATCH_RUNNERS = {
+ batch: _Re,
+ region: vRe,
+ follow: yRe,
+ junk: bRe,
+ clear: () => j5(!1, !0)
+ }, U8.handler(L("#density"), "onclick", () => {
+ f5() ? eRe(vM() === "big" ? "small" : "big") : Lle();
+ }), jM(), jl({
selecting: () => Ql,
- censored: () => r9(),
+ censored: () => n9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), W8.listen(window, "pagehide", () => Nl()), W8.listen(document, "visibilitychange", () => {
+ }), U8.listen(window, "pagehide", () => Nl()), U8.listen(document, "visibilitychange", () => {
document.hidden && Nl();
- }), Ol(), A5.coverRecheck = 0, W8.listen(window, "resize", () => {
- Tl(L("#index")), clearTimeout(A5.coverRecheck), A5.coverRecheck = W8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ }), Ol(), k5.coverRecheck = 0, U8.listen(window, "resize", () => {
+ Tl(L("#index")), clearTimeout(k5.coverRecheck), k5.coverRecheck = U8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && gl(e);
}), 200);
}, { passive: !0 });
}
-function P5() {
+function N5() {
return {
selectMode: Ql,
selectSurface: tu,
@@ -81374,73 +81384,73 @@ function P5() {
followLastSelectedId: eu
};
}
-function xRe() {
- return dRe({
+function CRe() {
+ return pRe({
selected: Xl,
followSelected: Zl
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var F5 = {
+var P5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function SRe() {
+function wRe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function CRe() {
+function TRe() {
return jZ(location.search);
}
-function wRe(e) {
+function ERe(e) {
return MZ(e);
}
-function TRe(e) {
- Q.route(wRe(e));
+function DRe(e) {
+ Q.route(ERe(e));
}
-function ERe(e = "") {
+function ORe(e = "") {
return NZ(location.search, e);
}
-function DRe(e) {
- return H8(e);
+function kRe(e) {
+ return V8(e);
}
-function I5(e) {
- return B8(e);
+function F5(e) {
+ return z8(e);
}
-function L5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, W7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function I5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, U7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function ORe(e, t) {
+function ARe(e, t) {
W({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), M5(!1, !1), Q.route(b7()), q5(), x9(), L7();
+ } }), j5(!1, !1), Q.route(y7()), K5(), b9(), I7();
}
-function R5(e) {
- F5.controller.openFollowAuthor(e);
+function L5(e) {
+ P5.controller.openFollowAuthor(e);
}
-function kRe(e) {
- F5.controller.openFollowTag(e);
+function jRe(e) {
+ P5.controller.openFollowTag(e);
}
-function ARe() {
- $.FOLLOW_MANAGE_TABS = AZ, W8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && E5("媒体库与入库");
- }), F5.peopleIndexLayout = () => o6(Z.appSettings.peopleLayout), F5.personAvatar = V8;
+function MRe() {
+ $.FOLLOW_MANAGE_TABS = AZ, U8.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && T5("媒体库与入库");
+ }), P5.peopleIndexLayout = () => a6(Z.appSettings.peopleLayout), P5.personAvatar = B8;
}
-function jRe() {
- F5.controller = jLe({
+function NRe() {
+ P5.controller = NLe({
route: Q.route,
- followView: D9,
- adoptFollowView: O9,
+ followView: E9,
+ adoptFollowView: D9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: T9
+ openPage: w9
});
}
// src/application/loading.js
-var z5 = {
+var R5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -81449,58 +81459,58 @@ var z5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function B5(e = "正在读取作品") {
+function z5(e = "正在读取作品") {
if (location.pathname === "/wall") {
L("#loadSentinel").hidden = !0;
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = _ye(IU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && k7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = yye(FU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && O7({
count: null,
- ...M7()
- })), L("#loadSentinel").hidden = !0, q7()) return;
- let r = L("#grid"), i = Z7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== P2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : z5.setGridCards(i), pc(L("#grid")));
+ ...j7()
+ })), L("#loadSentinel").hidden = !0, K7()) return;
+ let r = L("#grid"), i = X7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== N2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Z7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : R5.setGridCards(i), pc(L("#grid")));
}
-function V5() {
- L("#catalogFilter").style.display = "none", O7();
+function B5() {
+ L("#catalogFilter").style.display = "none", D7();
}
-function H5() {
+function V5() {
let e = new Promise((e) => {
- let t = z5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = R5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? W8.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? U8.delay(r, Math.min(t, 50)) : e();
};
- W8.delay(r, 50);
+ U8.delay(r, 50);
});
- return Promise.race([z5.entityShapesReady ||= Q8(), e]);
+ return Promise.race([R5.entityShapesReady ||= Z8(), e]);
}
-function MRe() {
+function PRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), V5(), ibe();
- else if (/^\/assets\/\d+$/.test(e)) V5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) V5();
- else if (e === "/junk-files") B5("正在读取垃圾文件");
- else if (e === "/jav" && cU(new URLSearchParams(location.search).get("tab")) === "library") B5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), B5(), obe();
+ else if (/^\/assets\/\d+$/.test(e)) B5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) B5();
+ else if (e === "/junk-files") z5("正在读取垃圾文件");
+ else if (e === "/jav" && sU(new URLSearchParams(location.search).get("tab")) === "library") z5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- V5();
+ B5();
let t = L("#stats");
- t.hidden = !1, W7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : z5.managementPlaceholder(e), pc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) V5(), L5(), l6(L("#index"), s6(e.slice(1), location.search), F5.peopleIndexLayout());
+ t.hidden = !1, U7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : R5.managementPlaceholder(e), pc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) B5(), I5(), c6(L("#index"), o6(e.slice(1), location.search), P5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- V5(), L("#index").hidden = !1, W7();
+ B5(), L("#index").hidden = !1, U7();
let t = Nn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (X8.hasEntityShape(t, n) ? Promise.resolve() : H5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (y5(t, n), pc(L("#index")));
+ (Y8.hasEntityShape(t, n) ? Promise.resolve() : V5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (v5(t, n), pc(L("#index")));
});
- } else Q.routeMeta(e) ? B5() : (W7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? z5() : (U7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function NRe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => M2(t, {
+function FRe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => j2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: gM()
+ gridSize: vM()
}), $.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>
@@ -81508,37 +81518,37 @@ function NRe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), z5.setGridCards = (e) => ic(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), R5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), z5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), z5.managementPlaceholder = (e) => N2(e, {
- followLayout: SRe(),
+ }), R5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), R5.managementPlaceholder = (e) => M2(e, {
+ followLayout: wRe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(CRe())
- }), z5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", z5.entityShapesReady = null, z5.ENTITY_SHAPES_WAIT = 400, z5.syncPageTitle = (e) => {
+ }))(TRe())
+ }), R5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", R5.entityShapesReady = null, R5.ENTITY_SHAPES_WAIT = 400, R5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, y9();
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, v9();
};
}
// src/sidebar-skeleton.ts
-var U5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var H5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function PRe(e, t, n) {
+function IRe(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-${U5(r)}"/></svg>`;
- return `<button type="button" data-nav="${U5(e)}" aria-pressed="${n(e)}" aria-label="${U5(t)}">${i}<span>${U5(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${H5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${H5(e)}" aria-pressed="${n(e)}" aria-label="${H5(t)}">${i}<span>${H5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function FRe(e, t, n, r = !1) {
+function LRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81556,7 +81566,7 @@ function FRe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var W5 = {
+var U5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -81578,20 +81588,20 @@ var W5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function G5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, W7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? t7() : (n7(""), x9()), t && F2(L("#stats"), t);
+function W5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, U7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? e7() : (t7(""), b9()), t && P2(L("#stats"), t);
}
-function K5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), V5(), document.body.classList.remove("entity-open", "index-open");
+function G5() {
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), B5(), document.body.classList.remove("entity-open", "index-open");
}
-function q5() {
- L("#javLibraryHeader").hidden = !jn(location.pathname) || !c7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, i5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", O7(), t7(), r7();
+function K5() {
+ L("#javLibraryHeader").hidden = !jn(location.pathname) || !s7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, r5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", D7(), e7(), n7();
}
-function IRe() {
- Q.route("/"), q5();
+function RRe() {
+ Q.route("/"), K5();
}
-function J5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- b9({
+function q5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ y9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -81614,28 +81624,28 @@ function J5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function Y5(e) {
- Lze({
- ...D9(),
+function J5(e) {
+ zze({
+ ...E9(),
...e
- }), b9({ filters: $.followSidebarFilters() });
+ }), y9({ filters: $.followSidebarFilters() });
}
-function X5() {
+function Y5() {
return matchMedia("(max-width:760px)").matches;
}
-function Z5(e) {
+function X5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && X5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && Y5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function Q5() {
- X5() && Z5(!1);
+function Z5() {
+ Y5() && X5(!1);
}
-function LRe() {
+function zRe() {
du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
- W({ runtimeConfigurable: !!e.configurable }), du && e7() && t7();
+ W({ runtimeConfigurable: !!e.configurable }), du && $5() && e7();
}).catch(() => {}));
}
-function $5(e = "", t = !1) {
+function Q5(e = "", t = !1) {
if (!t && !Mf(location.pathname)) {
let t = Np.navigation;
Np.push(Pf(e), { settingsBackground: {
@@ -81648,38 +81658,38 @@ function $5(e = "", t = !1) {
replace: !0,
state: Np.navigation.location.state
});
- return e ||= Nf(location.pathname), dLe(W5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), pLe(U5.settingsHost()).then((t) => (t.open(e), t));
}
-function RRe() {
+function BRe() {
Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
}
-function zRe() {
+function VRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: W5.NAV_CATALOG,
- navOn: h7,
- navTo: g7,
+ navCatalog: U5.NAV_CATALOG,
+ navOn: m7,
+ navTo: h7,
navToTop: () => {
- Q5(), _m();
+ Z5(), _m();
},
- toggleChip: (e, t, n) => D7((r) => {
+ toggleChip: (e, t, n) => E7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
} else r[e] = r[e] === t ? "" : t;
}),
- setDuration: (e, t) => D7((n) => {
+ setDuration: (e, t) => E7((n) => {
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), Z5(!1), T9(E9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), X5(!1), w9(T9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), Z5(!1), T9(E9());
+ $.followTags = /* @__PURE__ */ new Set([e]), X5(!1), w9(T9());
},
- selectFollowProvider: (e) => Y5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => Y5({
+ selectFollowProvider: (e) => J5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => J5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -81688,76 +81698,76 @@ function zRe() {
}
};
}
-function BRe() {
+function HRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = PRe(Z.appSettings.sidebarOrder, W5.NAV_CATALOG, h7), e.querySelector("[data-sidebar-head]").append(...t), W8.listen(e, "click", (e) => {
- if (y8()) return;
+ e.innerHTML = IRe(Z.appSettings.sidebarOrder, U5.NAV_CATALOG, m7), e.querySelector("[data-sidebar-head]").append(...t), U8.listen(e, "click", (e) => {
+ if (v8()) return;
let t = e.target.closest?.("[data-nav]");
- t && g7(t.dataset.nav);
- }), fLe(zRe()).then((e) => e.render(W5.sidebarProps)).catch(() => {});
+ t && h7(t.dataset.nav);
+ }), mLe(VRe()).then((e) => e.render(U5.sidebarProps)).catch(() => {});
}
-async function VRe() {
- let e = W8, t = null;
+async function URe() {
+ let e = U8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && nM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && iM(t, (e) => Z.settingsEffects[e]?.());
}
-function e7() {
+function $5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function t7() {
- let e = e7();
- LRe(), e && V5(), L("#count").classList.toggle("no-tagbar", !!e), x9(), e !== "trash" && (A5.trashCount = null), n7(e);
+function e7() {
+ let e = $5();
+ zRe(), e && B5(), L("#count").classList.toggle("no-tagbar", !!e), b9(), e !== "trash" && (k5.trashCount = null), t7(e);
}
-function HRe(e) {
+function WRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: W5.MANAGE_SECTIONS,
- menu: e ? W5.manageMenuSections() : [],
- trash: A5.trashCount
+ sections: U5.MANAGE_SECTIONS,
+ menu: e ? U5.manageMenuSections() : [],
+ trash: k5.trashCount
};
}
-function n7(e = e7()) {
- r7();
- let t = HRe(e), n = S8();
+function t7(e = $5()) {
+ n7();
+ let t = WRe(e), n = x8();
if (n) n.render(t);
else {
- let e = Zde(t);
- e !== W5.manageHeaderSkeleton && (W5.manageHeaderSkeleton = e, W5.manageHeaderRoot().innerHTML = e);
+ let e = Yde(t);
+ e !== U5.manageHeaderSkeleton && (U5.manageHeaderSkeleton = e, U5.manageHeaderRoot().innerHTML = e);
}
- let r = RF(t)?.title || "";
- r !== W5.lastManagePageLabel && (W5.lastManagePageLabel = r, r && tc(W5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = BF(t)?.title || "";
+ r !== U5.lastManagePageLabel && (U5.lastManagePageLabel = r, r && tc(U5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function URe() {
- let e = W5.manageHeaderRoot();
- W8.listen(e, "click", (e) => {
- if (S8()) return;
+function GRe() {
+ let e = U5.manageHeaderRoot();
+ U8.listen(e, "click", (e) => {
+ if (x8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) s7(t.dataset.manage);
+ if (t) o7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
- } else e.target.closest?.("[data-empty-trash]") && R7();
- }), pLe({
+ } else e.target.closest?.("[data-empty-trash]") && L7();
+ }), hLe({
root: e,
- openManage: s7,
+ openManage: o7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: R7
- }).then(() => n7()).catch(() => {});
+ emptyTrash: L7
+ }).then(() => t7()).catch(() => {});
}
-function r7() {
+function n7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !e7() && jn(t) && An[U.state] || "";
+ let t = decodeURIComponent(location.pathname), n = !$5() && jn(t) && An[U.state] || "";
e.hidden = !n, n && (e.textContent = n);
let r = L("#catalogPageHeading");
- r.hidden = !!e7() || !jn(t) || !!n || U.jav === "1", i7(r, U.q);
+ r.hidden = !!$5() || !jn(t) || !!n || U.jav === "1", r7(r, U.q);
}
-function i7(e, t) {
+function r7(e, t) {
let n = e?.querySelector("[data-page-title]");
if (!n) return;
let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";
@@ -81770,10 +81780,10 @@ function i7(e, t) {
let n = document.createElement("span");
return n.textContent = e, t !== void 0 && (n.dataset.titleWords = t), n;
};
- n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, o7(n), a7 ??= new ResizeObserver((e) => e.forEach((e) => o7(e.target))), a7.observe(n), document.fonts?.ready.then(() => o7(n));
+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, a7(n), i7 ??= new ResizeObserver((e) => e.forEach((e) => a7(e.target))), i7.observe(n), document.fonts?.ready.then(() => a7(n));
}
-var a7 = null;
-function o7(e) {
+var i7 = null;
+function a7(e) {
let t = e.querySelector("[data-title-words]");
if (!t || !e.clientWidth) return;
let n = t.dataset.titleWords;
@@ -81785,44 +81795,44 @@ function o7(e) {
}
t.textContent = r.slice(0, o).join("") + "…";
}
-function s7(e = "stats") {
+function o7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(LU()), q5(), x9(), L7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(IU()), K5(), b9(), I7());
}
-function c7() {
+function s7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function WRe(e = c7()) {
- let t = Dj.filter(([e]) => e !== "seed");
- return e ? [Oj, ...t] : t;
+function KRe(e = s7()) {
+ let t = kj.filter(([e]) => e !== "seed");
+ return e ? [Aj, ...t] : t;
}
-function l7() {
+function c7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function u7() {
- return pM(l7());
+function l7() {
+ return hM(c7());
}
-function GRe(e) {
- Ile(e), f7(), L("#grid").hidden || $7();
+function qRe(e) {
+ Ple(e), d7(), L("#grid").hidden || Q7();
}
-function d7(e) {
- xM(e), f7(), $7();
+function u7(e) {
+ CM(e), d7(), Q7();
}
-function f7() {
+function d7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === u7();
- }), X.catalogFilterProps && k7({ layout: j7() });
+ e.checked = e.value === l7();
+ }), X.catalogFilterProps && O7({ layout: A7() });
}
-function KRe(e) {
- Lle(e), f7(), $7();
+function JRe(e) {
+ Fle(e), d7(), Q7();
}
-async function p7() {
- P8(), X.mixRelatedCache.clear(), await Promise.all([m7(), L7()]);
+async function f7() {
+ N8(), X.mixRelatedCache.clear(), await Promise.all([p7(), I7()]);
}
-async function m7() {
+async function p7() {
if (Y.entityPageCurrent() && !L("#index").hidden) {
- l5({ revision: ++Y.entityPageRevision });
+ c5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
@@ -81831,30 +81841,30 @@ async function m7() {
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await H7();
+ t?.route.reload ? await t.route.reload() : await V7();
}
-function h7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = W5.DIRECT_MANAGE_NAV[e];
- if (r) return e7() === r;
+function m7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = U5.DIRECT_MANAGE_NAV[e];
+ if (r) return $5() === r;
if (e === "manage") {
- let e = e7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => W5.DIRECT_MANAGE_NAV[t] === e);
+ let e = $5();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => U5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || c7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !e7() && !U.state && !c7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || s7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !$5() && !U.state && !s7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function g7(e) {
+function h7(e) {
let t = dm(e);
if (t === location.pathname + location.search + location.hash) return;
- if (Q5(), t) {
+ if (Z5(), t) {
Q.navigatePath(t);
return;
}
- if (W5.DIRECT_MANAGE_NAV[e]) {
- s7(W5.DIRECT_MANAGE_NAV[e]);
+ if (U5.DIRECT_MANAGE_NAV[e]) {
+ o7(U5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- s7();
+ o7();
return;
}
if (e === "jav") {
@@ -81862,25 +81872,25 @@ function g7(e) {
return;
}
if (e === "") {
- x7();
+ b7();
return;
}
let n = On[e] ? null : Q.routePathOf("nav", e);
- n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(b7()), x9(), L7());
+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(y7()), b9(), I7());
}
-function _7() {
+function g7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Ql && tu !== A5.currentSelectSurface() && M5(!1, !0);
+ Ql && tu !== k5.currentSelectSurface() && j5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Nn, t[0]), r = jn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- L("#selectMode").hidden = !i, L("#density").hidden = !a, m5(), !i && Ql && M5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, p5(), !i && Ql && j5(!1, !0);
}
-function qRe() {
+function YRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== W5.mobileFilterHost || location.pathname !== W5.mobileFilterPath) && (W5.mobileFilterScroll = null), W5.mobileFilterHost = t, W5.mobileFilterPath = location.pathname;
+ (t !== U5.mobileFilterHost || location.pathname !== U5.mobileFilterPath) && (U5.mobileFilterScroll = null), U5.mobileFilterHost = t, U5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- W5.mobileFilterScroll = FRe(W5.mobileFilterScroll, n, innerWidth <= 760, r);
+ U5.mobileFilterScroll = LRe(U5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && W5.mobileFilterScroll.free;
+ let e = n === t && U5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -81892,54 +81902,54 @@ function qRe() {
});
}
}
-function JRe() {
- qRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function XRe() {
+ YRe(), [".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 v7() {
- W5.stickyFrame ||= W8.frame(() => {
- W5.stickyFrame = 0, JRe();
+function _7() {
+ U5.stickyFrame ||= U8.frame(() => {
+ U5.stickyFrame = 0, XRe();
});
}
-function YRe() {
+function ZRe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), W8.handler(L("#filterBtn"), "onclick", () => Z5(!L("#drawer").classList.contains("open"))), W5.SIDEBAR_ITEMS = F8, W5.MANAGE_SECTIONS = I8, W5.MANAGE_MENU_SECTIONS = L8, W5.manageMenuSections = () => OLe(du === !0), W5.OPTIONAL_SIDEBAR_ITEMS = R8, W5.NAV_CATALOG = kLe, W5.DIRECT_MANAGE_NAV = ALe, W5.settingsHost = () => ({
+ }), U8.handler(L("#filterBtn"), "onclick", () => X5(!L("#drawer").classList.contains("open"))), U5.SIDEBAR_ITEMS = P8, U5.MANAGE_SECTIONS = F8, U5.MANAGE_MENU_SECTIONS = I8, U5.manageMenuSections = () => ALe(du === !0), U5.OPTIONAL_SIDEBAR_ITEMS = L8, U5.NAV_CATALOG = jLe, U5.DIRECT_MANAGE_NAV = MLe, U5.settingsHost = () => ({
selectSection: (e) => Pp(Pf(e), {
replace: !0,
state: Np.navigation.location.state
}),
- closed: RRe,
+ closed: BRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Qo(e),
- navCatalog: W5.NAV_CATALOG,
- themeOptions: jle,
- videoLayouts: sM,
- followInitialRanges: z8,
- videoLayout: () => u7(),
- setVideoLayout: KRe,
- censored: r9,
- setCensored: a9,
- sfwShortcut: o9,
- setSfwShortcut: gze,
+ navCatalog: U5.NAV_CATALOG,
+ themeOptions: kle,
+ videoLayouts: lM,
+ followInitialRanges: R8,
+ videoLayout: () => l7(),
+ setVideoLayout: JRe,
+ censored: n9,
+ setCensored: i9,
+ sfwShortcut: a9,
+ setSfwShortcut: vze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: _ze,
- receipt: (e) => O8.actionReceipt(e),
- failure: O8.actionFailure,
- syncRemote: (e) => nM(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: yze,
+ receipt: (e) => D8.actionReceipt(e),
+ failure: D8.actionFailure,
+ syncRemote: (e) => iM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
- }), W8.handler(L("#settingsBtn"), "onclick", () => void $5()), W5.lastManagePageLabel = "", W5.manageHeaderSkeleton = "", W5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, W5.scrollT = null, W5.stickyFrame = 0, W5.mobileFilterScroll = null, W5.mobileFilterHost = null, W5.mobileFilterPath = "", W8.listen(document, "focusin", v7), W8.listen(document, "focusout", v7), W8.listen(window, "scroll", () => {
- v7(), location.pathname === "/follow" && k9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(W5.scrollT), W5.scrollT = W8.delay(() => {
+ }), U8.handler(L("#settingsBtn"), "onclick", () => void Q5()), U5.lastManagePageLabel = "", U5.manageHeaderSkeleton = "", U5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, U5.scrollT = null, U5.stickyFrame = 0, U5.mobileFilterScroll = null, U5.mobileFilterHost = null, U5.mobileFilterPath = "", U8.listen(document, "focusin", _7), U8.listen(document, "focusout", _7), U8.listen(window, "scroll", () => {
+ _7(), location.pathname === "/follow" && O9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(U5.scrollT), U5.scrollT = U8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), W8.listen(window, "resize", v7, { passive: !0 }), W8.handler(L("#scrim"), "onclick", () => Z5(!1));
+ }, { passive: !0 }), U8.listen(window, "resize", _7, { passive: !0 }), U8.handler(L("#scrim"), "onclick", () => X5(!1));
}
// src/application/catalog.js
var X = {
@@ -81978,43 +81988,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function XRe() {
- X.initialParams.has("loc") || (U.loc = y7(U.loc), Su());
+function QRe() {
+ X.initialParams.has("loc") || (U.loc = v7(U.loc), Su());
}
-function y7(e) {
- return yLe(e, Z.sourceOnline);
+function v7(e) {
+ return xLe(e, Z.sourceOnline);
}
-function b7(e = U) {
- return bLe(e);
+function y7(e = U) {
+ return SLe(e);
}
-function ZRe() {
- W(A8(xLe(U, Z.appSettings, O8.rollSeed)));
+function $Re() {
+ W(k8(CLe(U, Z.appSettings, D8.rollSeed)));
}
-function x7(e = null) {
- ZRe(), e && (Object.assign(U, e), Su()), Q.route(e ? b7() : "/"), X.clearSearchField(), d9(!1), x9(), L7();
+function b7(e = null) {
+ $Re(), e && (Object.assign(U, e), Su()), Q.route(e ? y7() : "/"), X.clearSearchField(), u9(!1), b9(), I7();
}
-function QRe(e, t = null) {
+function eze(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? h9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : N5(n);
+ !e.medium || e.medium === "video" ? m9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : M5(n);
}
-function S7(e) {
+function x7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Tn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function $Re(e, t) {
- u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : C7(e, t);
+function tze(e, t) {
+ l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : S7(e, t);
}
-function C7(e, t) {
- e.edition_group ? wze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Tze(e.part_group.seed_id, e.id, !0, t) : h9(e.id, !0, null, t);
+function S7(e, t) {
+ e.edition_group ? Eze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Dze(e.part_group.seed_id, e.id, !0, t) : m9(e.id, !0, null, t);
}
-async function eze(e, t) {
+async function nze(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), O8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), D8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -82022,10 +82032,10 @@ async function eze(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- O8.actionFailure("更新稍后看", e);
+ D8.actionFailure("更新稍后看", e);
}
}
-async function tze(e, t) {
+async function rze(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82033,9 +82043,9 @@ async function tze(e, t) {
ids: [e.id],
operation: t
})
- }), await H7();
+ }), await V7();
let n = t === "restore" ? "dispose" : "restore";
- O8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ D8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -82043,14 +82053,14 @@ async function tze(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await H7();
+ }), await V7();
} });
} catch (e) {
- throw O8.actionFailure("操作", e), e;
+ throw D8.actionFailure("操作", e), e;
}
}
-async function nze(e, t, n, r) {
- let i = Number(e.rating) || 0, a = mP(i, t), o = async (t, r) => {
+async function ize(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = gP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82064,14 +82074,14 @@ async function nze(e, t, n, r) {
};
try {
let e = await o(a, r);
- O8.actionReceipt(e ? `已评 ${pP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ D8.actionReceipt(e ? `已评 ${hP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || O8.actionFailure("评分", e), e;
+ throw r?.aborted || D8.actionFailure("评分", e), e;
}
}
-async function w7(e) {
+async function C7(e) {
let t = new URLSearchParams();
- if (c7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ if (s7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
let e = Y.activeFilterState();
[
"loc",
@@ -82093,33 +82103,33 @@ async function w7(e) {
e[n] && t.set(n, e[n]);
});
}
- return ELe(t.toString(), X.topsQueryParams(e).toString());
+ return OLe(t.toString(), X.topsQueryParams(e).toString());
}
-function T7(e) {
- u5().type !== "entity" && k7({ tags: N7(e) }), b9({ filters: { ...e } }), V7();
+function w7(e) {
+ l5().type !== "entity" && O7({ tags: M7(e) }), y9({ filters: { ...e } }), B7();
}
-async function E7(e) {
- let t = ++X.facetCountsSeq, [n] = await w7(e);
- t === X.facetCountsSeq && (e.type === "home" && (c9.facets = n), b9({ latest: n9(n, e) }));
+async function T7(e) {
+ let t = ++X.facetCountsSeq, [n] = await C7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (s9.facets = n), y9({ latest: t9(n, e) }));
}
-function D7(e) {
- let t = u5();
+function E7(e) {
+ let t = l5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), f5(t.kind, t.name, n), T7(n), E7(u5());
+ e(n), d5(t.kind, t.name, n), w7(n), T7(l5());
} else if (t.type === "item") {
let t = Y.cloneBarsContext(Yl);
- if (d9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), f5(t.kind, t.name, t.filters) ? L7() : W({ pageOpens: pu + 1 });
+ if (u9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), d5(t.kind, t.name, t.filters) ? I7() : W({ pageOpens: pu + 1 });
return;
}
e(U), W({ barsContext: {
type: "home",
filters: U
- } }), Q.route(b7()), q5(), L7();
- } else e(U), Su(), Q.route(b7()), T7(U), E7(Jl);
+ } }), Q.route(y7()), K5(), I7();
+ } else e(U), Su(), Q.route(y7()), w7(U), T7(Jl);
}
-function rze() {
+function aze() {
return {
tiers: null,
tiersPending: !1,
@@ -82137,94 +82147,94 @@ function rze() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: A7(),
+ actions: k7(),
helpers: {
- wireDrag: s9,
+ wireDrag: o9,
wireScroller: (e) => {
e && Ac(e);
}
}
};
}
-function O7() {
- X.catalogFilterProps && k7({});
+function D7() {
+ X.catalogFilterProps && O7({});
}
-function k7(e) {
+function O7(e) {
let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || rze(),
+ ...X.catalogFilterProps || aze(),
...e
- }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = DMe(X.catalogViews(), X.catalogFilterProps.state, M7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = kMe(X.catalogViews(), X.catalogFilterProps.state, j7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => xp(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function A7() {
+function k7() {
return {
currentHref: () => {
- let e = new URL(b7(), location.origin);
+ let e = new URL(y7(), location.origin);
return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => S5(e, t),
+ openEntity: (e, t) => x5(e, t),
setView: (e) => {
- U.state = e, Su(), k7({ state: e }), Q.route(b7()), L7();
+ U.state = e, Su(), O7({ state: e }), Q.route(y7()), I7();
},
- toggleTag: (e) => z7(e),
- clearFilter: (e) => D7((t) => {
+ toggleTag: (e) => R7(e),
+ clearFilter: (e) => E7((t) => {
t[e] = "";
}),
- clearAll: () => D7((e) => {
+ clearAll: () => E7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Pj(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Su(), t9());
+ let t = Ij(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, Su(), e9());
},
- reshuffle: () => hze(),
+ reshuffle: () => _ze(),
setLayout: (e) => {
- c7() ? d7(e) : GRe(e);
+ s7() ? u7(e) : qRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await DLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(P7) : n.map(F7);
+ let n = (await kLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(N7) : n.map(P7);
}
};
}
-function j7() {
- return c7() ? {
+function A7() {
+ return s7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
- } : l7() ? {
+ value: mM(),
+ options: lM
+ } : c7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: u7(),
- options: sM
+ value: l7(),
+ options: lM
} : null;
}
-function M7() {
+function j7() {
return {
- sorts: d5(U.sort, U.dir),
- layout: j7(),
+ sorts: u5(U.sort, U.dir),
+ layout: A7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function N7(e) {
+function M7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function P7(e) {
+function N7(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${go({
@@ -82238,102 +82248,102 @@ function P7(e) {
})}`
};
}
-function F7(e) {
+function P7(e) {
return {
name: e.k,
fallback: $n(e.k, 2),
logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function ize(e, t) {
- X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? k7({
+function oze(e, t) {
+ X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? O7({
tiersPending: !0,
state: e.state || ""
- }) : (X.barsRendered = "", k7({
+ }) : (X.barsRendered = "", O7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function I7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, k7({ tiersPending: !1 }));
+function F7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, O7({ tiersPending: !1 }));
}
-async function L7() {
+async function I7() {
let e = ++X.barsRequestSeq;
- if (b9(), !Gl(location.pathname) || Jl.type === "item") return;
- let t = u5(), n = Y.activeFilterState(), r = JSON.stringify([
+ if (y9(), !Gl(location.pathname) || Jl.type === "item") return;
+ let t = l5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- c7()
+ s7()
]);
- ize(n, e);
+ oze(n, e);
let i;
try {
- i = await w7(t);
+ i = await C7(t);
} catch (t) {
- throw I7(e), t;
+ throw F7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- I7(e);
+ F7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, k7({ tiersPending: !1 }), W5.sidebarCatalog && b9({
- content: W5.sidebarCatalog,
+ X.barsPendingSeq = 0, O7({ tiersPending: !1 }), U5.sidebarCatalog && y9({
+ content: U5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (c9.facets = a);
+ X.barsRendered = s, t.type === "home" && (s9.facets = a);
let c = a.tags || [];
Xa(o.performers), Xa(o.studios);
- let l = t.type === "home" && !c7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ let l = t.type === "home" && !s7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = O8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = D8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
label: Ll(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, k7({
+ })), X.barsPendingSeq = 0, O7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(P7),
- studios: o.studios.map(F7)
+ performers: o.performers.map(N7),
+ studios: o.studios.map(P7)
},
tiersPending: !1,
empty: l,
- tags: N7(n),
+ tags: M7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), V7(), W5.sidebarCatalog = {
+ }), B7(), U5.sidebarCatalog = {
kind: "catalog",
- key: String(++W5.sidebarContentSeq),
- facets: n9(a, t)
- }, b9({
- content: W5.sidebarCatalog,
+ key: String(++U5.sidebarContentSeq),
+ facets: t9(a, t)
+ }, y9({
+ content: U5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function aze(e, t) {
- c9.total = e, U.state === "trash" && (A5.trashCount = {
- total: c9.total,
+function sze(e, t) {
+ s9.total = e, U.state === "trash" && (k5.trashCount = {
+ total: s9.total,
shown: t
- }), t7(), k7({ count: {
- total: c9.total,
+ }), e7(), O7({ count: {
+ total: s9.total,
shown: t
} });
}
-function R7() {
+function L7() {
return ll({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -82343,19 +82353,19 @@ function R7() {
try {
let e = await Tn("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- O8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ D8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await H7();
+ await V7();
}
}
});
}
-function z7(e) {
- D7((t) => {
+function R7(e) {
+ E7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function B7(e) {
+function z7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -82379,13 +82389,13 @@ function B7(e) {
label: Ll(e)
})), t;
}
-function V7() {
- k7({
- combo: B7(U),
+function B7() {
+ O7({
+ combo: z7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function H7() {
+async function V7() {
let e = Q.claimSurface(Q.surfacePath());
if (W({
barsContext: {
@@ -82393,42 +82403,42 @@ async function H7() {
filters: U
},
detailReturnBarsContext: null
- }), d9(!1), U.state === "ads") return cze(e);
- X.controller.page === "/junk-files" && W7(), B5(), q5();
- let t = G7(e);
- if (i5(location.pathname) && U.browse !== "folders") {
- if (await z5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- qLe();
- } else a5();
- return V7(), L("#count").classList.remove("manage-static", "junkcount"), t;
-}
-function U7(e) {
+ }), u9(!1), U.state === "ads") return uze(e);
+ X.controller.page === "/junk-files" && U7(), z5(), K5();
+ let t = W7(e);
+ if (r5(location.pathname) && U.browse !== "folders") {
+ if (await R5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ YLe();
+ } else i5();
+ return B7(), L("#count").classList.remove("manage-static", "junkcount"), t;
+}
+function H7(e) {
X.controller.settle(e);
}
-function W7() {
+function U7() {
let e = L("#grid");
Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
}
-function G7(e) {
- return Y7("/", sze, e, { place: zze });
+function W7(e) {
+ return J7("/", lze, e, { place: Vze });
}
-function oze(e) {
- return Y7("/junk-files", uze, e);
+function cze(e) {
+ return J7("/junk-files", fze, e);
}
-function K7() {
+function G7() {
return !!mp(L("#grid"));
}
-function q7() {
- return X.controller.taken(K7());
+function K7() {
+ return X.controller.taken(G7());
}
-function J7(e) {
+function q7(e) {
xp(L("#grid"), e);
}
-function Y7(e, t, n, r = {}) {
+function J7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && W7();
- let a = X.controller.begin(e, K7()), o = t();
- if (!a.mount) return J7(o), a.settled;
+ X.controller.page && X.controller.page !== e && U7();
+ let a = X.controller.begin(e, G7()), o = t();
+ if (!a.mount) return q7(o), a.settled;
Nl(i);
let s = () => Sp(i);
return a.signal.addEventListener("abort", s, { once: !0 }), yp(e, o, {
@@ -82436,70 +82446,70 @@ function Y7(e, t, n, r = {}) {
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(K7());
+ a.signal.removeEventListener("abort", s), a.finish(G7());
}), a.settled;
}
-function X7() {
- let e = l7();
- return yM({
- active: c7() || e,
+function Y7() {
+ let e = c7();
+ return xM({
+ active: s7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function Z7(e = "正在读取作品") {
- return LJ(e, Q7());
+function X7(e = "正在读取作品") {
+ return IJ(e, Z7());
}
-function Q7() {
- return U ? bM(X7()) : 16 / 9;
+function Z7() {
+ return U ? SM(Y7()) : 16 / 9;
}
-function $7() {
- q7() && (Nl(L("#grid")), J7({
- layout: X7(),
+function Q7() {
+ K7() && (Nl(L("#grid")), q7({
+ layout: Y7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), l5({
- layout: X7(),
+ })), Y.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), c5({
+ layout: Y7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function sze() {
+function lze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: X7(),
+ layout: Y7(),
wall: e === "/wall",
restoreNavigation: gm(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: s9,
- settled: U7,
- skeletonHtml: () => Z7(),
+ wireDrag: o9,
+ settled: H7,
+ skeletonHtml: () => X7(),
filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !c7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !s7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: aze,
- onCountFailed: () => k7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : DK({
- jav: c7() && !t,
+ onCount: sze,
+ onCountFailed: () => O7({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : EK({
+ jav: s7() && !t,
configurable: du,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function cze(e) {
+function uze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && K7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (W7(), B5("正在读取垃圾文件")), q5(), V7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), oze(e);
+ return X.controller.page === "/junk-files" && G7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (U7(), z5("正在读取垃圾文件")), K5(), B7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), cze(e);
}
-async function lze(e, t) {
+async function dze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82509,24 +82519,24 @@ async function lze(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await H7();
+ }), await V7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- O8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ D8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await H7();
+ }), await V7();
} });
} catch (e) {
- throw O8.actionFailure("操作", e), e;
+ throw D8.actionFailure("操作", e), e;
}
}
-function uze() {
+function fze() {
return {
- ...IU(location.search),
+ ...FU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82534,16 +82544,16 @@ function uze() {
selectMode: Ql,
selected: new Set(Xl),
countRow: L("#count"),
- settled: U7,
- skeletonHtml: () => M2("正在读取垃圾文件", {
+ settled: H7,
+ skeletonHtml: () => j2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function dze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => k8(e, t, Z.appSettings, n), W(A8(vLe(location, Z.appSettings, O8.rollSeed))), X.searchValueSnapshot = {
+function pze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => O8(e, t, Z.appSettings, n), W(k8(bLe(location, Z.appSettings, D8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82564,52 +82574,52 @@ function dze() {
};
};
}
-function fze() {
- W8.handler(L("#wallBtn"), "onclick", () => {
- M5(!1, !0);
- let e = u5(), t = {
+function mze() {
+ U8.handler(L("#wallBtn"), "onclick", () => {
+ j5(!1, !0);
+ let e = l5(), t = {
...Y.activeFilterState(),
- jav: c7() ? "1" : ""
+ jav: s7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Hxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Wxe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => HI(e, t),
- displayName: (e, t) => VI(e, t),
+ titleHtml: (e, t) => WI(e, t),
+ displayName: (e, t) => UI(e, t),
tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await l8(c9.stageHost);
+ let r = await c8(s9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: C7,
- open: (e, t) => $Re(e, t),
- openResource: (e, t) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : QRe(e, t),
- openShort: (e) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : v9(e.id),
- openShorts: () => v9(),
- openMix: (e, t) => Cze(e, e, !0, t),
- openEntity: (e, t) => S5(e, t),
- openUnowned: () => x7({ owner: "none" }),
+ wallDetails: S7,
+ open: (e, t) => tze(e, t),
+ openResource: (e, t) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : eze(e, t),
+ openShort: (e) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : _9(e.id),
+ openShorts: () => _9(),
+ openMix: (e, t) => Tze(e, e, !0, t),
+ openEntity: (e, t) => x5(e, t),
+ openUnowned: () => b7({ owner: "none" }),
toggleTag: (e) => {
- D7((t) => {
+ E7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => N5(e, t),
- watchLater: (e, t) => eze(e, t),
- rate: (e, t, n, r) => nze(e, t, n, r),
- resourceOperation: (e, t) => tze(e, t),
- mixRelated: (e) => S7(e),
- canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => M5(e, t),
+ watchLater: (e, t) => nze(e, t),
+ rate: (e, t, n, r) => ize(e, t, n, r),
+ resourceOperation: (e, t) => rze(e, t),
+ mixRelated: (e) => x7(e),
+ canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), c7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), s7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -82630,38 +82640,38 @@ function fze() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? On[e.k] : "/"
- })), X.TAGS_FIRST = 26, W8.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, U8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), A7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), k7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && k7({ comboHidden: !0 });
+ X.catalogFilterProps && O7({ comboHidden: !0 });
};
}
-function pze() {
+function hze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Ql && M5(!1, !0), Q.route(e);
+ Ql && j5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => N5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : h9(e.id, !0, null, t),
+ toggleSelection: (e, t) => M5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : m9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), O8.toast({ text: "已在资源管理器中显示" }), "";
+ }), D8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => lze(e, t)
+ operate: (e, t) => dze(e, t)
};
}
-X.controller = new SLe();
+X.controller = new wLe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82684,8 +82694,8 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function e9() {
- let e = W8;
+async function $7() {
+ let e = U8;
try {
let t = await Sr(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -82695,18 +82705,18 @@ async function e9() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), XRe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), QRe(), Z.sourceOnline;
}
-function t9() {
+function e9() {
let e = Q.surfacePath();
- if (!jn(e) || e === "/junk-files") return H7();
+ if (!jn(e) || e === "/junk-files") return V7();
let t = Z.nextCatalogLoad();
- return Pp(b7(), {
+ return Pp(y7(), {
replace: !0,
state: Np.navigation.location.state
}), t;
}
-function mze(e) {
+function gze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82727,7 +82737,7 @@ function mze(e) {
cost: "free"
};
}
-function n9(e, t) {
+function t9(e, t) {
let n = (e, t = (e) => e.label || Ll(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -82738,7 +82748,7 @@ function n9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: mze(e.k),
+ dot: gze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82751,25 +82761,25 @@ function n9(e, t) {
duration: !!e.stats?.duration
};
}
-async function hze(e = !1) {
- if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || c9.stageOpen() || c9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
+async function _ze(e = !1) {
+ if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || s9.stageOpen() || s9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- T5();
+ w5();
return;
}
let n = t === "reopen" ? e : "/stats";
fm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Np.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = O8.rollSeed(), Su(), P8(), k7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = D8.rollSeed(), Su(), N8(), O7({ refreshing: !0 });
try {
fm();
- let e = t9();
- await null, await Promise.all([e, L7()]);
+ let e = e9();
+ await null, await Promise.all([e, I7()]);
} finally {
- k7({ refreshing: !1 });
+ O7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -82777,75 +82787,75 @@ async function hze(e = !1) {
}), !0;
}
}
-function r9() {
+function n9() {
return document.body.classList.contains("censor");
}
-function i9(e) {
+function r9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function a9(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), i9(e), e && Nl();
+function i9(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), r9(e), e && Nl();
}
-function o9() {
- return a1(localStorage.getItem("peach.sfw-shortcut")) || a1("Shift+KeyS");
+function a9() {
+ return i1(localStorage.getItem("peach.sfw-shortcut")) || i1("Shift+KeyS");
}
-function gze(e) {
- e ? localStorage.setItem(r1, o1(e)) : localStorage.removeItem(r1), Z.settingsStore.notify();
+function vze(e) {
+ e ? localStorage.setItem(n1, a1(e)) : localStorage.removeItem(n1), Z.settingsStore.notify();
}
-function _ze(e) {
+function yze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function s9(e) {
+function o9(e) {
return Ac(e, { drag: !0 });
}
-function vze() {
- ["#nrow", "#count"].forEach((e) => s9(L(e))), document.querySelectorAll(".tier,.srow").forEach(s9);
+function bze() {
+ ["#nrow", "#count"].forEach((e) => o9(L(e))), document.querySelectorAll(".tier,.srow").forEach(o9);
}
-function yze() {
+function xze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function bze() {
+function Sze() {
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 = tM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), aM(), Ple(), AM(), NM(), PM(), 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 = rM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), sM(), Mle(), MM(), FM(), IM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
- Zt(Z.appSettings.performerNameLanguage), z5.syncPageTitle(location.href), X.barsRendered = "", L7();
+ Zt(Z.appSettings.performerNameLanguage), R5.syncPageTitle(location.href), X.barsRendered = "", I7();
},
- theme: () => aM(),
+ theme: () => sM(),
uiSounds: () => {
Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
},
- glowFrame: () => MM(),
+ glowFrame: () => PM(),
glow: () => {
- MM(), NM();
+ PM(), FM();
},
batchSize: () => {
- location.pathname === "/" && H7();
+ location.pathname === "/" && V7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
+ U.sort = Z.appSettings.defaultSort, U.dir = Lj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && e9();
},
sortDirection: () => {
- U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
+ U.dir = Lj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && e9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Fl(e, "previewing", !1), Fl(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => $7(),
- groupCollapse: () => m7(),
- feedAutoScroll: () => JLe(),
- feedLimit: () => o5(),
- feedCompilations: () => o5(),
+ seekSeconds: () => Q7(),
+ groupCollapse: () => p7(),
+ feedAutoScroll: () => XLe(),
+ feedLimit: () => a5(),
+ feedCompilations: () => a5(),
miniplayer: () => {
- Z.appSettings.miniplayer || u8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || l8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), $7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Sze();
+ ao(document, Z.appSettings.javImage), Q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), wze();
},
searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82856,11 +82866,11 @@ function bze() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Ws;
}
-function xze() {
- Z.CENSOR_KEY = "peach-censor", i9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function Cze() {
+ Z.CENSOR_KEY = "peach-censor", r9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var c9 = {
+var s9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -82871,18 +82881,18 @@ var c9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function l9() {
+function c9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function u9() {
- return u8()?.exit() || Promise.resolve();
+function l9() {
+ return l8()?.exit() || Promise.resolve();
}
-function d9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && S9(), u8()?.dispose({ miniplayer: n }), W({
+function u9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && x9(), l8()?.dispose({ miniplayer: n }), W({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82890,12 +82900,12 @@ function d9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), v7(), e && Q.route(nu || "/");
+ }), _7(), e && Q.route(nu || "/");
}
-function Sze() {
- u8()?.repaintPoster();
+function wze() {
+ l8()?.repaintPoster();
}
-function f9(e, t, n, r, i = null, a = {}) {
+function d9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = ou?.kind === e && (e === "playlist" ? ou.playlistId : ou.seedId) === t;
r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Wf();
@@ -82909,38 +82919,38 @@ function f9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- S9();
+ x9();
let e = Q.queueOpenRequest = {
seq: Np.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => h9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
- } else return h9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => m9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
+ } else return m9(n == null ? null : +n, !1, s, i, r);
}
-function Cze(e, t = e, n = !0, r = null) {
- return f9("mix", e, t, n, r);
+function Tze(e, t = e, n = !0, r = null) {
+ return d9("mix", e, t, n, r);
}
-function wze(e, t = e, n = !0, r = null) {
- return f9("editions", e, t, n, r);
+function Eze(e, t = e, n = !0, r = null) {
+ return d9("editions", e, t, n, r);
}
-function Tze(e, t = e, n = !0, r = null) {
- return f9("parts", e, t, n, r);
+function Dze(e, t = e, n = !0, r = null) {
+ return d9("parts", e, t, n, r);
}
-function p9(e, t = null, n = !0) {
- return f9("playlist", e, t, n);
+function f9(e, t = null, n = !0) {
+ return d9("playlist", e, t, n);
}
-function m9() {
+function p9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function h9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function m9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || S9(), t && !n) {
- W({ detailReturnPath: location.pathname + location.search }), C9("/assets/" + +e, "item", () => h9(e, !1, null, r));
+ if (a || x9(), t && !n) {
+ W({ detailReturnPath: location.pathname + location.search }), S9("/assets/" + +e, "item", () => m9(e, !1, null, r));
return;
}
Nl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = m9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : Y.cloneBarsContext(u5());
- t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), u8()?.showing() !== "item" && d9(!1, !0, {
+ let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = p9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : Y.cloneBarsContext(l5());
+ t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), l8()?.showing() !== "item" && u9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), W({
@@ -82952,60 +82962,60 @@ async function h9(e, t = !0, n = null, r = null, i = !1, a = null) {
seedId: n.seedId,
playlistId: n.playlistId
} }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Jf("item"));
- let d = await l8(c9.stageHost);
+ let d = await c8(s9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...c9.itemDetailActions,
+ ...s9.itemDetailActions,
present: (e, t) => {
- a.cancelled || c9.itemDetailActions.present(e, t);
+ a.cancelled || s9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || c9.itemDetailActions.redirect(e);
+ a.cancelled || s9.itemDetailActions.redirect(e);
}
- } : c9.itemDetailActions;
+ } : s9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: c9.itemDetailHelpers,
+ helpers: s9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: X7(),
+ layout: Y7(),
selectMode: Ql,
selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : l9()
- }), v7();
+ resume: t || e == null ? null : c9()
+ }), _7();
}
-async function g9() {
+async function h9() {
let e = Y.cloneBarsContext(Yl), t = nu || "/", n = au;
- await u9(), d9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
+ await l9(), u9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
type: "home",
filters: U
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (L7(), location.pathname === "/playlists" && T5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (I7(), location.pathname === "/playlists" && w5()));
}
-async function _9(e, t = !0) {
+async function g9(e, t = !0) {
if (t) {
- W({ detailReturnPath: location.pathname + location.search }), C9("/works/" + encodeURIComponent(e), "jav", () => _9(e, !1));
+ W({ detailReturnPath: location.pathname + location.search }), S9("/works/" + encodeURIComponent(e), "jav", () => g9(e, !1));
return;
}
- let n = Np.navigation.seq, r = Y.cloneBarsContext(u5()), i = !m9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
- u8()?.showing() !== "jav" && d9(!1, !0, { miniplayer: !1 }), W({
+ let n = Np.navigation.seq, r = Y.cloneBarsContext(l5()), i = !p9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
+ l8()?.showing() !== "jav" && u9(!1, !0, { miniplayer: !1 }), W({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Nl();
- let [o, s] = await Promise.all([l8(c9.stageHost), B("/healthz")]);
+ let [o, s] = await Promise.all([c8(s9.stageHost), B("/healthz")]);
Np.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void g9(),
+ close: () => void h9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
Np.navigation.seq === n && t && t !== e && Pp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
@@ -83013,52 +83023,52 @@ async function _9(e, t = !0) {
state: Np.navigation.location.state
});
},
- openTag: (e) => D7((t) => {
+ openTag: (e) => E7((t) => {
t.tag = e;
}),
- receipt: (e) => O8.toast({ text: e })
+ receipt: (e) => D8.toast({ text: e })
}
- }), v7());
+ }), _7());
}
-async function v9(e = null, t = !0) {
- t ? (c9.requestedImmerseId = e, Q.route("/immerse")) : (u8()?.closeMiniplayer(), await (await uLe(c9.immerseHost)).open(e));
+async function _9(e = null, t = !0) {
+ t ? (s9.requestedImmerseId = e, Q.route("/immerse")) : (l8()?.closeMiniplayer(), await (await fLe(s9.immerseHost)).open(e));
}
-function Eze() {
- c9.total = 0, c9.facets = null, c9.stageHost = {
+function Oze() {
+ s9.total = 0, s9.facets = null, s9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => O8.toast({ text: e }, t),
- loadSourceStatus: () => e9(),
+ toast: (e, t) => D8.toast({ text: e }, t),
+ loadSourceStatus: () => $7(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? M9(t, !0, n) : h9(t, !0);
+ e === "follow" ? j9(t, !0, n) : m9(t, !0);
},
- openItem: (e) => void h9(e)
- }, c9.stageOpen = () => !!u8()?.isOpen();
+ openItem: (e) => void m9(e)
+ }, s9.stageOpen = () => !!l8()?.isOpen();
}
-function Dze() {
- c9.itemDetailHelpers = {
+function kze() {
+ s9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => HI(e),
- displayName: (e) => VI(e),
+ titleHtml: (e) => WI(e),
+ displayName: (e) => UI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
- tagCandidates: () => c9.facets && c9.facets.tags || [],
+ tagCandidates: () => s9.facets && s9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => M2("正在读取推荐", {
+ relatedSkeletonHtml: () => j2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => S7(e),
- wireDrag: (e) => s9(e),
+ mixRelated: (e) => x7(e),
+ wireDrag: (e) => o9(e),
wireDragReorder: (e, t) => al(e, t)
- }, c9.itemDetailActions = {
- close: () => g9(),
+ }, s9.itemDetailActions = {
+ close: () => h9(),
present: (e) => {
W({ presentedItem: e });
let t = Yl;
@@ -83066,57 +83076,57 @@ function Dze() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), L7();
+ } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), I7();
},
redirect: (e) => {
let t = !!su;
e.kind === "follow" ? (Q.queueOpenRequest = null, W({
pendingQueueRoute: null,
followDetailReturnPath: nu || "/"
- }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), M9(e.id, !1, null, !0)) : e.kind === "item" ? h9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? T9("/playlists") : T5() : d9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), j9(e.id, !1, null, !0)) : e.kind === "item" ? m9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? w9("/playlists") : w5() : u9(!1);
},
- openQueueItem: (e, t, n = !0) => void f9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void d9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = cu;
if (!e) return;
let t = ou;
- t ? f9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : h9(e.id, !1);
+ t ? d9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : m9(e.id, !1);
},
- checkSource: async (e) => (await e9())[e] !== !1,
+ checkSource: async (e) => (await $7())[e] !== !1,
openSavedFollow: () => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", T9(E9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", w9(T9());
},
- openEntity: (e, t) => S5(e, t),
- openUnowned: () => x7({ owner: "none" }),
- openRegion: (e) => x7({ region: e || "none" }),
- openTag: (e) => D7((t) => {
+ openEntity: (e, t) => x5(e, t),
+ openUnowned: () => b7({ owner: "none" }),
+ openRegion: (e) => b7({ region: e || "none" }),
+ openTag: (e) => E7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => cRe(e),
- saveMix: (e) => sRe(e),
- editPlaylist: () => T9("/playlists"),
- openPlaylists: () => T9("/playlists"),
- reveal: (e) => _5(e),
- sync: (e) => $Le(e),
+ addToPlaylist: (e) => uRe(e),
+ saveMix: (e) => lRe(e),
+ editPlaylist: () => w9("/playlists"),
+ openPlaylists: () => w9("/playlists"),
+ reveal: (e) => g5(e),
+ sync: (e) => tRe(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (Gf(), d9(!0, !1, { miniplayer: !1 })), await H7());
+ U.state === "ads" && (t || e === "trash") && (t || (Gf(), u9(!0, !1, { miniplayer: !1 })), await V7());
},
- toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
- failure: (e, t) => O8.actionFailure(e, t)
- }, c9.immerseHost = {
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => D8.actionFailure(e, t)
+ }, s9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => VI(e),
+ displayName: (e) => UI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => x7(),
- openItem: (e) => void h9(e),
- openEntity: (e, t) => S5(e, t),
- openUnowned: () => x7({ owner: "none" }),
- toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
- warn: (e) => O8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => O8.actionFailure(e, t)
- }, c9.immerseOpen = () => !!p8()?.isOpen(), W8.handler(L("#immerseBtn"), "onclick", () => v9());
+ closed: () => b7(),
+ openItem: (e) => void m9(e),
+ openEntity: (e, t) => x5(e, t),
+ openUnowned: () => b7({ owner: "none" }),
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ warn: (e) => D8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => D8.actionFailure(e, t)
+ }, s9.immerseOpen = () => !!f8()?.isOpen(), U8.handler(L("#immerseBtn"), "onclick", () => _9());
}
// src/application/navigation.js
var Q = {
@@ -83138,40 +83148,40 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function y9() {
- let e = y8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(h7(e.dataset.nav))));
+function v9() {
+ let e = v8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(m7(e.dataset.nav))));
}
-function b9(e = {}) {
+function y9(e = {}) {
let t = Q.surfacePath();
- t !== W5.sidebarSurface && (W5.sidebarSurface = t, W5.sidebarProps = {
- ...W5.sidebarProps,
+ t !== U5.sidebarSurface && (U5.sidebarSurface = t, U5.sidebarProps = {
+ ...U5.sidebarProps,
content: null,
latest: null
- }), W5.sidebarProps = {
- ...W5.sidebarProps,
+ }), U5.sidebarProps = {
+ ...U5.sidebarProps,
...e
- }, y8()?.render(W5.sidebarProps);
+ }, v8()?.render(U5.sidebarProps);
}
-function x9() {
- b9(), y9(), _7();
+function b9() {
+ y9(), v9(), g7();
}
-function S9() {
+function x9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, W({ pendingQueueRoute: null });
}
-function C9(e, t, n) {
- S9(), Wf(), Q.requestedOverlay = {
+function S9(e, t, n) {
+ x9(), Wf(), Q.requestedOverlay = {
path: e,
open: n
}, Q.route(e, !1, Jf(t));
}
-function w9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, z5.syncPageTitle(location.href), b9(), Gf();
+function C9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, R5.syncPageTitle(location.href), y9(), Gf();
}
-function T9(e) {
+function w9(e) {
Q.route(e), W({ pageOpens: pu + 1 });
}
-function Oze() {
+function Aze() {
Q.routeMeta = (e) => {
let t = ep(e);
return t ? { route: t } : null;
@@ -83179,7 +83189,7 @@ function Oze() {
let t = ep(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? v9(yze()) : e === "/follow" ? j9() : e === "/playlists" || Q.catalogPage(e) ? T9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ERe() : e) : (M5(!1, !0), T9(I5({
+ e === "/immerse" ? _9(xze()) : e === "/follow" ? A9() : e === "/playlists" || Q.catalogPage(e) ? w9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ORe() : e) : (j5(!1, !0), w9(F5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83188,34 +83198,34 @@ function Oze() {
})));
};
}
-function kze() {
+function jze() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (i5(e) || a5(), Sp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && W7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (r5(e) || i5(), Sp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && U7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
Q.surfaceEpoch++, X.barsRequestSeq++, Pp(e, {
replace: t,
state: n
- }), z5.syncPageTitle(e), queueMicrotask(() => {
- _7(), r7(), b9();
+ }), R5.syncPageTitle(e), queueMicrotask(() => {
+ g7(), n7(), y9();
});
}, Q.navigatePath = (e, t = !1, n) => {
t ? Np.replace(e, n) : Np.push(e, n), queueMicrotask(() => {
- _7(), r7();
+ g7(), n7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Aze(e, t, n) {
+function Mze(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 jze(e, t = 0, n = 0) {
- return n > 0 ? Aze(e, t, n) : Hs(e);
+function Nze(e, t = 0, n = 0) {
+ return n > 0 ? Mze(e, t, n) : Hs(e);
}
-async function Mze(e) {
+async function Pze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83230,14 +83240,14 @@ async function Mze(e) {
await t(2e3);
}
}
-function Nze(e) {
+function Fze(e) {
let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => jze(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Hs, r = e.progress || ((e, t, n) => Nze(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
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;
- Mze({
+ Pze({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83286,25 +83296,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function Pze(e) {
+function Ize(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- O8.toast({ text: Hi(e) }, {
+ D8.toast({ text: Hi(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => j9(!0)
+ run: () => A9(!0)
}
});
}
-function E9() {
- return ka(D9());
+function T9() {
+ return ka(E9());
}
-function Fze() {
+function Lze() {
return $.controller.read();
}
-function D9() {
+function E9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -83319,33 +83329,33 @@ function D9() {
seed: $.followSeed
};
}
-function O9(e) {
+function D9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function Ize() {
+function Rze() {
let e = mp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function k9() {
- return !!Ize();
+function O9() {
+ return !!Rze();
}
-function A9(e) {
- k9() && xp(L("#stats"), e);
+function k9(e) {
+ O9() && xp(L("#stats"), e);
}
-function Lze(e, t = {}) {
+function zze(e, t = {}) {
return $.controller.route(e, t);
}
-function j9(e = !1) {
+function A9(e = !1) {
$.controller.enter(e);
}
-async function M9(e, t = !0, n = null, r = !1) {
+async function j9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), C9(`/posts/${+e}`, "follow", () => M9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), S9(`/posts/${+e}`, "follow", () => j9(e, !1, n, r));
return;
}
Nl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), u8()?.showing() !== "follow" && d9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await l8(c9.stageHost)).open({
+ t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), l8()?.showing() !== "follow" && u9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await c8(s9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -83353,67 +83363,67 @@ async function M9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : l9()
- }), v7();
+ resume: t ? null : c9()
+ }), _7();
}
-async function Rze() {
- await u9(), d9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && k9() ? (Fze(), A9({ view: D9() })) : W({ pageOpens: pu + 1 }));
+async function Bze() {
+ await l9(), u9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && O9() ? (Lze(), k9({ view: E9() })) : W({ pageOpens: pu + 1 }));
}
-function zze(e) {
+function Vze(e) {
let t = document.createElement("div");
return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Bze() {
+function Hze() {
$.followFeedHelpers = zl({
wireDrag: (e) => {
- e && s9(e);
+ e && o9(e);
},
wireScroller: (e) => {
e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Nze
+ jobProgress: Fze
}), $.followFeedActions = {
- loaded: (e) => J5(e),
- openDetail: (e) => M9(e),
+ loaded: (e) => q5(e),
+ openDetail: (e) => j9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => mRe(e, t),
+ toggleSelection: (e, t) => gRe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), m5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), p5();
},
setPhotoLayout: (e) => {
- SM(e), m5();
+ wM(e), p5();
},
- canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
- failure: (e, t) => O8.actionFailure(e, t),
- checkReport: (e) => Pze(e)
+ canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => D8.actionFailure(e, t),
+ checkReport: (e) => Ize(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- u8()?.showing() !== "follow" && (Nl(), d9(!1), K5(), !k9() && (Q.claimSurface(Q.surfacePath()), G5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Sp(L("#stats")), L("#stats").replaceChildren()));
+ l8()?.showing() !== "follow" && (Nl(), u9(!1), G5(), !O9() && (Q.claimSurface(Q.surfacePath()), W5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Sp(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = ql({
- view: D9,
- adoptView: O9,
+ view: E9,
+ adoptView: D9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Rze(),
- open: (e, t, n) => void M9(e, !0, t, n),
- drawer: J5,
+ close: () => void Bze(),
+ open: (e, t, n) => void j9(e, !0, t, n),
+ drawer: q5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
- failure: O8.actionFailure,
+ toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
+ failure: D8.actionFailure,
canFlip: $.followFeedActions.canFlip
});
}
-function Vze() {
+function Uze() {
$.controller = Ma({
location: () => location,
- view: D9,
- adoptView: O9,
+ view: E9,
+ adoptView: D9,
session: () => ({
discoverySeed: gu,
revision: _u,
@@ -83427,50 +83437,50 @@ function Vze() {
preferences: () => ({
selectMode: Ql,
selected: Zl,
- photoSize: gM(),
- photoLayout: _M(),
+ photoSize: vM(),
+ photoLayout: yM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: k9,
- push: A9,
+ live: O9,
+ push: k9,
route: (e) => {
Q.route(e), mm("follow", {
- view: D9(),
+ view: E9(),
seed: gu,
revision: _u
});
},
- openPage: T9,
- rollSeed: () => Number(O8.rollSeed()),
+ openPage: w9,
+ rollSeed: () => Number(D8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Nl(), K5(), G5({ manage: !1 });
+ Nl(), G5(), W5({ manage: !1 });
},
- syncPhotoWalls: m5,
+ syncPhotoWalls: p5,
scrollTop: () => {
vm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
}
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function Hze() {
- xDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), W8.own(Yc()), Wa(document.body), X.homeHasFeed = GLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, W5.sidebarProps = {
+function Wze() {
+ SDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), U8.own(Yc()), Wa(document.body), X.homeHasFeed = qLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, U5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, W5.sidebarSurface = "", W5.sidebarCatalog = null, W5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, U5.sidebarSurface = "", U5.sidebarCatalog = null, U5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function Uze() {
- xU({ reopen: !0 });
+async function Gze() {
+ bU({ reopen: !0 });
}
-function Wze() {
+function Kze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), W8.handler(document.getElementById("tutorialBtn"), "onclick", () => xU()), xU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), U8.handler(document.getElementById("tutorialBtn"), "onclick", () => bU()), bU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -83481,7 +83491,7 @@ function Wze() {
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-var N9 = [
+var M9 = [
{
kind: "performer",
label: "艺人与新作",
@@ -83532,15 +83542,15 @@ var N9 = [
size: 5
}
];
-function Gze() {
- return N9.map((e) => ({
+function qze() {
+ return M9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Kze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), P9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function qze(e) {
+var Jze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), N9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function Yze(e) {
let t = await e("/api/search/recommendations"), n = (e, t, n, r = "") => ({
value: String(e.code || e.display_title || e.title || e.name || "未命名作品"),
id: e.id,
@@ -83554,10 +83564,10 @@ async function qze(e) {
let { kind: t, name: r, coStarred: i, refs: a, total: o } = Ao(e);
if (!t) return n(e, void 0, "");
let s = t === "performer" ? a[0] : e.creator_entity, c = nn(t, r, s?.id);
- return n(e, void 0, i ? P9([c], o) : c, vo(r, s ?? null, t));
+ return n(e, void 0, i ? N9([c], o) : c, vo(r, s ?? null, t));
}, i = (e, t) => {
let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? vo(i[0], r[0] ?? null, "performer") : "";
- return n(e, t, P9(i), a);
+ return n(e, t, N9(i), a);
}, a = {};
a.asset = t.items ? (t.items.items || []).map(r) : null;
let o = t.jav ? t.jav.items || [] : null;
@@ -83575,7 +83585,7 @@ async function qze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Kze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Jze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83590,9 +83600,9 @@ async function qze(e) {
let i = ha(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = _G(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = gG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
(a === "images" ? t : e).push({
- value: pG(o),
+ value: fG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83614,10 +83624,10 @@ async function qze(e) {
}, `/works/${encodeURIComponent(e.code)}`)) : null, a.author = t.authors ? (t.authors.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: H8(e),
- subtitle: e.latest ? `最新更新于 ${CG({ published_at: e.latest })}` : "更新时间未取得"
+ avatarHtml: V8(e),
+ subtitle: e.latest ? `最新更新于 ${SG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
- groups: N9.map((e) => {
+ groups: M9.map((e) => {
let t = a[e.kind] ?? [];
return {
...e,
@@ -83630,7 +83640,7 @@ async function qze(e) {
};
}
// src/application/search-morph.js
-function Jze(e, t, n, r, i, a, o) {
+function Xze(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);
@@ -83645,67 +83655,67 @@ function Jze(e, t, n, r, i, a, o) {
});
}
// src/application/search.js
-var F9 = {
+var P9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function I9() {
- F9.searchControl?.close();
+function F9() {
+ P9.searchControl?.close();
}
-function Yze(e) {
+function Zze(e) {
let t = e ? to({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
return t === "cover" ? So(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
}
-function L9() {
- F9.searchMorph?.cancel(), F9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function I9() {
+ P9.searchMorph?.cancel(), P9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function R9(e) {
+function L9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!F9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- L9(), t.classList.remove("open");
+ let r = !!P9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ I9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Uc();
t.classList.add("search-morphing");
- let h = t.animate(Jze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(Xze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- F9.searchMorph = h, W8.handler(h, "onfinish", () => {
- F9.searchMorph === h && L9();
+ P9.searchMorph = h, U8.handler(h, "onfinish", () => {
+ P9.searchMorph === h && I9();
});
}
-function Xze() {
- return c9.immerseOpen() ? p8().activeVideo() : u8()?.activeVideo() || null;
+function Qze() {
+ return s9.immerseOpen() ? f8().activeVideo() : l8()?.activeVideo() || null;
}
-function Zze(e) {
+function $ze(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function Qze() {
- F9.searchControl = null, F9.searchActions = {
+function eBe() {
+ P9.searchControl = null, P9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), d9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? b7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), u9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? y7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => h9(e),
- openEntity: (e, t) => S5(e, t),
+ openItem: (e) => m9(e),
+ openEntity: (e, t) => x5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, M9(e, !0, n);
+ $.followMediaView = t, j9(e, !0, n);
}
- }, F9.searchHelpers = {
- pool: () => Gxe(U, Tn),
- recommendations: () => qze(Tn),
- pendingRecommendations: Gze,
+ }, P9.searchHelpers = {
+ pool: () => qxe(U, Tn),
+ recommendations: () => Yze(Tn),
+ pendingRecommendations: qze,
rollPlaceholder: (e, t) => Qs(e, t),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Z8(e) : Yze(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? X8(e) : Zze(e)}</span>`,
present: (e) => cs(e),
dismiss: (e) => ls(e),
wireScroller: (e) => Ac(e),
@@ -83723,67 +83733,67 @@ function Qze() {
}, yp("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: F9.searchActions,
- helpers: F9.searchHelpers,
+ actions: P9.searchActions,
+ helpers: P9.searchHelpers,
expose: (e) => {
- F9.searchControl = e;
+ P9.searchControl = e;
}
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), W8.listen(L("#q"), "beforeinput", (e) => {
+ }), U8.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), W8.listen(L("#q"), "scroll", (e) => {
+ }), U8.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), W8.listen(L("#q"), "pointerdown", (e) => {
+ }), U8.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function $ze() {
- F9.searchMorph = null, F9.searchMorphViewport = innerWidth, W8.listen.bind(W8, window)("resize", () => {
- innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
- }, { passive: !0 }), W8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), W8.handler(L("#searchBtn"), "onclick", () => {
- R9(!0), L("#q").focus({ preventScroll: !0 });
- }), W8.handler(L("#searchBack"), "onclick", () => {
- R9(!1), I9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+function tBe() {
+ P9.searchMorph = null, P9.searchMorphViewport = innerWidth, U8.listen.bind(U8, window)("resize", () => {
+ innerWidth !== P9.searchMorphViewport && (P9.searchMorphViewport = innerWidth, I9());
+ }, { passive: !0 }), U8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", I9), U8.handler(L("#searchBtn"), "onclick", () => {
+ L9(!0), L("#q").focus({ preventScroll: !0 });
+ }), U8.handler(L("#searchBack"), "onclick", () => {
+ L9(!1), F9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
- e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || R9(!1), I9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || L9(!1), F9());
};
- W8.listen(document, "pointerdown", e, !0), W8.listen(document, "focusin", e), W8.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), x7();
- }), W8.listen(document, "keydown", (e) => {
+ U8.listen(document, "pointerdown", e, !0), U8.listen(document, "focusin", e), U8.handler(L("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), b7();
+ }), U8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = g8();
+ let t = h8();
if (t?.isOpen()) {
t.close();
return;
}
if (!L("#searchMenu").hidden) {
- I9();
+ F9();
return;
}
- if (c9.immerseOpen()) {
- p8().close();
+ if (s9.immerseOpen()) {
+ f8().close();
return;
}
- if (c9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), u8().requestEscape());
+ if (s9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), l8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- Z5(!1);
+ X5(!1);
return;
}
if (Ql || Xl.size || Zl.size) {
- M5(!1, !0);
+ j5(!1, !0);
return;
}
return;
}
- if (Zze(e.target)) return;
- if (!e.defaultPrevented && uje(e, o9())) {
- e.preventDefault(), a9(!r9());
+ if ($ze(e.target)) return;
+ if (!e.defaultPrevented && fje(e, a9())) {
+ e.preventDefault(), i9(!n9());
return;
}
if (e.ctrlKey || e.metaKey || e.altKey) return;
@@ -83794,37 +83804,37 @@ function $ze() {
return;
}
}
- let t = Xze();
+ let t = Qze();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), u8()?.toggleTheater();
+ e.preventDefault(), l8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), aP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), sP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), iP(t);
+ e.preventDefault(), oP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), yN(t, ".vjs-mute-control");
+ e.preventDefault(), xN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), yN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), xN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), u8()?.toggleMiniplayer();
+ e.preventDefault(), l8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function eBe(e) {
+function nBe(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;
@@ -83843,74 +83853,74 @@ function eBe(e) {
return n.startsWith("#") && !a?.section || !zf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
-var z9 = {
+var R9 = {
shellActions: void 0,
routing: void 0
};
-function tBe() {
- let e = W8, t = (e) => {
- e.kind === "item" ? h9(e.id, !1) : e.kind === "jav" ? _9(e.code, !1) : e.kind === "follow" ? M9(e.id, !1) : f9(e.queue, e.key, e.item, !1);
+function rBe() {
+ let e = U8, t = (e) => {
+ e.kind === "item" ? m9(e.id, !1) : e.kind === "jav" ? g9(e.code, !1) : e.kind === "follow" ? j9(e.id, !1) : d9(e.queue, e.key, e.item, !1);
};
- if (WLe(), z5.entityShapesReady = Q8(), MRe(), location.pathname === "/") {
+ if (KLe(), R5.entityShapesReady = Z8(), PRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, i7(L("#catalogPageHeading"), e.get("q")));
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, r7(L("#catalogPageHeading"), e.get("q")));
}
- i5(decodeURIComponent(location.pathname)) && t5(L("#feedNew")), BRe(), z9.shellActions = {
- openSettings: (e) => $5(e, !0),
- closeSettings: () => g8()?.close(!1),
- openItem: (e) => void h9(e),
- openEntity: (e, t) => void S5(e, t),
+ r5(decodeURIComponent(location.pathname)) && e5(L("#feedNew")), HRe(), R9.shellActions = {
+ openSettings: (e) => Q5(e, !0),
+ closeSettings: () => h8()?.close(!1),
+ openItem: (e) => void m9(e),
+ openEntity: (e, t) => void x5(e, t),
openTag: (e) => {
- IRe(), z7(e);
+ RRe(), R7(e);
},
- openTasteSignal: oRe,
+ openTasteSignal: cRe,
navigate: (e) => {
let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- C9(n.pathname + n.search + n.hash, e, () => t(r));
+ S9(n.pathname + n.search + n.hash, e, () => t(r));
} else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Bf(location.pathname)) {
Q.route(e);
let t = Np.navigation.seq;
Rp(n.hash, () => Np.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: s7,
+ openManage: o7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => j9(),
- receipt: (e, t) => O8.actionReceipt(e, t),
- toast: (e, t) => O8.toast(e, t),
- failure: O8.actionFailure,
- revealSource: _5,
- reopenTutorial: Uze,
- routeReview: lRe,
- routeFollowManage: TRe,
+ openFollow: () => A9(),
+ receipt: (e, t) => D8.actionReceipt(e, t),
+ toast: (e, t) => D8.toast(e, t),
+ failure: D8.actionFailure,
+ revealSource: g5,
+ reopenTutorial: Gze,
+ routeReview: dRe,
+ routeFollowManage: DRe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(I5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(F5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => M5(!1, !1),
- personAvatar: (e, t, n) => F5.personAvatar(e, t, n),
- authorAvatar: (e) => DRe(e),
- showIndexTags: ORe,
- openFollowAuthor: R5,
- openFollowTag: kRe,
- openPlaylist: (e, t) => void p9(e, t, !0),
- canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => j5(!1, !1),
+ personAvatar: (e, t, n) => P5.personAvatar(e, t, n),
+ authorAvatar: (e) => kRe(e),
+ showIndexTags: ARe,
+ openFollowAuthor: L5,
+ openFollowTag: jRe,
+ openPlaylist: (e, t) => void f9(e, t, !0),
+ canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (Nl(), W({ barsContext: {
type: "home",
filters: U
- } }), q5(), document.body.classList.add("entity-open"), O7(), L5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), q5(), document.body.classList.add("index-open"), O7(), L5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? q5() : (K5(), G5({ manage: e === "management" })));
+ } }), K5(), document.body.classList.add("entity-open"), D7(), I5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), K5(), document.body.classList.add("index-open"), D7(), I5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? K5() : (G5(), W5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = c9.requestedImmerseId === void 0 ? e : c9.requestedImmerseId;
- c9.requestedImmerseId = void 0, v9(t, !1);
+ let t = s9.requestedImmerseId === void 0 ? e : s9.requestedImmerseId;
+ s9.requestedImmerseId = void 0, _9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -83921,7 +83931,7 @@ function tBe() {
Q.requestedOverlay = null, Np.navigation.claimed && (!Fp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Fp() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- c9.stageOpen() && d9(!1);
+ s9.stageOpen() && u9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -83929,60 +83939,60 @@ function tBe() {
},
configurable: () => !!du,
surfaceShown: (e) => {
- e === "index" ? (x9(), v7()) : L7();
+ e === "index" ? (b9(), _7()) : I7();
},
entity: {
missing: (e) => {
- z9.shellActions.surfaceChanged("entity", location.pathname), x5(e);
+ R9.shellActions.surfaceChanged("entity", location.pathname), b5(e);
},
loading: (e, t, n) => Y.application.loading(e, t, n),
props: (e, t, n) => Y.application.addressProps(e, t, n),
refresh: (e, t, n) => {
let r = Y.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = u5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !f5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (T7(r), E7(u5()), !0);
+ let i = l5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !d5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (w7(r), T7(l5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => y7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (w9(), _7(), r7()), t && P8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), x9(), L7(), Z.handOff(H7())),
- load: () => Z.handOff(H7()),
+ defaultLoc: () => v7("local,115"),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (C9(), g7(), n7()), t && N8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), b9(), I7(), Z.handOff(V7())),
+ load: () => Z.handOff(V7()),
fill: () => {
- if (q7() || !Fp() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (K7() || !Fp() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), G7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), W7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- W7(), a5();
- }
- }
- }, z9.routing = !1, e.listen(document, "click", (e) => {
- let t = eBe(e);
- t && (e.preventDefault(), z9.shellActions.navigate(t));
- }), W8.own(Np.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && d9(!1), z9.routing && !e.claimed && w9();
- })), cLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), URe(), yRe(), t7(), Promise.all([
- e9(),
- VRe(),
- z5.entityShapesReady
+ U7(), i5();
+ }
+ }
+ }, R9.routing = !1, e.listen(document, "click", (e) => {
+ let t = nBe(e);
+ t && (e.preventDefault(), R9.shellActions.navigate(t));
+ }), U8.own(Np.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && u9(!1), R9.routing && !e.claimed && C9();
+ })), uLe(R9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), GRe(), xRe(), e7(), Promise.all([
+ $7(),
+ URe(),
+ R5.entityShapesReady
]).then(() => {
- e.isActive && (z5.wantsDiscoveryBars() && L7().catch((e) => console.error("首页横条装载失败", e)), x9(), vze(), z9.routing = !0, W({ pageOpens: 1 }), w9(), v7());
+ e.isActive && (R5.wantsDiscoveryBars() && I7().catch((e) => console.error("首页横条装载失败", e)), b9(), bze(), R9.routing = !0, W({ pageOpens: 1 }), C9(), _7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
-var B9 = !1;
-async function nBe(e, t) {
- if (B9) return;
+var z9 = !1;
+async function iBe(e, t) {
+ if (z9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, B9 = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, z9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -83993,13 +84003,13 @@ async function nBe(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), B9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), z9 = !1;
}
}
// src/application/chrome.js
-function rBe() {
+function aBe() {
(() => {
- let e = W8, t = [
+ let e = U8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -84059,7 +84069,7 @@ function rBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- qG(t.libraries);
+ KG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84080,7 +84090,7 @@ function rBe() {
s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), Z5(!1), E5("媒体库与入库");
+ u.setOpen(!1), X5(!1), T5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -84097,18 +84107,18 @@ function rBe() {
(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" && nBe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), aM();
+ t.getAttribute("aria-pressed") !== "true" && iBe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), sM();
});
- })), aM();
+ })), sM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
- e.own(y.dispose), e.own(Kle(v)), hLe({
+ e.own(y.dispose), e.own(Wle(v)), _Le({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), Z5(!1), $5("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), X5(!1), Q5("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -84120,17 +84130,17 @@ function rBe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !X5();
+ let r = n.classList.contains("open"), i = !Y5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(W8, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(U8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(W8, window)("scroll", () => {
+ if (e.listen.bind(U8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(W8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(U8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";
let r = document.createElementNS(t, "defs");
@@ -84244,11 +84254,11 @@ function rBe() {
subtree: !0
}), y();
}
- })(), Z5(!X5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), X5(!Y5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var iBe = 200, aBe = 400, oBe = 240;
-function sBe() {
+var oBe = 200, sBe = 400, cBe = 240;
+function lBe() {
let e = document.createElement("div");
e.className = "navprogress", e.setAttribute("aria-hidden", "true"), e.append(document.createElement("i")), document.body.append(e);
let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => up() || t.size > 0, s = () => {
@@ -84259,12 +84269,12 @@ function sBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, iBe);
+ }, oBe);
} else clearTimeout(n), n = 0, !(e.dataset.state !== "running" || r) && (r = window.setTimeout(() => {
e.dataset.state = "done", r = window.setTimeout(() => {
r = 0, delete e.dataset.state;
- }, oBe);
- }, Math.max(0, aBe - (performance.now() - i))));
+ }, cBe);
+ }, Math.max(0, sBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84281,20 +84291,20 @@ function sBe() {
};
}
// src/application/initialize.js
-function cBe() {
- Hze(), Oze(), NRe(), kze(), bze(), gLe(), dze(), Wze(), rRe(), Eze(), bRe(), fze(), XLe(), uRe(), Bze(), ARe(), iRe(), Vze(), jRe(), aRe(), YRe(), pze(), Qze(), Dze(), $ze(), xze(), tBe(), rBe(), W8.own(sBe()), W8.own(W7), W8.own(S9);
+function uBe() {
+ Wze(), Aze(), FRe(), jze(), Sze(), vLe(), pze(), Kze(), aRe(), Oze(), SRe(), mze(), QLe(), fRe(), Hze(), MRe(), oRe(), Uze(), NRe(), sRe(), ZRe(), hze(), eBe(), kze(), tBe(), Cze(), rBe(), aBe(), U8.own(lBe()), U8.own(U7), U8.own(x9);
}
// src/ui-kit/middle-truncate.ts
-var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, dBe = (e) => uBe ? [...uBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
+var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, q9 = (e) => B9 ? [...B9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + lBe + (r ? e.slice(-r).join("") : "");
+ return e.slice(0, n).join("") + dBe + (r ? e.slice(-r).join("") : "");
}, fBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
let a = n + r >> 1;
- t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
+ t(J9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
}, pBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, mBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, hBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, gBe = /[＀-￯]/u, _Be = (e) => mBe.test(e) ? 1 : hBe.test(e) && !gBe.test(e) ? 2 : 0, vBe = (e) => {
@@ -84311,7 +84321,7 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
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, dBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += vBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, q9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += vBe(e) * s), t;
};
}, xBe = [
"font-family",
@@ -84338,22 +84348,22 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], J9 = null, SBe = (e) => {
- if (!J9) {
+], Y9 = null, SBe = (e) => {
+ if (!Y9) {
let e = document.createElement("div");
- e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", J9 = {
+ e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", Y9 = {
box: e,
groups: /* @__PURE__ */ new Map()
};
}
- J9.box.isConnected || document.documentElement.append(J9.box);
- let t = getComputedStyle(e), n = xBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
- return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(xBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
+ Y9.box.isConnected || document.documentElement.append(Y9.box);
+ let t = getComputedStyle(e), n = xBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = Y9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(xBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
}, CBe = 8, wBe = (e) => {
for (let t = 0; e.length && t < CBe; t++) {
let t = 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 = q9(e.fit.parts, t), e.group.append(n), n;
+ return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = J9(e.fit.parts, t), e.group.append(n), n;
}));
e.forEach((e, n) => e.tries.forEach((r, i) => {
t[n][i].getBoundingClientRect().width <= e.fit.available ? e.fits = Math.max(e.fits, r) : e.fails = Math.min(e.fails, r);
@@ -84407,24 +84417,24 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
element: t,
state: n,
available: DBe(t),
- parts: dBe(n.full),
+ parts: q9(n.full),
kept: 0
});
}
H9.clear(), TBe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
- let e = r > 0 ? q9(i, a) : n.full;
+ let e = r > 0 ? J9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
let o = e !== n.full;
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
-}, Y9 = (e) => {
+}, X9 = (e) => {
V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(OBe));
}, kBe = (e) => {
e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
- }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
+ }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), X9(e));
}, ABe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
@@ -84434,7 +84444,7 @@ function jBe(e = document) {
K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
G9 = new ResizeObserver((e) => e.forEach((e) => {
- t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
+ t && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
}));
let n = G9;
ABe(e.documentElement || e);
@@ -84444,14 +84454,14 @@ function jBe(e = document) {
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
let r = V9.get(n);
- r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), Y9(n));
+ r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), X9(n));
}));
r.observe(e.body || e, {
childList: !0,
characterData: !0,
subtree: !0
}), document.fonts?.ready?.then(() => {
- t && e.querySelectorAll("[data-middle-truncate]").forEach(Y9);
+ t && e.querySelectorAll("[data-middle-truncate]").forEach(X9);
});
let i = (e) => {
let t = document.getSelection();
@@ -84461,7 +84471,7 @@ function jBe(e = document) {
};
e.addEventListener("copy", i);
let a = () => {
- t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), J9?.box.remove(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
+ t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), Y9?.box.remove(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
};
return K9 = a, a;
}
@@ -84484,7 +84494,7 @@ var MBe = [
"trash-summary",
"junk-summary",
"immerse-list"
-], X9 = [
+], Z9 = [
"follow-feed",
"follow-item",
"follow-manage",
@@ -84500,12 +84510,12 @@ var MBe = [
], PBe = {
catalog: [
...MBe,
- ...X9,
+ ...Z9,
"review",
"taste"
],
follow: [
- ...X9,
+ ...Z9,
"stats",
"taste"
],
@@ -84513,7 +84523,7 @@ var MBe = [
review: ["review"],
artwork: [
...MBe,
- ...X9,
+ ...Z9,
...NBe,
"avatar-choices"
]
@@ -84536,65 +84546,65 @@ function FBe() {
}
function IBe() {
let e = Ft({
- queryKey: WI,
- queryFn: ({ signal: e }) => KI(e),
- refetchInterval: (e) => GI(e.state.data)
+ queryKey: KI,
+ queryFn: ({ signal: e }) => JI(e),
+ refetchInterval: (e) => qI(e.state.data)
}), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(FBe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
// src/react/application.tsx
-var Z9 = null;
+var Q9 = null;
function LBe(e) {
- Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
+ Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
}
function RBe() {
- if (!Z9) {
- let e = MLe();
- Z9 = {
+ if (!Q9) {
+ let e = PLe();
+ Q9 = {
effects: e,
owners: 0
}, e.own(jBe(document)), e.own(() => {
Nl(), H.cancelQueries();
- }), e.own(lLe), e.own(Cp), e.own(os);
+ }), e.own(dLe), e.own(Cp), e.own(os);
}
- return Z9.owners += 1, Z9.effects.resume(), Z9;
+ return Q9.owners += 1, Q9.effects.resume(), Q9;
}
function zBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Z9 === null, n = RBe(), r = sLe(t);
+ let e = Q9 === null, n = RBe(), r = lLe(t);
if (e) try {
- cBe();
+ uBe();
} catch (e) {
- throw r(), n.effects.dispose(), Z9 = null, e;
+ throw r(), n.effects.dispose(), Q9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => LBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Cbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(Tbe, {
actions: e,
processing: !0,
background: e ? /* @__PURE__ */ (0, I.jsx)(IBe, {}) : null
});
}
-var Q9 = /* @__PURE__ */ new WeakMap();
+var $9 = /* @__PURE__ */ new WeakMap();
function BBe(e) {
- let t = Q9.get(e);
+ let t = $9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, wbe);
- Q9.set(e, n);
+ let n = (0, zt.createRoot)(e, Ebe);
+ $9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- Q9.get(e) === n && (Q9.delete(e), r(), Z9 && LBe(Z9));
+ $9.get(e) === n && ($9.delete(e), r(), Q9 && LBe(Q9));
}, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(zBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
-var $9 = document.getElementById("appRoot");
-if (!$9) throw Error("主界面宿主缺失");
-BBe($9);
-export { BL as $2ec61d1d4f780267$export$a8a3e93435678ff9, JL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, rB as $76d00c5a4edb230a$export$76ccd210b9029917, eB as $76d00c5a4edb230a$export$816b5d811295e6bc, oB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, cB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, $z as $76d00c5a4edb230a$export$f850895b287ef28e, Uhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Hhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, zhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, fB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Khe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, wz as $f2ff30fde7b014be$export$3ddf2d174ce01153, jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Mz as $fe21c36db05242bb$export$d7b12c4107be0d61, kge as $l, Uj as ACCENTS, IAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, LAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, KU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, vL as ButtonLink, WB as Bx, s$ as CLEANUP_ENTRY, o$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, HY as CONFIGURATION_URL, RAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, D$ as CUSTOM_SOURCES_KEY, E$ as CUSTOM_SOURCES_URL, oG as CatalogViewToggle, RV as Checkbox, LV as CheckboxGlyph, OV as ChevronSortDown, GU as Chip, tW as CloudDownloadDialog, MH as CollapseChevron, jH as CollapseRegion, e$ as CollectionSummary, mTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, mEe as DIRECTORY_TEMPLATE_ERROR, cW as DISCOVERY_SORTS, JU as DOWNLOADS_KEY, qU as DOWNLOADS_URL, cY as DUPLICATES_KEY, HJ as DataTableFooter, RJ as DataTableFrame, VJ as DataTableSort, RH as Disclosure, wye as DownloadsPanel, vge as E3, hTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, IB as Ea, n_e as EmptyFocusButton, uV as EmptyState, IH as ErrorText, Kge as Eu, vve as ExternalLink, Vr as FEEDS_KEY, XY as FEED_SCHEDULE_KEY, i$ as FIELDSET_FOOT, pIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, YY as FOLLOW_SCHEDULE_KEY, xve as Fact, bve as FactList, LH as FieldLabel, _$ as Fieldset, g$ as FieldsetTitle, Bpe as FilterGlass, dL as FilterGlassRows, uL as FilterIconButton, fL as FilterPill, _ve as Footer, VB as Gg, pL as GlassPill, JB as HN, FH as Help, tV as HintText, aIe as IDLE_POLL_MS, rTe as IDLE_REPAIR, oL as IconButton, OQ as IndexSearch, oV as Input, aV as InputBase, y$ as IssueRow, sM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, _W as JavHeader, Zwe as KEEP_LABELS, cge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, ZV as LIBRARY_PROCESSING_KEY, PY as LINKS_KEY, FY as LINK_CHECK_KEY, zTe as LINK_KINDS, IY as LINK_PRUNE_KEY, nr as LOC, eV as Label, S$ as LibraryProcessingCard, DV as LibraryShortcuts, pH as LinkButton, jge as Lo, EH as LoadingDots, bge as M6, GTe as MEDIA_PROCESSING_KEY, WTe as MEDIA_PROCESSING_URL, pY as MEDIA_REPAIR_KEY, fY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, MV as MENU_ITEM, NV as MENU_ITEM_INTERACTIVE, jV as MENU_POPOVER_SURFACE, Nge as Ma, _H as MenuDialog, gK as MixCard, sV as ModalFrame, Sx as MotionConfigContext, QB as NR, v$ as NameLink, lV as Note, Qge as OA, eX as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, zB as OV, wB as P7, _X as PERFORMER_DELETE_KEY, Nye as PHASES, UY as PICK_FOLDER_URL, l$ as PLAIN_STAT_STRIP, w$ as PLAYLISTS_KEY, eMe as POLICY_COLUMNS, nMe as POLICY_COVER_NOTE, tMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, BJ as Pagination, x$ as PathLine, XB as Pf, FI as PillTabList, iAe as PlainStat, OH as Progress, vY as QUALITY_GOALS_KEY, YB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, lW as RELEASE_SORTS, AMe as RELEASE_SORT_COLUMNS, d$ as REPAIR_CARD_TEXT, mY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, uAe as RESULT_PANEL, dAe as RESULT_SECTION, pTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, gTe as REVIEW_DECISION_LABELS, xY as REVIEW_KEY, SY as REVIEW_LABELS, wY as REVIEW_QUEUES, TY as REVIEW_QUEUE_LABELS, LG as RetryNote, Xge as Rf, $B as Rk, mve as Rows, PAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, NAe as SCRAPING_SETTINGS_URL, iU as SEGMENT, rU as SEGMENTED_TRACK, JY as SETTINGS_KEY, WY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, nAe as STAT_STRIP, rAe as STAT_STRIP_SIX, pve as Section, fAe as SectionHeading, gve as SectionSkeleton, nU as SegmentedRadioGroup, Ive as SegmentedTabList, AG as Segments, zJ as Select, HU as Select$1, $$ as SelectField, UU as SelectItem, YJ as SelectionActions, xj as SelectionDock, XJ as SelectionPopover, NH as SettingsCard, fve as SettingsRow, PH as SettingsSectionLabel, jG as Shuffle, Tve as SiteLabel, cG as SortDirectionIcon, MG as SortKeys, lQ as SourceAvatar, HH as SourceLabel, zH as SourceMark, hve as Stack, aAe as StatCard, b$ as StatusLabel, qge as Su, a4 as Switch, WI as TASKS_KEY, JFe as TASTE_REFRESH_KEY, YFe as TASTE_WINDOWS, ZY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, ype as TRIGGER_LABELS, DJ as Table, ZJ as TableColumnControls, QJ as TableColumnResizer, eY as TableSelectionHeader, YQ as TagManager, yve as TaskCenterLink, kH as TaskProgress, rV as TextField, nV as TextFieldContext, LB as Un, Zge as Uz, rW as WANTS_KEY, b4 as WantMagnets, Yg as WithPromise, OB as Wt, FB as Xc, ZB as Xf, AB as Xl, kB as Xt, EB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, qB as _p, Yge as aB, Ei as addAlias, Ti as addSource, aW as addWant, dS as animate, B as apiGet, V as apiSend, tM as appSettingsStore, NEe as applyConfirmText, gX as applyLeftovers, MEe as applyPlanText, FEe as applyText, aM as applyTheme, by as asNumber, xEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, hq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, hEe as baseName, nTe as batchOperate, Fue as beginPlayerGuidePreview, Ej as boundedPreference, $we as bulkCloudPreferences, mV as busyProps, Jge as cB, CPe as cachedMagnetStates, Ug as calcGeneratorVelocity, CTe as canApprove, vg as cancelFrame, EEe as candidateText, SU as cardClass, bM as cardRatio, FJ as catalogListSkeletonCellHtml, PB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, UTe as checkLine, Hi as checkReceipt, Ui as checkSummary, BAe as checkText, Ki as checkedText, rK as clickedBlank, Q5 as closeDrawerAfterNav, Gwe as cloudLocations, T0 as cloudProxySkeleton, WC as clsx, Ige as cn, lv as collectMotionValues, Fq as columnVisibilityFeature, SJ as column_getCanSort, vJ as column_getSortFn, xTe as commonReviewSources, eW as composingKey, Af as configurationSection, $Fe as configureTasteBrowser, ll as confirmModal, _pe as controlTask, ZK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Eq as createColumnHelper, DAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, MTe as currentReviewRow, q as cx, xge as d6, UB as dZ, kTe as decisionPayload, ATe as decisionReceipt, OTe as defaultChoice, LEe as deletePerformerVideos, kAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Hye as discoveryArtwork, uW as discoveryKey, zye as discoveryScore, d9 as disposeStage, Ywe as distinctName, Bi as dropSources, Gge as du, eTe as duplicateVictims, ZI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, mq as expandRowModel, _B as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, vi as fetchCheckJob, X$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, O$ as fetchCustomSources, vX as fetchDeletePerformers, IEe as fetchDeletePlan, DQ as fetchDiagnostics, dW as fetchDiscoveries, uY as fetchDuplicates, ppe as fetchEarlier, JTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, qTe as fetchFollowSchedule, wX as fetchJunkSummary, aH as fetchLibraryProcessing, zY as fetchLinkCheck, BY as fetchLinkPrune, RY as fetchLinkStats, KTe as fetchMediaProcessing, hY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, sEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, T$ as fetchPlaylists, yY as fetchQualityGoals, mW as fetchReleases, gY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, jY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, N$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, KI as fetchTasks, $3 as fetchTaste, eIe as fetchTasteJob, YTe as fetchThumbnailJobs, TX as fetchTrashSummary, iW as fetchWants, yTe as filterReviewRows, er as firstGrapheme, NK as flexRender, hIe as flowGraph, gIe as flowLabel, mFe as fmtCount, Jn as fmtDur, Xn as fmtSize, fpe as foldByKind, kpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, jpe as followupDetail, dpe as followupTally, _g as frame, SB as g4, Rq as getDefaultPaginationState, yM as gridLayout, li as groupByAuthor, Ope as groupFollowups, OY as groupReviewRows, AEe as hasChanges, dX as hasResourceRoots, JI as hasResultProblems, oIe as historySpan, vB as i2, iIe as importTasteExport, S0 as indexersSkeleton, zg as interpolate, sW as invalidateWants, XI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, CY as isReviewCategory, Ape as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, fM as javLayout, H0 as javTagSkeleton, HEe as junkBreakdown, AAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, sge as l1, mge as l7, Dpe as latestOfKind, $n as leadingGraphemes, EFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, CB as m7, HB as mM, Dn as mapLimit, Ai as markItem, P3 as max, wFe as mediumRows, mpe as mergeFinished, F3 as min, LTe as mirrorText, oTe as missingToolText, dY as mixedCloudPreferences, tL as momentText, fS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Sge as oe, _Ee as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, DTe as pendingGenres, gFe as percentText, uEe as pickOrganizeFolder, c$ as plainStatClass, gEe as planSummary, A3 as playedFor, vFe as playedItemUrl, GI as pollInterval, Ys as popCount, EAe as posterUrl, hxe as previewLibraryColor, lEe as previewOrganize, lTe as previewUrl, Tpe as problemDestination, eH as processingActive, QI as progressText, VH as providerIcon, HTe as pruneText, pX as purgeCount, SEe as purgeOrphan, GB as pv, Wge as qE, H as queryClient, yB as r2, fIe as radarRows, xFe as radialArc, SFe as radialBarSize, bFe as radialCeiling, yFe as radialSlices, IN as randomId, uIe as rankDetail, dIe as rankShares, M3 as reachedShare, $I as readableErrorHeadline, Bye as recommendationScore, NTe as recordGenre, wEe as recordsText, jAe as recreatePlaylist, wAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, fW as releaseFilters, pW as releaseKey, Vi as reloadFollowManage, ITe as reloadReview, aMe as rememberShape, fEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, rIe as removeTasteSource, oW as removeWants, Oi as renameAliasGroup, OAe as renamePlaylist, Se as replaceEqualDeep, OFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, qK as require_with_selector, Iye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, J_e as restartEffectText, TAe as resumeAssetId, vTe as reviewGroupingOptions, DY as reviewQueueData, EY as reviewQueueOf, VEe as reviewSummary, bTe as reviewWindow, TTe as rowEvidence, AY as rowFieldName, Gq as rowPaginationFeature, fJ as rowSelectionFeature, TJ as rowSortingFeature, kY as rowSubject, ETe as rowTags, wTe as rowTitle, dge as s5, ki as saveCredential, jEe as scanLine, eEe as schedulePollInterval, Rye as searchNote, STe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, FTe as settleReviewRows, Jwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, aq as skipFirstRun, NI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, PEe as sourceMeta, Bs as spinnerHtml, Lg as spring, fV as spriteGlyph, xi as startCheck, BTe as startLinkCheck, VTe as startLinkPrune, dEe as startOrganize, Si as startResolve, OEe as startResourceApply, DEe as startResourceScan, nIe as startTasteRefresh, tAe as statCardClass, xpe as statusLabel, aTe as statusLine, Qr as statusText, xM as storeJavLayout, jTe as submitDecision, nL as summaryItems, Dq as tableFeatures, oq as tableMemo, di as tableRows, wpe as taskIssues, Epe as taskSubject, e6 as tasteDate, cIe as tasteDimensions, sIe as tasteHours, Q3 as tasteKey, ZFe as tasteRefetchInterval, QFe as tasteTime, zI as textLang, I0 as tierPlaceholdersHtml, ch as time, Dge as tl, hi as toggleGroup, t6 as topScores, Rge as um, Mge as uo, mH as useAction, wZ as useBackgroundJob, aG as useCatalogView, PU as useClientUpdates, bm as useConstant, rL as useEntityNames, lL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, nK as useLibraryTints, It as useMutation, zV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, $Te as useRunSchedule, ZTe as useSaveFollowSchedule, $Y as useSaveSettings, tEe as useSaveThumbnailMode, EJ as useTable, GJ as useTablePreferences, gL as useViewGlide, tTe as victimBytes, Oge as vl, Lye as wantName, _Fe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, pEe as withOrganizeJob, Vye as writeJavQuery, yge as z3 };
+var VBe = document.getElementById("appRoot");
+if (!VBe) throw Error("主界面宿主缺失");
+BBe(VBe);
+export { HL as $2ec61d1d4f780267$export$a8a3e93435678ff9, XL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, uz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD as $72abaeab4d80592f$export$78efe591171d7d45, nB as $76d00c5a4edb230a$export$76ccd210b9029917, $z as $76d00c5a4edb230a$export$816b5d811295e6bc, aB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, sB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Qz as $76d00c5a4edb230a$export$f850895b287ef28e, Whe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Uhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Bhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, dB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, qhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uE as $ea3928288112382f$export$439d29a4e110a164, Cz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Az as $fe21c36db05242bb$export$a98f0dcb43a68a25, jz as $fe21c36db05242bb$export$d7b12c4107be0d61, Age as $l, Gj as ACCENTS, RAe as AMANE_BRIDGE_CHECK_URL, j$ as AMANE_BRIDGE_KEY, zAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, GU as ArtSlot, x2 as BATCH_DELETE_TEXT, J as Button, bL as ButtonLink, UB as Bx, o$ as CLEANUP_ENTRY, a$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, q1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, J$ as CONFIGURATION_KEY, VY as CONFIGURATION_URL, BAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, E$ as CUSTOM_SOURCES_KEY, T$ as CUSTOM_SOURCES_URL, aG as CatalogViewToggle, LV as Checkbox, IV as CheckboxGlyph, DV as ChevronSortDown, WU as Chip, eW as CloudDownloadDialog, jH as CollapseChevron, AH as CollapseRegion, $Q as CollectionSummary, yve as CommandSteps, gTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, hEe as DIRECTORY_TEMPLATE_ERROR, sW as DISCOVERY_SORTS, qU as DOWNLOADS_KEY, KU as DOWNLOADS_URL, sY as DUPLICATES_KEY, VJ as DataTableFooter, LJ as DataTableFrame, BJ as DataTableSort, LH as Disclosure, Eye as DownloadsPanel, yge as E3, _Te as ENTITY_REVIEW_KINDS, G1 as ENTRY_LINKS_HELP, K1 as ENTRY_LINKS_HINT, FB as Ea, r_e as EmptyFocusButton, lV as EmptyState, FH as ErrorText, qge as Eu, bve as ExternalLink, Vr as FEEDS_KEY, YY as FEED_SCHEDULE_KEY, r$ as FIELDSET_FOOT, hIe as FLOW_LABEL_X, t6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, R8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, JY as FOLLOW_SCHEDULE_KEY, Cve as Fact, Sve as FactList, IH as FieldLabel, g$ as Fieldset, h$ as FieldsetTitle, Rpe as FilterGlass, pL as FilterGlassRows, fL as FilterIconButton, mL as FilterPill, vve as Footer, BB as Gg, hL as GlassPill, qB as HN, PH as Help, eV as HintText, sIe as IDLE_POLL_MS, aTe as IDLE_REPAIR, cL as IconButton, OQ as IndexSearch, aV as Input, iV as InputBase, v$ as IssueRow, lM as JAV_LAYOUTS, B0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, gW as JavHeader, $we as KEEP_LABELS, lge as L1, Ur as LAYOUTS, W1 as LIBRARY_FOLDER_HELP, XV as LIBRARY_PROCESSING_KEY, NY as LINKS_KEY, PY as LINK_CHECK_KEY, VTe as LINK_KINDS, FY as LINK_PRUNE_KEY, nr as LOC, $B as Label, x$ as LibraryProcessingCard, EV as LibraryShortcuts, fH as LinkButton, Mge as Lo, TH as LoadingDots, xge as M6, KTe as MEDIA_PROCESSING_KEY, ZY as MEDIA_PROCESSING_URL, fY as MEDIA_REPAIR_KEY, dY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, jV as MENU_ITEM, MV as MENU_ITEM_INTERACTIVE, AV as MENU_POPOVER_SURFACE, Pge as Ma, gH as MenuDialog, hK as MixCard, oV as ModalFrame, xx as MotionConfigContext, ZB as NR, _$ as NameLink, cV as Note, $ge as OA, eX as ORGANIZE_KEY, v2 as ORGANIZE_PARAMETER_HINT, _2 as ORGANIZE_SCOPE_HINT, g2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, b2 as ORPHAN_RECORDS_TEXT, RB as OV, CB as P7, _X as PERFORMER_DELETE_KEY, Fye as PHASES, HY as PICK_FOLDER_URL, c$ as PLAIN_STAT_STRIP, C$ as PLAYLISTS_KEY, nMe as POLICY_COLUMNS, iMe as POLICY_COVER_NOTE, rMe as POLICY_MATRIX, U1 as POLICY_SUMMARY, zJ as Pagination, b$ as PathLine, YB as Pf, LI as PillTabList, oAe as PlainStat, DH as Progress, _Y as QUALITY_GOALS_KEY, JB as RB, L0 as RELEASE_COLUMN_VISIBILITY_KEY, I0 as RELEASE_COLUMN_WIDTHS_KEY, cW as RELEASE_SORTS, MMe as RELEASE_SORT_COLUMNS, u$ as REPAIR_CARD_TEXT, pY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, y2 as RESOURCE_SYNC_TEXT, fAe as RESULT_PANEL, pAe as RESULT_SECTION, hTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, vTe as REVIEW_DECISION_LABELS, bY as REVIEW_KEY, xY as REVIEW_LABELS, CY as REVIEW_QUEUES, wY as REVIEW_QUEUE_LABELS, IG as RetryNote, Zge as Rf, QB as Rk, hve as Rows, IAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, FAe as SCRAPING_SETTINGS_URL, rU as SEGMENT, nU as SEGMENTED_TRACK, qY as SETTINGS_KEY, UY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, E3 as STATS_KEY, iAe as STAT_STRIP, aAe as STAT_STRIP_SIX, mve as Section, mAe as SectionHeading, _ve as SectionSkeleton, tU as SegmentedRadioGroup, Rve as SegmentedTabList, kG as Segments, RJ as Select, VU as Select$1, Q$ as SelectField, HU as SelectItem, JJ as SelectionActions, Cj as SelectionDock, YJ as SelectionPopover, MH as SettingsCard, pve as SettingsRow, NH as SettingsSectionLabel, AG as Shuffle, Dve as SiteLabel, sG as SortDirectionIcon, jG as SortKeys, lQ as SourceAvatar, VH as SourceLabel, RH as SourceMark, gve as Stack, sAe as StatCard, y$ as StatusLabel, Jge as Su, i4 as Switch, KI as TASKS_KEY, XFe as TASTE_REFRESH_KEY, ZFe as TASTE_WINDOWS, XY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, _pe as TRIGGER_LABELS, EJ as Table, XJ as TableColumnControls, ZJ as TableColumnResizer, $J as TableSelectionHeader, YQ as TagManager, xve as TaskCenterLink, OH as TaskProgress, nV as TextField, tV as TextFieldContext, IB as Un, Qge as Uz, nW as WANTS_KEY, y4 as WantMagnets, qg as WithPromise, DB as Wt, PB as Xc, XB as Xf, kB as Xl, OB as Xt, TB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, KB as _p, Xge as aB, Ei as addAlias, Ti as addSource, iW as addWant, uS as animate, B as apiGet, V as apiSend, rM as appSettingsStore, PEe as applyConfirmText, gX as applyLeftovers, NEe as applyPlanText, IEe as applyText, sM as applyTheme, vy as asNumber, SEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, mq as autoResetPageIndex, _o as avatarInner, M3 as bandRows, gEe as baseName, iTe as batchOperate, Nue as beginPlayerGuidePreview, Oj as boundedPreference, tTe as bulkCloudPreferences, pV as busyProps, Yge as cB, TPe as cachedMagnetStates, Vg as calcGeneratorVelocity, TTe as canApprove, vg as cancelFrame, DEe as candidateText, xU as cardClass, SM as cardRatio, PJ as catalogListSkeletonCellHtml, NB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, GTe as checkLine, Hi as checkReceipt, Ui as checkSummary, HAe as checkText, Ki as checkedText, nK as clickedBlank, Z5 as closeDrawerAfterNav, qwe as cloudLocations, w0 as cloudProxySkeleton, UC as clsx, Lge as cn, sv as collectMotionValues, Pq as columnVisibilityFeature, xJ as column_getCanSort, _J as column_getSortFn, CTe as commonReviewSources, $U as composingKey, Af as configurationSection, tIe as configureTasteBrowser, ll as confirmModal, hpe as controlTask, XK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Tq as createColumnHelper, kAe as createPlaylist, Xi as credentialDone, b0 as credentialsSkeleton, PTe as currentReviewRow, q as cx, Sge as d6, HB as dZ, jTe as decisionPayload, MTe as decisionReceipt, ATe as defaultChoice, REe as deletePerformerVideos, jAe as deletePlaylist, O0 as devicesSkeleton, x as diagnosticHeaders, H1 as diagnosticsSkeleton, Wye as discoveryArtwork, lW as discoveryKey, Vye as discoveryScore, u9 as disposeStage, Zwe as distinctName, Bi as dropSources, Kge as du, nTe as duplicateVictims, $I as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, pq as expandRowModel, gB as f1, bo as facePos, ei as feedIntervalText, P$ as fetchAmaneBridge, vi as fetchCheckJob, Y$ as fetchConfiguration, N$ as fetchCoverJob, _i as fetchCredentials, D$ as fetchCustomSources, vX as fetchDeletePerformers, LEe as fetchDeletePlan, DQ as fetchDiagnostics, uW as fetchDiscoveries, lY as fetchDuplicates, dpe as fetchEarlier, YTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, JTe as fetchFollowSchedule, wX as fetchJunkSummary, iH as fetchLibraryProcessing, RY as fetchLinkCheck, zY as fetchLinkPrune, LY as fetchLinkStats, qTe as fetchMediaProcessing, mY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, cEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, w$ as fetchPlaylists, vY as fetchQualityGoals, pW as fetchReleases, hY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, AY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, M$ as fetchSources, D3 as fetchStats, bi as fetchSuggestions, JI as fetchTasks, Q3 as fetchTaste, nIe as fetchTasteJob, XTe as fetchThumbnailJobs, TX as fetchTrashSummary, rW as fetchWants, xTe as filterReviewRows, er as firstGrapheme, MK as flexRender, _Ie as flowGraph, vIe as flowLabel, gFe as fmtCount, Jn as fmtDur, Xn as fmtSize, upe as foldByKind, Dpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, kpe as followupDetail, lpe as followupTally, _g as frame, xB as g4, Lq as getDefaultPaginationState, xM as gridLayout, li as groupByAuthor, Epe as groupFollowups, DY as groupReviewRows, jEe as hasChanges, dX as hasResourceRoots, XI as hasResultProblems, cIe as historySpan, _B as i2, oIe as importTasteExport, x0 as indexersSkeleton, Lg as interpolate, oW as invalidateWants, QI as isActive, $r as isBroken, qr as isLayout, vv as isMotionValue, SY as isReviewCategory, Ope as isRoutine, S0 as javBrowserSkeleton, H0 as javContentSkeleton, mM as javLayout, V0 as javTagSkeleton, UEe as junkBreakdown, MAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, O3 as known, cge as l1, hge as l7, Tpe as latestOfKind, $n as leadingGraphemes, OFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, SB as m7, VB as mM, Dn as mapLimit, Ai as markItem, N3 as max, EFe as mediumRows, fpe as mergeFinished, P3 as min, zTe as mirrorText, cTe as missingToolText, uY as mixedCloudPreferences, rL as momentText, dS as motion, lv as motionValue, rn as nameFallback, Ue as notifyManager, Cge as oe, vEe as organizeOutcome, i2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, kTe as pendingGenres, vFe as percentText, dEe as pickOrganizeFolder, s$ as plainStatClass, _Ee as planSummary, k3 as playedFor, bFe as playedItemUrl, qI as pollInterval, Ys as popCount, OAe as posterUrl, _xe as previewLibraryColor, uEe as previewOrganize, dTe as previewUrl, Cpe as problemDestination, $V as processingActive, eL as progressText, BH as providerIcon, WTe as pruneText, pX as purgeCount, CEe as purgeOrphan, WB as pv, Gge as qE, H as queryClient, vB as r2, mIe as radarRows, CFe as radialArc, wFe as radialBarSize, SFe as radialCeiling, xFe as radialSlices, RN as randomId, fIe as rankDetail, pIe as rankShares, j3 as reachedShare, tL as readableErrorHeadline, Hye as recommendationScore, FTe as recordGenre, TEe as recordsText, NAe as recreatePlaylist, EAe as refreshPlaylists, El as relayoutCovers, R0 as releaseColumns, dW as releaseFilters, fW as releaseKey, Vi as reloadFollowManage, RTe as reloadReview, sMe as rememberShape, pEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, aIe as removeTasteSource, aW as removeWants, Oi as renameAliasGroup, AAe as renamePlaylist, Se as replaceEqualDeep, AFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, KK as require_with_selector, Rye as resetWants, mr as resolveFollowSort, Wg as resolveStartTime, Y_e as restartEffectText, DAe as resumeAssetId, bTe as reviewGroupingOptions, EY as reviewQueueData, TY as reviewQueueOf, HEe as reviewSummary, STe as reviewWindow, DTe as rowEvidence, kY as rowFieldName, Wq as rowPaginationFeature, dJ as rowSelectionFeature, wJ as rowSortingFeature, OY as rowSubject, OTe as rowTags, ETe as rowTitle, fge as s5, ki as saveCredential, MEe as scanLine, tEe as schedulePollInterval, Bye as searchNote, wTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, LTe as settleReviewRows, Xwe as sharedNamePrefix, Pp as shellNavigate, E8 as showToast, Bn as siteMarkUrl, iq as skipFirstRun, FI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, FEe as sourceMeta, Bs as spinnerHtml, Fg as spring, dV as spriteGlyph, xi as startCheck, HTe as startLinkCheck, UTe as startLinkPrune, fEe as startOrganize, Si as startResolve, kEe as startResourceApply, OEe as startResourceScan, iIe as startTasteRefresh, rAe as statCardClass, ype as statusLabel, sTe as statusLine, Qr as statusText, CM as storeJavLayout, NTe as submitDecision, iL as summaryItems, Eq as tableFeatures, aq as tableMemo, di as tableRows, Spe as taskIssues, wpe as taskSubject, $3 as tasteDate, uIe as tasteDimensions, lIe as tasteHours, Z3 as tasteKey, $Fe as tasteRefetchInterval, eIe as tasteTime, VI as textLang, F0 as tierPlaceholdersHtml, ch as time, Oge as tl, hi as toggleGroup, e6 as topScores, zge as um, Nge as uo, pH as useAction, wZ as useBackgroundJob, iG as useCatalogView, NU as useClientUpdates, bm as useConstant, aL as useEntityNames, dL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, tK as useLibraryTints, It as useMutation, RV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, eEe as useRunSchedule, QTe as useSaveFollowSchedule, $Y as useSaveSettings, nEe as useSaveThumbnailMode, TJ as useTable, WJ as useTablePreferences, vL as useViewGlide, rTe as victimBytes, kge as vl, zye as wantName, yFe as watchNote, A3 as watchedShare, Ac as wireHorizontalScroller, mEe as withOrganizeJob, Uye as writeJavQuery, bge as z3 };
-//# debugId=f801708c-39a2-426c-b8b8-125b72b1203f
\ No newline at end of file
+//# debugId=35bdebfc-79fb-4902-bad8-ce5d25be7c0a
\ No newline at end of file
diff --git a/web/dist/peach-pages.css b/web/dist/peach-pages.css
index 1a015ff78..fa159a48f 100644
--- a/web/dist/peach-pages.css
+++ b/web/dist/peach-pages.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-semibold:600;--tracking-normal:0em;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-headline-semibold:1rem;--text-headline-semibold--line-height:1.375rem;--text-headline-semibold--letter-spacing:0;--text-headline-semibold--font-weight:600;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.-inset-y-px{inset-block:-1px}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\/2{top:50%}.top-\[3px\]{top:3px}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.ms-auto{margin-inline-start:auto}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-\(--icon-inline\){width:var(--icon-inline);height:var(--icon-inline)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-2{width:calc(var(--spacing) * 2)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-1\/2{max-width:50%}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-scale-x-100{--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-none{list-style-type:none}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[0\.875px\]{border-style:var(--tw-border-style);border-width:.875px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-separator-border{border-color:var(--color-separator-border)}.bg-avatar-neutral-background{background-color:var(--color-avatar-neutral-background)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-control-indicator-background{background-color:var(--color-control-indicator-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-kbd-background{background-color:var(--color-kbd-background)}.bg-lime-200{background-color:var(--color-lime-200)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-pink-200{background-color:var(--color-pink-200)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-dot-green-halo{background-color:var(--color-status-dot-green-halo)}.bg-status-dot-indigo-halo{background-color:var(--color-status-dot-indigo-halo)}.bg-status-dot-yellow-halo{background-color:var(--color-status-dot-yellow-halo)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.ps-4{padding-inline-start:calc(var(--spacing) * 4)}.pe-2{padding-inline-end:calc(var(--spacing) * 2)}.pe-5{padding-inline-end:calc(var(--spacing) * 5)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-semibold{font-size:var(--text-headline-semibold);line-height:var(--tw-leading,var(--text-headline-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-semibold--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-\[10px\]{font-size:10px}.text-\[18px\]{font-size:18px}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-\[15px\]{--tw-leading:15px;line-height:15px}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.wrap-anywhere{overflow-wrap:anywhere}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-blue-900{color:var(--color-blue-900)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-kbd-foreground{color:var(--color-kbd-foreground)}.text-lime-700{color:var(--color-lime-700)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-pink-500{color:var(--color-pink-500)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-placeholder{color:var(--color-text-placeholder)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_0\.875px_var\(--color-accent-500\)\,inset_0px_1\.75px_0px_0px_rgba\(255\,255\,255\,0\.25\)\]{--tw-shadow:inset 0px 0px 0px .875px var(--tw-shadow-color,var(--color-accent-500)), inset 0px 1.75px 0px 0px var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_1px_var\(--color-accent-500\)\,inset_0px_2px_0px_0px_rgba\(255\,255\,255\,0\.25\)\]{--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,var(--color-accent-500)), inset 0px 2px 0px 0px var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,color\,box-shadow\]{transition-property:background-color,color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[scale\,opacity\]{transition-property:scale,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,font-size\]{transition-property:width,height,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}:is(:where(.group\/tree-view)[data-show-guides=false] .group-data-\[show-guides\=false\]\/tree-view\:hidden){display:none}:is(:where(.group\/tree-view)[data-size=sm] .group-data-\[size\=sm\]\/tree-view\:min-h-8){min-height:calc(var(--spacing) * 8)}:is(:where(.group\/tree-view)[data-size=sm] .group-data-\[size\=sm\]\/tree-view\:text-body-2-regular){font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[empty\]\:px-4[data-empty]{padding-inline:calc(var(--spacing) * 4)}.data-\[empty\]\:py-8[data-empty]{padding-block:calc(var(--spacing) * 8)}.data-\[empty\]\:text-center[data-empty]{text-align:center}.data-\[empty\]\:text-body-regular[data-empty]{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.data-\[empty\]\:text-text-tertiary[data-empty]{color:var(--color-text-tertiary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.data-\[focus-visible\]\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[focus-visible\]\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-2{padding-inline:calc(var(--spacing) * 2)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:w-32{width:calc(var(--spacing) * 32)}.\@lg\:w-60{width:calc(var(--spacing) * 60)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>\.ui-settings-facts\]\:-mr-3>.ui-settings-facts{margin-right:calc(var(--spacing) * -3)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}.peach-react [data-processing-maintenance]{--color-dropdown-item-hover-background:var(--color-background-secondary-hover)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:where(.peach-react label[data-rac]:has(>span>input:is([type=radio],[type=checkbox]))){position:relative}:root{--font-inter:"Inter Variable", "Inter";--font-sans:var(--font-inter), "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:lang(ja){font-family:var(--font-inter), "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Source Han Sans JP", ui-sans-serif, system-ui, sans-serif}.peach-react [data-long-text]{text-wrap:pretty;hanging-punctuation:allow-end;line-height:1.75}.peach-react [data-long-text]:not(:lang(en)){text-align:justify}:root{--icon-inline:1.2em;--control-h-inline:28px;--control-h-compact:32px;--control-h:36px;--control-h-large:40px;--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;text-autospace:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]):not([data-invalid]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-input-size]>div[data-rac][data-invalid]{background-color:var(--color-background-tertiary-default);color:var(--color-foreground-icon-tertiary);outline:1px solid var(--color-border-error-default);outline-offset:-1px}.peach-react [data-input-size]>div[data-rac][data-invalid][data-focus-within]{--tw-ring-color:var(--color-border-error-default)}.peach-react [data-input-size]>[slot=errorMessage]{color:var(--color-text-secondary)}.peach-react [data-input-size] input[aria-invalid=true]::placeholder{color:var(--color-text-tertiary)}.peach-react [data-input-size]>[slot=errorMessage],.peach-react [data-input-size]>[slot=description]{overflow-wrap:anywhere}.peach-react :is([class~=overflow-x-auto],[data-horizontal-scroll]){scrollbar-width:none}.peach-react :is([class~=overflow-x-auto],[data-horizontal-scroll])::-webkit-scrollbar{display:none}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}[data-batch-dock],[data-batch-scope]{display:contents}[data-batch-scope] [data-selection-dock]{color:var(--ink);font:var(--board-body)}[data-batch-scope] [data-selection-dock]>[role=status]{color:var(--ink-2);font:inherit;white-space:nowrap;padding:0 8px}[data-batch-scope] [data-selection-dock]>button{box-sizing:border-box;height:36px;min-height:36px;font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:8px 12px;display:inline-flex}[data-batch-scope] [data-selection-dock]>button:not([data-danger]){border:1px solid var(--line);background:var(--surface);box-shadow:var(--elevation-xs);color:var(--ink);transition:background-color .15s}[data-batch-scope] [data-selection-dock]>button:not([data-danger]):hover:not(:disabled){background:var(--control-hover)}[data-batch-scope] [data-selection-dock]>button:not([data-danger]):disabled{border-color:var(--line);background:var(--ground);box-shadow:none;color:var(--muted)}[data-batch-scope] [data-selection-dock]>button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}[data-batch-scope] [data-selection-dock]>button svg{width:var(--icon-inline);height:var(--icon-inline);fill:none;stroke:currentColor;stroke-width:2px;flex:none;margin-right:6px}[data-batch-scope] [data-selection-dock]>button[data-danger] svg{margin-right:0}body[data-batch-dock-open] :is(#grid,[data-stage]){padding-bottom:var(--selection-dock-space,180px)}@media (width<=760px){[data-batch-scope][data-context=junk] [data-selection-dock]{grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100vw - 24px);max-width:none;padding:9px 10px;display:grid;bottom:12px}[data-batch-scope][data-context=junk] [data-selection-dock]>[role=status]{text-align:center;grid-column:1/-1;padding:0}[data-batch-scope][data-context=junk] [data-selection-dock]>button{min-width:0;min-height:44px;font-size:var(--fs-xs);padding:8px 6px}[data-batch-scope][data-context=junk] [data-selection-dock]>button svg{margin-right:4px}}body.peach-react{--ink:var(--color-text-primary);--ink-2:var(--color-text-secondary);--muted:var(--color-text-tertiary);--ground:var(--color-background-full);--surface:var(--color-background-primary-default);--line:var(--color-border-button-default);--border-15:var(--color-border-button-default);--hover:var(--color-background-primary-hover);--control-hover:var(--color-background-primary-hover);--tungsten:var(--color-border-focus-ring);--badge-radius:var(--radius-lg);--control-radius:var(--radius-2lg);--board-body:400 14px/20px var(--font-sans);--board-body-medium:500 14px/20px var(--font-sans)}:is(body.peach-react,[data-copy-editor].peach-react) [data-copy-bar]{border:1px solid var(--color-border-button-default);background:var(--color-background-secondary-default);box-shadow:var(--elevation-card,var(--elevation-dropdown))}body.peach-react:has([data-copy-bar]){padding-bottom:108px}:root,:root[data-accent=blue],[data-accent-ball=blue]{--color-accent-50:oklch(97% .014 254.604);--color-accent-100:oklch(93.2% .032 255.585);--color-accent-200:oklch(88.2% .059 254.128);--color-accent-300:oklch(80.9% .105 251.813);--color-accent-400:#3392ff;--color-accent-500:oklch(62.3% .214 259.815);--color-accent-600:oklch(54.6% .245 262.881);--color-accent-700:oklch(48.8% .243 264.376);--color-accent-800:oklch(42.4% .199 265.638);--color-accent-900:oklch(37.9% .146 265.522);--color-accent-950:oklch(28.2% .091 267.935)}:root[data-accent=red],[data-accent-ball=red]{--color-accent-50:oklch(97.1% .013 17.38);--color-accent-100:oklch(93.6% .032 17.717);--color-accent-200:oklch(88.5% .062 18.334);--color-accent-300:oklch(80.8% .114 19.571);--color-accent-400:oklch(70.4% .191 22.216);--color-accent-500:oklch(63.7% .237 25.331);--color-accent-600:oklch(57.7% .245 27.325);--color-accent-700:oklch(50.5% .213 27.518);--color-accent-800:oklch(44.4% .177 26.899);--color-accent-900:oklch(39.6% .141 25.723);--color-accent-950:oklch(25.8% .092 26.042)}:root[data-accent=orange],[data-accent-ball=orange]{--color-accent-50:oklch(98% .016 73.684);--color-accent-100:oklch(95.4% .038 75.164);--color-accent-200:oklch(90.1% .076 70.697);--color-accent-300:oklch(83.7% .128 66.29);--color-accent-400:oklch(75% .183 55.934);--color-accent-500:oklch(70.5% .213 47.604);--color-accent-600:oklch(64.6% .222 41.116);--color-accent-700:oklch(55.3% .195 38.402);--color-accent-800:oklch(47% .157 37.304);--color-accent-900:oklch(40.8% .123 38.172);--color-accent-950:oklch(26.6% .079 36.259)}:root[data-accent=amber],[data-accent-ball=amber]{--color-accent-50:oklch(98.7% .022 95.277);--color-accent-100:oklch(96.2% .059 95.617);--color-accent-200:oklch(92.4% .12 95.746);--color-accent-300:oklch(87.9% .169 91.605);--color-accent-400:oklch(82.8% .189 84.429);--color-accent-500:oklch(76.9% .188 70.08);--color-accent-600:oklch(66.6% .179 58.318);--color-accent-700:oklch(55.5% .163 48.998);--color-accent-800:oklch(47.3% .137 46.201);--color-accent-900:oklch(41.4% .112 45.904);--color-accent-950:oklch(27.9% .077 45.635)}:root[data-accent=lime],[data-accent-ball=lime]{--color-accent-50:oklch(98.6% .031 120.757);--color-accent-100:oklch(96.7% .067 122.328);--color-accent-200:oklch(93.8% .127 124.321);--color-accent-300:oklch(89.7% .196 126.665);--color-accent-400:oklch(84.1% .238 128.85);--color-accent-500:oklch(76.8% .233 130.85);--color-accent-600:oklch(64.8% .2 131.684);--color-accent-700:oklch(53.2% .157 131.589);--color-accent-800:oklch(45.3% .124 130.933);--color-accent-900:oklch(40.5% .101 131.063);--color-accent-950:oklch(27.4% .072 132.109)}:root[data-accent=emerald],[data-accent-ball=emerald]{--color-accent-50:oklch(97.9% .021 166.113);--color-accent-100:oklch(95% .052 163.051);--color-accent-200:oklch(90.5% .093 164.15);--color-accent-300:oklch(84.5% .143 164.978);--color-accent-400:oklch(76.5% .177 163.223);--color-accent-500:oklch(69.6% .17 162.48);--color-accent-600:oklch(59.6% .145 163.225);--color-accent-700:oklch(50.8% .118 165.612);--color-accent-800:oklch(43.2% .095 166.913);--color-accent-900:oklch(37.8% .077 168.94);--color-accent-950:oklch(26.2% .051 172.552)}:root[data-accent=teal],[data-accent-ball=teal]{--color-accent-50:oklch(98.4% .014 180.72);--color-accent-100:oklch(95.3% .051 180.801);--color-accent-200:oklch(91% .096 180.426);--color-accent-300:oklch(85.5% .138 181.071);--color-accent-400:oklch(77.7% .152 181.912);--color-accent-500:oklch(70.4% .14 182.503);--color-accent-600:oklch(60% .118 184.704);--color-accent-700:oklch(51.1% .096 186.391);--color-accent-800:oklch(43.7% .078 188.216);--color-accent-900:oklch(38.6% .063 188.416);--color-accent-950:oklch(27.7% .046 192.524)}:root[data-accent=sky],[data-accent-ball=sky]{--color-accent-50:oklch(97.7% .013 236.62);--color-accent-100:oklch(95.1% .026 236.824);--color-accent-200:oklch(90.1% .058 230.902);--color-accent-300:oklch(82.8% .111 230.318);--color-accent-400:oklch(74.6% .16 232.661);--color-accent-500:oklch(68.5% .169 237.323);--color-accent-600:oklch(58.8% .158 241.966);--color-accent-700:oklch(50% .134 242.749);--color-accent-800:oklch(44.3% .11 240.79);--color-accent-900:oklch(39.1% .09 240.876);--color-accent-950:oklch(29.3% .066 243.157)}:root[data-accent=indigo],[data-accent-ball=indigo]{--color-accent-50:oklch(96.2% .018 272.314);--color-accent-100:oklch(93% .034 272.788);--color-accent-200:oklch(87% .065 274.039);--color-accent-300:oklch(78.5% .115 274.713);--color-accent-400:oklch(67.3% .182 276.935);--color-accent-500:oklch(58.5% .233 277.117);--color-accent-600:oklch(51.1% .262 276.966);--color-accent-700:oklch(45.7% .24 277.023);--color-accent-800:oklch(39.8% .195 277.366);--color-accent-900:oklch(35.9% .144 278.697);--color-accent-950:oklch(25.7% .09 281.288)}:root[data-accent=violet],[data-accent-ball=violet]{--color-accent-50:oklch(96.9% .016 293.756);--color-accent-100:oklch(94.3% .029 294.588);--color-accent-200:oklch(89.4% .057 293.283);--color-accent-300:oklch(81.1% .111 293.571);--color-accent-400:oklch(70.2% .183 293.541);--color-accent-500:oklch(60.6% .25 292.717);--color-accent-600:oklch(54.1% .281 293.009);--color-accent-700:oklch(49.1% .27 292.581);--color-accent-800:oklch(43.2% .232 292.759);--color-accent-900:oklch(38% .189 293.745);--color-accent-950:oklch(28.3% .141 291.089)}:root[data-accent=fuchsia],[data-accent-ball=fuchsia]{--color-accent-50:oklch(97.7% .017 320.058);--color-accent-100:oklch(95.2% .037 318.852);--color-accent-200:oklch(90.3% .076 319.62);--color-accent-300:oklch(83.3% .145 321.434);--color-accent-400:oklch(74% .238 322.16);--color-accent-500:oklch(66.7% .295 322.15);--color-accent-600:oklch(59.1% .293 322.896);--color-accent-700:oklch(51.8% .253 323.949);--color-accent-800:oklch(45.2% .211 324.591);--color-accent-900:oklch(40.1% .17 325.612);--color-accent-950:oklch(29.3% .136 325.661)}:root[data-accent=rose],[data-accent-ball=rose]{--color-accent-50:oklch(96.9% .015 12.422);--color-accent-100:oklch(94.1% .03 12.58);--color-accent-200:oklch(89.2% .058 10.001);--color-accent-300:oklch(81% .117 11.638);--color-accent-400:oklch(71.2% .194 13.428);--color-accent-500:oklch(64.5% .246 16.439);--color-accent-600:oklch(58.6% .253 17.585);--color-accent-700:oklch(51.4% .222 16.935);--color-accent-800:oklch(45.5% .188 13.697);--color-accent-900:oklch(41% .159 10.272);--color-accent-950:oklch(27.1% .105 12.094)}body.peach-react:has([data-setup-page]){box-sizing:border-box;margin:0}.peach-react [data-setup-page]{--color-button-ghost-background:transparent;--color-button-ghost-foreground:var(--color-text-secondary);--color-button-ghost-hover:var(--color-background-primary-hover);--color-button-ghost-active:var(--color-background-primary-active);place-items:center;min-height:100dvh;padding:32px 24px;display:grid}body:has([data-copy-bar]) [data-setup-page]{min-height:calc(100dvh - 108px)}body:has([data-copy-bar]) [data-setup-window]{height:min(720px,100dvh - 172px)}.peach-react [data-setup-window]{border:1px solid var(--color-separator-border);background:var(--color-background-secondary-default);border-radius:24px;grid-template-columns:36% minmax(0,1fr);width:min(100%,960px);height:min(720px,100dvh - 64px);min-height:520px;display:grid;overflow:hidden;box-shadow:0 24px 80px #00000012}.peach-react [data-setup-scene]{color:#483d38;background:radial-gradient(at 5% 10%,#f3b3a4 0%,#0000 55%),radial-gradient(at 90% 75%,#a8b8a1 0%,#0000 55%),#e7dac8;flex-direction:column;padding:28px;display:flex;position:relative;overflow:hidden}.peach-react [data-setup-scene-brand]{align-items:center;gap:8px;font-weight:600;display:flex}.peach-react :is([data-setup-mark=brand],[data-setup-mark=welcome]){flex-shrink:0;display:block}.peach-react [data-setup-mark=brand]{width:28px;height:28px}.peach-react [data-setup-mark=welcome]{color:#657866;width:148px;height:148px}.peach-react [data-setup-original-mark]{object-fit:contain;width:148px;height:148px;display:block}.peach-react [data-setup-scene-art]{flex:1;place-items:center;animation:.36s ease-out both setup-scene-in;display:grid}.peach-react [data-setup-scene-caption]{gap:8px;display:grid}.peach-react [data-setup-scene-caption] p:last-child{opacity:.72}.peach-react [data-setup-mini-library]{background:#fffaf1e6;border:1px solid #ffffffb0;border-radius:14px;width:100%;max-width:280px;padding:16px;position:relative;transform:rotate(-5deg);box-shadow:0 24px 48px #67503b25}.peach-react [data-setup-library-scene]{width:100%;position:relative}.peach-react [data-setup-mini-toolbar]{align-items:center;gap:4px;margin-bottom:18px;display:flex}.peach-react [data-setup-mini-toolbar]>span{background:#c9bbab;border-radius:50%;width:5px;height:5px}.peach-react [data-setup-mini-toolbar] svg{opacity:.5;width:14px;height:14px;margin-left:auto}.peach-react [data-setup-mini-posters]{gap:8px;display:flex}.peach-react [data-setup-mini-posters]>div{aspect-ratio:2/3;background:linear-gradient(140deg,#e9bda0,#ae7762);border-radius:6px;flex:1;place-items:center;display:grid}.peach-react [data-setup-mini-posters]>div:nth-child(2){background:linear-gradient(145deg,#bcc8b2,#5a786b)}.peach-react [data-setup-mini-posters]>div:nth-child(3){background:linear-gradient(145deg,#c8c4d1,#79748b)}.peach-react [data-setup-mini-posters] svg{color:#fff8ed;width:26px;height:26px}.peach-react [data-setup-mini-lines]{gap:7px;margin-top:14px;display:grid}.peach-react [data-setup-mini-lines] span{background:#e4dbcf;border-radius:4px;width:72%;height:4px}.peach-react [data-setup-mini-lines] span:last-child{width:45%}.peach-react [data-setup-scene-badge]{background:#fdfaf5;border-radius:12px;align-items:center;gap:8px;padding:12px 16px;font-size:13px;display:flex;position:absolute;bottom:-20px;right:-12px;transform:rotate(5deg);box-shadow:0 8px 28px #59463422}.peach-react [data-setup-scene-badge] svg{color:#62816c;width:18px;height:18px}.peach-react [data-setup-devices]{width:108%;position:relative}.peach-react :is([data-setup-macbook],[data-setup-iphone]){filter:drop-shadow(0 12px 12px #483d3820);position:relative}.peach-react :is([data-setup-macbook],[data-setup-iphone])>img{z-index:1;width:100%;height:auto;display:block;position:relative}.peach-react [data-setup-device-screen]{background:#fffaf1;position:absolute;overflow:hidden}.peach-react [data-setup-macbook] [data-setup-device-screen]{border-radius:3px;width:78.342%;height:77.323%;top:11.339%;left:10.829%}.peach-react [data-setup-iphone]{width:26%;position:absolute;bottom:-12%;right:0}.peach-react [data-setup-iphone] [data-setup-device-screen]{border-radius:11%/5%;width:89.333%;height:95%;padding-top:14%;top:2.5%;left:5.333%}.peach-react [data-setup-device-screen] [data-setup-mini-library]{max-width:none;height:100%;box-shadow:none;border:0;border-radius:0;padding:7%;transform:none}.peach-react [data-setup-device-screen] [data-setup-mini-toolbar]{margin-bottom:8%}.peach-react [data-setup-device-screen] [data-setup-mini-toolbar] svg{width:10px;height:10px}.peach-react [data-setup-device-screen] [data-setup-mini-posters]{gap:4%}.peach-react [data-setup-device-screen] [data-setup-mini-posters]>div{aspect-ratio:3/4;border-radius:3px}.peach-react [data-setup-device-screen] [data-setup-mini-lines]{gap:4px;margin-top:6%}.peach-react [data-setup-device-screen] [data-setup-mini-lines] span{height:3px}.peach-react [data-setup-iphone] [data-setup-mini-toolbar]>span{display:none}.peach-react [data-setup-iphone] [data-setup-mini-posters]{grid-template-columns:1fr 1fr;gap:5px;display:grid}.peach-react [data-setup-iphone] [data-setup-mini-posters]>div:first-child{aspect-ratio:4/3;grid-column:1/-1}.peach-react [data-setup-iphone] [data-setup-mini-posters] svg{width:18px;height:18px}.peach-react [data-setup-form-panel]{flex-direction:column;min-width:0;min-height:0;display:flex}.peach-react [data-setup-top]{justify-content:space-between;align-items:center;gap:16px;padding:28px 40px 16px;display:flex}.peach-react [data-setup-progress]{gap:6px;display:flex}.peach-react [data-setup-progress] span{background:var(--color-text-tertiary);opacity:.3;border-radius:5px;width:6px;height:6px;transition:width .2s,opacity .2s}.peach-react [data-setup-progress] span[data-active]{opacity:1;background:var(--color-text-primary);width:22px}.peach-react [data-setup-progress] span[data-complete]{opacity:.8}.peach-react [data-setup-step-scroll]{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--color-border-button-default) transparent;flex-direction:column;flex:1;min-height:0;padding:28px 40px;display:flex;overflow:auto}.peach-react [data-setup-step-content]{width:100%}.peach-react [data-setup-step="0"] [data-setup-step-content],.peach-react [data-setup-step=restore] [data-setup-step-content],.peach-react [data-setup-step=done] [data-setup-step-content]{margin-block:auto}.peach-react [data-setup-step-content]>div:not([hidden]),.peach-react [data-setup-step-heading]{animation:.24s ease-out both setup-step-in}.peach-react [data-setup-step-heading]{outline:none;gap:10px;margin-bottom:28px;display:grid}.peach-react [data-setup-step-heading] h1:focus{outline:none}.peach-react [data-setup-step-content]>div:not([hidden]){flex-direction:column;gap:24px;display:flex}.peach-react [data-setup-step-content]>div[hidden]{display:none}.peach-react [data-setup-footer]{justify-content:space-between;align-items:center;gap:12px;padding:16px 40px 24px;display:flex}.peach-react [data-setup-footer-end]{justify-content:flex-end}.peach-react [data-setup-library-block]{border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);border-radius:14px;padding:8px}.peach-react [data-setup-library-block] [data-library-head]{grid-template-columns:auto minmax(0,1fr);display:grid}.peach-react [data-setup-library-block] [data-library-head]>:first-child{justify-self:start}.peach-react [data-setup-library-block] [data-library-head]>:nth-child(2){min-width:0}.peach-react [data-setup-library-block] [data-library-head]>:nth-child(3){justify-self:start}.peach-react [data-setup-library-policy]{min-width:0}.peach-react [data-setup-loading]{gap:18px;display:grid}.peach-react [data-setup-loading] span{background:var(--color-background-tertiary-default);border-radius:8px;height:48px}.peach-react [data-setup-welcome-points]{flex-direction:column;gap:18px;display:flex}.peach-react [data-setup-welcome-points] li{align-items:center;gap:12px;display:flex}.peach-react [data-setup-welcome-points] svg{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0}.peach-react [data-setup-welcome-copy]{gap:4px;display:grid}.peach-react [data-setup-step-content] section:first-child{border-top:0;padding-top:0}@keyframes setup-step-in{0%{opacity:0;transform:translateX(var(--setup-direction,20px))}to{opacity:1;transform:translate(0)}}@keyframes setup-scene-in{0%{opacity:.6;transform:translateY(10px)scale(.98)}to{opacity:1;transform:none}}@media (width<=700px){.peach-react [data-setup-page]{padding:12px}.peach-react [data-setup-window]{border-radius:20px;flex-direction:column;height:calc(100dvh - 24px);min-height:480px;display:flex}.peach-react [data-setup-scene]{flex:0 0 128px;padding:20px}.peach-react [data-setup-scene-art]{width:130px;position:absolute;top:28px;right:28px}.peach-react :is([data-setup-mark=welcome],[data-setup-original-mark]){width:80px;height:80px}.peach-react [data-setup-scene-caption],.peach-react [data-setup-scene-badge]{display:none}.peach-react [data-setup-form-panel]{flex:1}.peach-react [data-setup-top]{padding:20px 24px 0}.peach-react [data-setup-step-scroll]{padding:24px}.peach-react [data-setup-footer]{padding:12px 24px max(20px, env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.peach-react [data-setup-step-content]>div:not([hidden]),.peach-react [data-setup-step-heading],.peach-react [data-setup-scene-art]{animation:none}.peach-react [data-setup-progress] span{transition:none}}@media (width<=480px){.peach-react [data-setup-library-block] [data-library-head]>[data-library-color-trigger],.peach-react [data-setup-library-policy]{grid-column:1/-1}}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.ui-fcollapse{transition:height .2s ease-in-out;overflow:hidden}.ui-fcollapse.ui-fcollapse-settled{overflow:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}:is([data-glow-grid],[data-accent-grid]){grid-template-columns:repeat(6,1fr);gap:6px;padding:0 4px;display:grid}[data-glow-grid][hidden]{display:none}[data-glow-chip]{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}[data-glow-chip]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}[data-glow-ball]{background:var(--glow-chip);border-radius:50%;width:28px;height:28px;transition:transform .15s;position:relative;box-shadow:inset 0 1px 1px #ffffff6b,inset 0 -1px 2px #0000002e,0 0 0 1px #ffffff29}[data-glow-ball]:after{content:"";background:linear-gradient(#ffffff8a,#fff0);border-radius:50%;height:38.5%;position:absolute;top:6%;left:14%;right:14%}[data-glow-ball][data-accent-ball]{--glow-chip:radial-gradient(circle closest-side,var(--color-accent-400),var(--color-accent-600))}[data-glow-ball][data-glow-native]{--glow-chip:conic-gradient(from -90deg,var(--glass-native-a) 0 50%,var(--glass-native-b) 50% 100%)}[data-glow-chip]:hover [data-glow-ball]{transform:scale(1.1)}[data-glow-chip][aria-pressed=true] [data-glow-ball]{box-shadow:inset 0 1px 1px #ffffff6b,0 0 0 1.5px var(--ground),0 0 0 2.5px color-mix(in srgb,var(--ink) 32%,transparent)}.peach-react [data-policy-matrix]{border-collapse:collapse;width:100%;max-width:560px;color:var(--ink-2);margin-top:4px}.peach-react [data-policy-matrix] :is(th,td){border-bottom:1px solid var(--line-soft);text-align:center;padding:6px 8px;font-weight:400}.peach-react [data-policy-matrix] thead th{color:var(--muted)}.peach-react [data-policy-matrix] tbody th{text-align:left;color:var(--ink-2)}.peach-react [data-policy-matrix] [data-policy-cell=on]{color:var(--ink)}.peach-react [data-policy-matrix] [data-policy-cell=off]{color:var(--muted)}.peach-react [data-policy-matrix] tr:last-child>*{border-bottom:0}.peach-react [data-library-head]{border-bottom:1px solid var(--color-border-button-default);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 8px;display:flex}.peach-react [data-library-head]>*{min-width:0;max-width:100%}.peach-react [data-library-head]>:nth-child(2){flex:180px;width:auto}.peach-react [data-library-head]>:last-child{flex:200px;width:auto}.peach-react [data-library-head]>:is(:first-child,:nth-child(3)){flex-shrink:0}.peach-react [data-library-block]>:not([data-library-head],[data-library-folders]){padding:10px 8px 0}.peach-react [data-library-folders]{flex-direction:column;display:flex}.peach-react [data-library-folders]>*{padding:12px 8px}.peach-react [data-library-folders]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-library-folders]>[data-folder-row]{background:0 0;border-width:0;border-radius:0}.peach-react [data-library-folders]>[data-folder-row]+*{border-top-width:1px}.peach-react [data-library-color-trigger]{border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:auto;height:36px;box-shadow:var(--shadow-xs);color:var(--color-text-primary);white-space:nowrap;border-radius:10px;gap:8px;padding:0 10px 0 7px;display:inline-flex}.peach-react [data-library-color-trigger]:hover{background:var(--color-background-primary-hover)}.peach-react [data-library-color-trigger] [data-glow-ball]{width:20px;height:20px}.peach-react [data-library-colors]{grid-template-columns:repeat(7,28px);padding:0}.peach-react [data-glow-ball][data-library-none]{--glow-chip:linear-gradient(135deg, transparent 46%, var(--color-text-tertiary) 46% 54%, transparent 54%), var(--color-background-tertiary-default)}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-semibold:600;--tracking-normal:0em;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-headline-semibold:1rem;--text-headline-semibold--line-height:1.375rem;--text-headline-semibold--letter-spacing:0;--text-headline-semibold--font-weight:600;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.-inset-y-px{inset-block:-1px}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\/2{top:50%}.top-\[3px\]{top:3px}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.ms-auto{margin-inline-start:auto}.mt-1{margin-top:var(--spacing)}.mr-auto{margin-right:auto}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-\(--icon-inline\){width:var(--icon-inline);height:var(--icon-inline)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-2{width:calc(var(--spacing) * 2)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-1\/2{max-width:50%}.max-w-140{max-width:calc(var(--spacing) * 140)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-scale-x-100{--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[0\.875px\]{border-style:var(--tw-border-style);border-width:.875px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-separator-border{border-color:var(--color-separator-border)}.bg-avatar-neutral-background{background-color:var(--color-avatar-neutral-background)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-control-indicator-background{background-color:var(--color-control-indicator-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-kbd-background{background-color:var(--color-kbd-background)}.bg-lime-200{background-color:var(--color-lime-200)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-pink-200{background-color:var(--color-pink-200)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-dot-green-halo{background-color:var(--color-status-dot-green-halo)}.bg-status-dot-indigo-halo{background-color:var(--color-status-dot-indigo-halo)}.bg-status-dot-yellow-halo{background-color:var(--color-status-dot-yellow-halo)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.ps-4{padding-inline-start:calc(var(--spacing) * 4)}.pe-2{padding-inline-end:calc(var(--spacing) * 2)}.pe-5{padding-inline-end:calc(var(--spacing) * 5)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-px{padding-top:1px}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-semibold{font-size:var(--text-headline-semibold);line-height:var(--tw-leading,var(--text-headline-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-semibold--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-\[10px\]{font-size:10px}.text-\[18px\]{font-size:18px}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-\[15px\]{--tw-leading:15px;line-height:15px}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.wrap-anywhere{overflow-wrap:anywhere}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-accent-600{color:var(--color-accent-600)}.text-blue-900{color:var(--color-blue-900)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-kbd-foreground{color:var(--color-kbd-foreground)}.text-lime-700{color:var(--color-lime-700)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-pink-500{color:var(--color-pink-500)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-placeholder{color:var(--color-text-placeholder)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_0\.875px_var\(--color-accent-500\)\,inset_0px_1\.75px_0px_0px_rgba\(255\,255\,255\,0\.25\)\]{--tw-shadow:inset 0px 0px 0px .875px var(--tw-shadow-color,var(--color-accent-500)), inset 0px 1.75px 0px 0px var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0px_0px_0px_1px_var\(--color-accent-500\)\,inset_0px_2px_0px_0px_rgba\(255\,255\,255\,0\.25\)\]{--tw-shadow:inset 0px 0px 0px 1px var(--tw-shadow-color,var(--color-accent-500)), inset 0px 2px 0px 0px var(--tw-shadow-color,#ffffff40);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,color\,box-shadow\]{transition-property:background-color,color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[scale\,opacity\]{transition-property:scale,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,font-size\]{transition-property:width,height,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}:is(:where(.group\/tree-view)[data-show-guides=false] .group-data-\[show-guides\=false\]\/tree-view\:hidden){display:none}:is(:where(.group\/tree-view)[data-size=sm] .group-data-\[size\=sm\]\/tree-view\:min-h-8){min-height:calc(var(--spacing) * 8)}:is(:where(.group\/tree-view)[data-size=sm] .group-data-\[size\=sm\]\/tree-view\:text-body-2-regular){font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[empty\]\:px-4[data-empty]{padding-inline:calc(var(--spacing) * 4)}.data-\[empty\]\:py-8[data-empty]{padding-block:calc(var(--spacing) * 8)}.data-\[empty\]\:text-center[data-empty]{text-align:center}.data-\[empty\]\:text-body-regular[data-empty]{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.data-\[empty\]\:text-text-tertiary[data-empty]{color:var(--color-text-tertiary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.data-\[focus-visible\]\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[focus-visible\]\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}@media not all and (width>=40rem){.max-sm\:p-5{padding:calc(var(--spacing) * 5)}.max-sm\:px-2{padding-inline:calc(var(--spacing) * 2)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-6{padding-block:calc(var(--spacing) * 6)}}@container (width>=32rem){.\@lg\:w-32{width:calc(var(--spacing) * 32)}.\@lg\:w-60{width:calc(var(--spacing) * 60)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\>\.ui-settings-facts\]\:-mr-3>.ui-settings-facts{margin-right:calc(var(--spacing) * -3)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}.peach-react [data-processing-maintenance]{--color-dropdown-item-hover-background:var(--color-background-secondary-hover)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}:where(.peach-react label[data-rac]:has(>span>input:is([type=radio],[type=checkbox]))){position:relative}:root{--font-inter:"Inter Variable", "Inter";--font-sans:var(--font-inter), "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:lang(ja){font-family:var(--font-inter), "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Source Han Sans JP", ui-sans-serif, system-ui, sans-serif}.peach-react [data-long-text]{text-wrap:pretty;hanging-punctuation:allow-end;line-height:1.75}.peach-react [data-long-text]:not(:lang(en)){text-align:justify}:root{--icon-inline:1.2em;--control-h-inline:28px;--control-h-compact:32px;--control-h:36px;--control-h-large:40px;--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;text-autospace:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]):not([data-invalid]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-input-size]>div[data-rac][data-invalid]{background-color:var(--color-background-tertiary-default);color:var(--color-foreground-icon-tertiary);outline:1px solid var(--color-border-error-default);outline-offset:-1px}.peach-react [data-input-size]>div[data-rac][data-invalid][data-focus-within]{--tw-ring-color:var(--color-border-error-default)}.peach-react [data-input-size]>[slot=errorMessage]{color:var(--color-text-secondary)}.peach-react [data-input-size] input[aria-invalid=true]::placeholder{color:var(--color-text-tertiary)}.peach-react [data-input-size]>[slot=errorMessage],.peach-react [data-input-size]>[slot=description]{overflow-wrap:anywhere}.peach-react :is([class~=overflow-x-auto],[data-horizontal-scroll]){scrollbar-width:none}.peach-react :is([class~=overflow-x-auto],[data-horizontal-scroll])::-webkit-scrollbar{display:none}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}[data-batch-dock],[data-batch-scope]{display:contents}[data-batch-scope] [data-selection-dock]{color:var(--ink);font:var(--board-body)}[data-batch-scope] [data-selection-dock]>[role=status]{color:var(--ink-2);font:inherit;white-space:nowrap;padding:0 8px}[data-batch-scope] [data-selection-dock]>button{box-sizing:border-box;height:36px;min-height:36px;font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:8px 12px;display:inline-flex}[data-batch-scope] [data-selection-dock]>button:not([data-danger]){border:1px solid var(--line);background:var(--surface);box-shadow:var(--elevation-xs);color:var(--ink);transition:background-color .15s}[data-batch-scope] [data-selection-dock]>button:not([data-danger]):hover:not(:disabled){background:var(--control-hover)}[data-batch-scope] [data-selection-dock]>button:not([data-danger]):disabled{border-color:var(--line);background:var(--ground);box-shadow:none;color:var(--muted)}[data-batch-scope] [data-selection-dock]>button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}[data-batch-scope] [data-selection-dock]>button svg{width:var(--icon-inline);height:var(--icon-inline);fill:none;stroke:currentColor;stroke-width:2px;flex:none;margin-right:6px}[data-batch-scope] [data-selection-dock]>button[data-danger] svg{margin-right:0}body[data-batch-dock-open] :is(#grid,[data-stage]){padding-bottom:var(--selection-dock-space,180px)}@media (width<=760px){[data-batch-scope][data-context=junk] [data-selection-dock]{grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100vw - 24px);max-width:none;padding:9px 10px;display:grid;bottom:12px}[data-batch-scope][data-context=junk] [data-selection-dock]>[role=status]{text-align:center;grid-column:1/-1;padding:0}[data-batch-scope][data-context=junk] [data-selection-dock]>button{min-width:0;min-height:44px;font-size:var(--fs-xs);padding:8px 6px}[data-batch-scope][data-context=junk] [data-selection-dock]>button svg{margin-right:4px}}body.peach-react{--ink:var(--color-text-primary);--ink-2:var(--color-text-secondary);--muted:var(--color-text-tertiary);--ground:var(--color-background-full);--surface:var(--color-background-primary-default);--line:var(--color-border-button-default);--border-15:var(--color-border-button-default);--hover:var(--color-background-primary-hover);--control-hover:var(--color-background-primary-hover);--tungsten:var(--color-border-focus-ring);--badge-radius:var(--radius-lg);--control-radius:var(--radius-2lg);--board-body:400 14px/20px var(--font-sans);--board-body-medium:500 14px/20px var(--font-sans)}:is(body.peach-react,[data-copy-editor].peach-react) [data-copy-bar]{border:1px solid var(--color-border-button-default);background:var(--color-background-secondary-default);box-shadow:var(--elevation-card,var(--elevation-dropdown))}body.peach-react:has([data-copy-bar]){padding-bottom:108px}:root,:root[data-accent=blue],[data-accent-ball=blue]{--color-accent-50:oklch(97% .014 254.604);--color-accent-100:oklch(93.2% .032 255.585);--color-accent-200:oklch(88.2% .059 254.128);--color-accent-300:oklch(80.9% .105 251.813);--color-accent-400:#3392ff;--color-accent-500:oklch(62.3% .214 259.815);--color-accent-600:oklch(54.6% .245 262.881);--color-accent-700:oklch(48.8% .243 264.376);--color-accent-800:oklch(42.4% .199 265.638);--color-accent-900:oklch(37.9% .146 265.522);--color-accent-950:oklch(28.2% .091 267.935)}:root[data-accent=red],[data-accent-ball=red]{--color-accent-50:oklch(97.1% .013 17.38);--color-accent-100:oklch(93.6% .032 17.717);--color-accent-200:oklch(88.5% .062 18.334);--color-accent-300:oklch(80.8% .114 19.571);--color-accent-400:oklch(70.4% .191 22.216);--color-accent-500:oklch(63.7% .237 25.331);--color-accent-600:oklch(57.7% .245 27.325);--color-accent-700:oklch(50.5% .213 27.518);--color-accent-800:oklch(44.4% .177 26.899);--color-accent-900:oklch(39.6% .141 25.723);--color-accent-950:oklch(25.8% .092 26.042)}:root[data-accent=orange],[data-accent-ball=orange]{--color-accent-50:oklch(98% .016 73.684);--color-accent-100:oklch(95.4% .038 75.164);--color-accent-200:oklch(90.1% .076 70.697);--color-accent-300:oklch(83.7% .128 66.29);--color-accent-400:oklch(75% .183 55.934);--color-accent-500:oklch(70.5% .213 47.604);--color-accent-600:oklch(64.6% .222 41.116);--color-accent-700:oklch(55.3% .195 38.402);--color-accent-800:oklch(47% .157 37.304);--color-accent-900:oklch(40.8% .123 38.172);--color-accent-950:oklch(26.6% .079 36.259)}:root[data-accent=amber],[data-accent-ball=amber]{--color-accent-50:oklch(98.7% .022 95.277);--color-accent-100:oklch(96.2% .059 95.617);--color-accent-200:oklch(92.4% .12 95.746);--color-accent-300:oklch(87.9% .169 91.605);--color-accent-400:oklch(82.8% .189 84.429);--color-accent-500:oklch(76.9% .188 70.08);--color-accent-600:oklch(66.6% .179 58.318);--color-accent-700:oklch(55.5% .163 48.998);--color-accent-800:oklch(47.3% .137 46.201);--color-accent-900:oklch(41.4% .112 45.904);--color-accent-950:oklch(27.9% .077 45.635)}:root[data-accent=lime],[data-accent-ball=lime]{--color-accent-50:oklch(98.6% .031 120.757);--color-accent-100:oklch(96.7% .067 122.328);--color-accent-200:oklch(93.8% .127 124.321);--color-accent-300:oklch(89.7% .196 126.665);--color-accent-400:oklch(84.1% .238 128.85);--color-accent-500:oklch(76.8% .233 130.85);--color-accent-600:oklch(64.8% .2 131.684);--color-accent-700:oklch(53.2% .157 131.589);--color-accent-800:oklch(45.3% .124 130.933);--color-accent-900:oklch(40.5% .101 131.063);--color-accent-950:oklch(27.4% .072 132.109)}:root[data-accent=emerald],[data-accent-ball=emerald]{--color-accent-50:oklch(97.9% .021 166.113);--color-accent-100:oklch(95% .052 163.051);--color-accent-200:oklch(90.5% .093 164.15);--color-accent-300:oklch(84.5% .143 164.978);--color-accent-400:oklch(76.5% .177 163.223);--color-accent-500:oklch(69.6% .17 162.48);--color-accent-600:oklch(59.6% .145 163.225);--color-accent-700:oklch(50.8% .118 165.612);--color-accent-800:oklch(43.2% .095 166.913);--color-accent-900:oklch(37.8% .077 168.94);--color-accent-950:oklch(26.2% .051 172.552)}:root[data-accent=teal],[data-accent-ball=teal]{--color-accent-50:oklch(98.4% .014 180.72);--color-accent-100:oklch(95.3% .051 180.801);--color-accent-200:oklch(91% .096 180.426);--color-accent-300:oklch(85.5% .138 181.071);--color-accent-400:oklch(77.7% .152 181.912);--color-accent-500:oklch(70.4% .14 182.503);--color-accent-600:oklch(60% .118 184.704);--color-accent-700:oklch(51.1% .096 186.391);--color-accent-800:oklch(43.7% .078 188.216);--color-accent-900:oklch(38.6% .063 188.416);--color-accent-950:oklch(27.7% .046 192.524)}:root[data-accent=sky],[data-accent-ball=sky]{--color-accent-50:oklch(97.7% .013 236.62);--color-accent-100:oklch(95.1% .026 236.824);--color-accent-200:oklch(90.1% .058 230.902);--color-accent-300:oklch(82.8% .111 230.318);--color-accent-400:oklch(74.6% .16 232.661);--color-accent-500:oklch(68.5% .169 237.323);--color-accent-600:oklch(58.8% .158 241.966);--color-accent-700:oklch(50% .134 242.749);--color-accent-800:oklch(44.3% .11 240.79);--color-accent-900:oklch(39.1% .09 240.876);--color-accent-950:oklch(29.3% .066 243.157)}:root[data-accent=indigo],[data-accent-ball=indigo]{--color-accent-50:oklch(96.2% .018 272.314);--color-accent-100:oklch(93% .034 272.788);--color-accent-200:oklch(87% .065 274.039);--color-accent-300:oklch(78.5% .115 274.713);--color-accent-400:oklch(67.3% .182 276.935);--color-accent-500:oklch(58.5% .233 277.117);--color-accent-600:oklch(51.1% .262 276.966);--color-accent-700:oklch(45.7% .24 277.023);--color-accent-800:oklch(39.8% .195 277.366);--color-accent-900:oklch(35.9% .144 278.697);--color-accent-950:oklch(25.7% .09 281.288)}:root[data-accent=violet],[data-accent-ball=violet]{--color-accent-50:oklch(96.9% .016 293.756);--color-accent-100:oklch(94.3% .029 294.588);--color-accent-200:oklch(89.4% .057 293.283);--color-accent-300:oklch(81.1% .111 293.571);--color-accent-400:oklch(70.2% .183 293.541);--color-accent-500:oklch(60.6% .25 292.717);--color-accent-600:oklch(54.1% .281 293.009);--color-accent-700:oklch(49.1% .27 292.581);--color-accent-800:oklch(43.2% .232 292.759);--color-accent-900:oklch(38% .189 293.745);--color-accent-950:oklch(28.3% .141 291.089)}:root[data-accent=fuchsia],[data-accent-ball=fuchsia]{--color-accent-50:oklch(97.7% .017 320.058);--color-accent-100:oklch(95.2% .037 318.852);--color-accent-200:oklch(90.3% .076 319.62);--color-accent-300:oklch(83.3% .145 321.434);--color-accent-400:oklch(74% .238 322.16);--color-accent-500:oklch(66.7% .295 322.15);--color-accent-600:oklch(59.1% .293 322.896);--color-accent-700:oklch(51.8% .253 323.949);--color-accent-800:oklch(45.2% .211 324.591);--color-accent-900:oklch(40.1% .17 325.612);--color-accent-950:oklch(29.3% .136 325.661)}:root[data-accent=rose],[data-accent-ball=rose]{--color-accent-50:oklch(96.9% .015 12.422);--color-accent-100:oklch(94.1% .03 12.58);--color-accent-200:oklch(89.2% .058 10.001);--color-accent-300:oklch(81% .117 11.638);--color-accent-400:oklch(71.2% .194 13.428);--color-accent-500:oklch(64.5% .246 16.439);--color-accent-600:oklch(58.6% .253 17.585);--color-accent-700:oklch(51.4% .222 16.935);--color-accent-800:oklch(45.5% .188 13.697);--color-accent-900:oklch(41% .159 10.272);--color-accent-950:oklch(27.1% .105 12.094)}body.peach-react:has([data-setup-page]){box-sizing:border-box;margin:0}.peach-react [data-setup-page]{--color-button-ghost-background:transparent;--color-button-ghost-foreground:var(--color-text-secondary);--color-button-ghost-hover:var(--color-background-primary-hover);--color-button-ghost-active:var(--color-background-primary-active);place-items:center;min-height:100dvh;padding:32px 24px;display:grid}body:has([data-copy-bar]) [data-setup-page]{min-height:calc(100dvh - 108px)}body:has([data-copy-bar]) [data-setup-window]{height:min(720px,100dvh - 172px)}.peach-react [data-setup-window]{border:1px solid var(--color-separator-border);background:var(--color-background-secondary-default);border-radius:24px;grid-template-columns:36% minmax(0,1fr);width:min(100%,960px);height:min(720px,100dvh - 64px);min-height:520px;display:grid;overflow:hidden;box-shadow:0 24px 80px #00000012}.peach-react [data-setup-scene]{color:#483d38;background:radial-gradient(at 5% 10%,#f3b3a4 0%,#0000 55%),radial-gradient(at 90% 75%,#a8b8a1 0%,#0000 55%),#e7dac8;flex-direction:column;padding:28px;display:flex;position:relative;overflow:hidden}.peach-react [data-setup-scene-brand]{align-items:center;gap:8px;font-weight:600;display:flex}.peach-react :is([data-setup-mark=brand],[data-setup-mark=welcome]){flex-shrink:0;display:block}.peach-react [data-setup-mark=brand]{width:28px;height:28px}.peach-react [data-setup-mark=welcome]{color:#657866;width:148px;height:148px}.peach-react [data-setup-original-mark]{object-fit:contain;width:148px;height:148px;display:block}.peach-react [data-setup-scene-art]{flex:1;place-items:center;animation:.36s ease-out both setup-scene-in;display:grid}.peach-react [data-setup-scene-caption]{gap:8px;display:grid}.peach-react [data-setup-scene-caption] p:last-child{opacity:.72}.peach-react [data-setup-mini-library]{background:#fffaf1e6;border:1px solid #ffffffb0;border-radius:14px;width:100%;max-width:280px;padding:16px;position:relative;transform:rotate(-5deg);box-shadow:0 24px 48px #67503b25}.peach-react [data-setup-library-scene]{width:100%;position:relative}.peach-react [data-setup-mini-toolbar]{align-items:center;gap:4px;margin-bottom:18px;display:flex}.peach-react [data-setup-mini-toolbar]>span{background:#c9bbab;border-radius:50%;width:5px;height:5px}.peach-react [data-setup-mini-toolbar] svg{opacity:.5;width:14px;height:14px;margin-left:auto}.peach-react [data-setup-mini-posters]{gap:8px;display:flex}.peach-react [data-setup-mini-posters]>div{aspect-ratio:2/3;background:linear-gradient(140deg,#e9bda0,#ae7762);border-radius:6px;flex:1;place-items:center;display:grid}.peach-react [data-setup-mini-posters]>div:nth-child(2){background:linear-gradient(145deg,#bcc8b2,#5a786b)}.peach-react [data-setup-mini-posters]>div:nth-child(3){background:linear-gradient(145deg,#c8c4d1,#79748b)}.peach-react [data-setup-mini-posters] svg{color:#fff8ed;width:26px;height:26px}.peach-react [data-setup-mini-lines]{gap:7px;margin-top:14px;display:grid}.peach-react [data-setup-mini-lines] span{background:#e4dbcf;border-radius:4px;width:72%;height:4px}.peach-react [data-setup-mini-lines] span:last-child{width:45%}.peach-react [data-setup-scene-badge]{background:#fdfaf5;border-radius:12px;align-items:center;gap:8px;padding:12px 16px;font-size:13px;display:flex;position:absolute;bottom:-20px;right:-12px;transform:rotate(5deg);box-shadow:0 8px 28px #59463422}.peach-react [data-setup-scene-badge] svg{color:#62816c;width:18px;height:18px}.peach-react [data-setup-devices]{width:108%;position:relative}.peach-react :is([data-setup-macbook],[data-setup-iphone]){filter:drop-shadow(0 12px 12px #483d3820);position:relative}.peach-react :is([data-setup-macbook],[data-setup-iphone])>img{z-index:1;width:100%;height:auto;display:block;position:relative}.peach-react [data-setup-device-screen]{background:#fffaf1;position:absolute;overflow:hidden}.peach-react [data-setup-macbook] [data-setup-device-screen]{border-radius:3px;width:78.342%;height:77.323%;top:11.339%;left:10.829%}.peach-react [data-setup-iphone]{width:26%;position:absolute;bottom:-12%;right:0}.peach-react [data-setup-iphone] [data-setup-device-screen]{border-radius:11%/5%;width:89.333%;height:95%;padding-top:14%;top:2.5%;left:5.333%}.peach-react [data-setup-device-screen] [data-setup-mini-library]{max-width:none;height:100%;box-shadow:none;border:0;border-radius:0;padding:7%;transform:none}.peach-react [data-setup-device-screen] [data-setup-mini-toolbar]{margin-bottom:8%}.peach-react [data-setup-device-screen] [data-setup-mini-toolbar] svg{width:10px;height:10px}.peach-react [data-setup-device-screen] [data-setup-mini-posters]{gap:4%}.peach-react [data-setup-device-screen] [data-setup-mini-posters]>div{aspect-ratio:3/4;border-radius:3px}.peach-react [data-setup-device-screen] [data-setup-mini-lines]{gap:4px;margin-top:6%}.peach-react [data-setup-device-screen] [data-setup-mini-lines] span{height:3px}.peach-react [data-setup-iphone] [data-setup-mini-toolbar]>span{display:none}.peach-react [data-setup-iphone] [data-setup-mini-posters]{grid-template-columns:1fr 1fr;gap:5px;display:grid}.peach-react [data-setup-iphone] [data-setup-mini-posters]>div:first-child{aspect-ratio:4/3;grid-column:1/-1}.peach-react [data-setup-iphone] [data-setup-mini-posters] svg{width:18px;height:18px}.peach-react [data-setup-form-panel]{flex-direction:column;min-width:0;min-height:0;display:flex}.peach-react [data-setup-top]{justify-content:space-between;align-items:center;gap:16px;padding:28px 40px 16px;display:flex}.peach-react [data-setup-progress]{gap:6px;display:flex}.peach-react [data-setup-progress] span{background:var(--color-text-tertiary);opacity:.3;border-radius:5px;width:6px;height:6px;transition:width .2s,opacity .2s}.peach-react [data-setup-progress] span[data-active]{opacity:1;background:var(--color-text-primary);width:22px}.peach-react [data-setup-progress] span[data-complete]{opacity:.8}.peach-react [data-setup-step-scroll]{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--color-border-button-default) transparent;flex-direction:column;flex:1;min-height:0;padding:28px 40px;display:flex;overflow:auto}.peach-react [data-setup-step-content]{width:100%}.peach-react [data-setup-step="0"] [data-setup-step-content],.peach-react [data-setup-step=restore] [data-setup-step-content],.peach-react [data-setup-step=done] [data-setup-step-content]{margin-block:auto}.peach-react [data-setup-step-content]>div:not([hidden]),.peach-react [data-setup-step-heading]{animation:.24s ease-out both setup-step-in}.peach-react [data-setup-step-heading]{outline:none;gap:10px;margin-bottom:28px;display:grid}.peach-react [data-setup-step-heading] h1:focus{outline:none}.peach-react [data-setup-step-content]>div:not([hidden]){flex-direction:column;gap:24px;display:flex}.peach-react [data-setup-step-content]>div[hidden]{display:none}.peach-react [data-setup-footer]{justify-content:space-between;align-items:center;gap:12px;padding:16px 40px 24px;display:flex}.peach-react [data-setup-footer-end]{justify-content:flex-end}.peach-react [data-setup-library-block]{border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);border-radius:14px;padding:8px}.peach-react [data-setup-library-block] [data-library-head]{grid-template-columns:auto minmax(0,1fr);display:grid}.peach-react [data-setup-library-block] [data-library-head]>:first-child{justify-self:start}.peach-react [data-setup-library-block] [data-library-head]>:nth-child(2){min-width:0}.peach-react [data-setup-library-block] [data-library-head]>:nth-child(3){justify-self:start}.peach-react [data-setup-library-policy]{min-width:0}.peach-react [data-setup-loading]{gap:18px;display:grid}.peach-react [data-setup-loading] span{background:var(--color-background-tertiary-default);border-radius:8px;height:48px}.peach-react [data-setup-welcome-points]{flex-direction:column;gap:18px;display:flex}.peach-react [data-setup-welcome-points] li{align-items:center;gap:12px;display:flex}.peach-react [data-setup-welcome-points] svg{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0}.peach-react [data-setup-welcome-copy]{gap:4px;display:grid}.peach-react [data-setup-step-content] section:first-child{border-top:0;padding-top:0}@keyframes setup-step-in{0%{opacity:0;transform:translateX(var(--setup-direction,20px))}to{opacity:1;transform:translate(0)}}@keyframes setup-scene-in{0%{opacity:.6;transform:translateY(10px)scale(.98)}to{opacity:1;transform:none}}@media (width<=700px){.peach-react [data-setup-page]{padding:12px}.peach-react [data-setup-window]{border-radius:20px;flex-direction:column;height:calc(100dvh - 24px);min-height:480px;display:flex}.peach-react [data-setup-scene]{flex:0 0 128px;padding:20px}.peach-react [data-setup-scene-art]{width:130px;position:absolute;top:28px;right:28px}.peach-react :is([data-setup-mark=welcome],[data-setup-original-mark]){width:80px;height:80px}.peach-react [data-setup-scene-caption],.peach-react [data-setup-scene-badge]{display:none}.peach-react [data-setup-form-panel]{flex:1}.peach-react [data-setup-top]{padding:20px 24px 0}.peach-react [data-setup-step-scroll]{padding:24px}.peach-react [data-setup-footer]{padding:12px 24px max(20px, env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.peach-react [data-setup-step-content]>div:not([hidden]),.peach-react [data-setup-step-heading],.peach-react [data-setup-scene-art]{animation:none}.peach-react [data-setup-progress] span{transition:none}}@media (width<=480px){.peach-react [data-setup-library-block] [data-library-head]>[data-library-color-trigger],.peach-react [data-setup-library-policy]{grid-column:1/-1}}body.peach-react{background-color:var(--color-background-full);min-height:100dvh}.ui-fcollapse{transition:height .2s ease-in-out;overflow:hidden}.ui-fcollapse.ui-fcollapse-settled{overflow:visible}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}:is([data-glow-grid],[data-accent-grid]){grid-template-columns:repeat(6,1fr);gap:6px;padding:0 4px;display:grid}[data-glow-grid][hidden]{display:none}[data-glow-chip]{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}[data-glow-chip]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}[data-glow-ball]{background:var(--glow-chip);border-radius:50%;width:28px;height:28px;transition:transform .15s;position:relative;box-shadow:inset 0 1px 1px #ffffff6b,inset 0 -1px 2px #0000002e,0 0 0 1px #ffffff29}[data-glow-ball]:after{content:"";background:linear-gradient(#ffffff8a,#fff0);border-radius:50%;height:38.5%;position:absolute;top:6%;left:14%;right:14%}[data-glow-ball][data-accent-ball]{--glow-chip:radial-gradient(circle closest-side,var(--color-accent-400),var(--color-accent-600))}[data-glow-ball][data-glow-native]{--glow-chip:conic-gradient(from -90deg,var(--glass-native-a) 0 50%,var(--glass-native-b) 50% 100%)}[data-glow-chip]:hover [data-glow-ball]{transform:scale(1.1)}[data-glow-chip][aria-pressed=true] [data-glow-ball]{box-shadow:inset 0 1px 1px #ffffff6b,0 0 0 1.5px var(--ground),0 0 0 2.5px color-mix(in srgb,var(--ink) 32%,transparent)}.peach-react [data-policy-matrix]{border-collapse:collapse;width:100%;max-width:560px;color:var(--ink-2);margin-top:4px}.peach-react [data-policy-matrix] :is(th,td){border-bottom:1px solid var(--line-soft);text-align:center;padding:6px 8px;font-weight:400}.peach-react [data-policy-matrix] thead th{color:var(--muted)}.peach-react [data-policy-matrix] tbody th{text-align:left;color:var(--ink-2)}.peach-react [data-policy-matrix] [data-policy-cell=on]{color:var(--ink)}.peach-react [data-policy-matrix] [data-policy-cell=off]{color:var(--muted)}.peach-react [data-policy-matrix] tr:last-child>*{border-bottom:0}.peach-react [data-library-head]{border-bottom:1px solid var(--color-border-button-default);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 8px;display:flex}.peach-react [data-library-head]>*{min-width:0;max-width:100%}.peach-react [data-library-head]>:nth-child(2){flex:180px;width:auto}.peach-react [data-library-head]>:last-child{flex:200px;width:auto}.peach-react [data-library-head]>:is(:first-child,:nth-child(3)){flex-shrink:0}.peach-react [data-library-block]>:not([data-library-head],[data-library-folders]){padding:10px 8px 0}.peach-react [data-library-folders]{flex-direction:column;display:flex}.peach-react [data-library-folders]>*{padding:12px 8px}.peach-react [data-library-folders]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-library-folders]>[data-folder-row]{background:0 0;border-width:0;border-radius:0}.peach-react [data-library-folders]>[data-folder-row]+*{border-top-width:1px}.peach-react [data-library-color-trigger]{border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:auto;height:36px;box-shadow:var(--shadow-xs);color:var(--color-text-primary);white-space:nowrap;border-radius:10px;gap:8px;padding:0 10px 0 7px;display:inline-flex}.peach-react [data-library-color-trigger]:hover{background:var(--color-background-primary-hover)}.peach-react [data-library-color-trigger] [data-glow-ball]{width:20px;height:20px}.peach-react [data-library-colors]{grid-template-columns:repeat(7,28px);padding:0}.peach-react [data-glow-ball][data-library-none]{--glow-chip:linear-gradient(135deg, transparent 46%, var(--color-text-tertiary) 46% 54%, transparent 54%), var(--color-background-tertiary-default)}
/*$vite$:1*/
\ No newline at end of file